[Xymon] Error with make

Roland Soderstrom Rolands at logicaltech.com.au
Sat Dec 29 11:43:06 CET 2012


I think we had this discussion before.
The difference was then, I think, that you didn't use sunfreeware but blastware.
And no changing the path or LD_LIBRARY_PATH or changing crle didn't help.
I'm guessing that RRD has some strange dependency to use /usr/ccs/bin/ld before anything else if it's there.

________________________________
From: Novosielski, Ryan [novosirj at umdnj.edu]
Sent: Saturday, 29 December 2012 12:59 AM
To: Roland Soderstrom; 'everett.vernon at gmail.com'; 'xymon at xymon.com'
Subject: Re: [Xymon] Error with make

I have never had to do this on SPARC or x86. Seems to me manipulating the PATH variable is a safer way to be doing this.



From: Roland Soderstrom [mailto:Rolands at logicaltech.com.au]
Sent: Friday, December 28, 2012 02:57 AM
To: Vernon Everett <everett.vernon at gmail.com>; Xymon mailinglist <xymon at xymon.com>
Subject: Re: [Xymon] Error with make

Hi,

This looks like the same problem I always get.

http://lists.xymon.com/archive/2012-October/035632.html
Is how I solve it on both SPARC and x86.

The mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig would have done the trick for you I think.

- Roland
________________________________
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of Vernon Everett [everett.vernon at gmail.com]
Sent: Friday, 28 December 2012 3:06 PM
To: Xymon mailinglist
Subject: Re: [Xymon] Error with make

Hi

A little more research, turned up this one.
http://lists.xymon.com/archive/2012-November/036102.html
A little experimenting, and I made some progress.
It looks like what I described earlier is in fact 2 issues.
The one from the link above, which I have resolved with the advice in the posting.
But the other, still escapes me.

gcc  -o xymond_rrd  xymond_rrd.o       xymond_worker.o xymond_buffer.o do_rrd.o client_config.o ../lib/libxymontime.a -lrt ../lib/libxymoncomm.a  -L/usr/sfw/lib -lssl -lcrypto -lresolv -lsocket -lnsl -lrt -L/opt/csw/lib -lrrd -L/usr/local/lib -lpng -L/opt/csw/lib -lpcre
Undefined                       first referenced
 symbol                             in file
XRenderCreateLinearGradient         /opt/csw/lib/libcairo.so.2
XRenderCreateRadialGradient         /opt/csw/lib/libcairo.so.2
ld: fatal: Symbol referencing errors. No output written to xymond_rrd
collect2: ld returned 1 exit status
make[1]: *** [xymond_rrd] Error 1
make[1]: Leaving directory `/var/tmp/xymon-4.3.10/xymond'
make: *** [xymond-build] Error 2

>From the little bit that I think I know, it seems that the /opt/csw/lib/libcairo.so.2 library has no definition of the "functions" (for lack of a better word - I am not a programmer) called XRenderCreateLinearGradient and XRenderCreateRadialGradient.
So a little more digging, and I find this.
1# nm -D /opt/csw/lib/libcairo.so.2 | grep XRenderCreate
[525]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreateGlyphSet
[506]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreateLinearGradient
[314]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreatePicture
[555]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreateRadialGradient
The UNDEF bit doesn't look too promising. :-(
Man pages confirmed, UNDEF means undefined.
That's all great, but how do I make this compile? Is there another library I can use where it is defined?

I found a number of references on Google, which mention that this is broken, but not much about how to fix it.
The most promising was this
http://cr.openjdk.java.net/~luchsh/7152519/src/solaris/native/sun/java2d/x11/XRBackendNative.c.html
But it relates to Java.
Can we do something similar in the Xymon code?

Regards
      Vernon



On 28 December 2012 09:32, Vernon Everett <everett.vernon at gmail.com<mailto:everett.vernon at gmail.com>> wrote:
Hi all

Compliments of the season to you all, hope you have a happy and save time during your respective festivities.

I have a small problem. Trying to build a new Xymon server on Solaris X86.
Doing the build, using CSW libraries, and got the configure to run OK.
But not so lucky with the make.
Starts off OK, but soon falls over with this error.

gcc  -o xymond_rrd  xymond_rrd.o       xymond_worker.o xymond_buffer.o do_rrd.o client_config.o ../lib/libxymontime.a -lrt ../lib/libxymoncomm.a  -L/usr/sfw/lib -lssl -lcrypto -lresolv -lsocket -lnsl -lrt -L/opt/csw/lib -lrrd -L/usr/local/lib -lpng -L/opt/csw/lib -lpcre
Undefined                       first referenced
 symbol                             in file
XRenderCreateLinearGradient         /opt/csw/lib/libcairo.so.2
deny_severity                       /usr/sfw/lib/libwrap.so.1
XRenderCreateRadialGradient         /opt/csw/lib/libcairo.so.2
allow_severity                      /usr/sfw/lib/libwrap.so.1
ld: fatal: Symbol referencing errors. No output written to xymond_rrd
collect2: ld returned 1 exit status
make[1]: *** [xymond_rrd] Error 1
make[1]: Leaving directory `/var/tmp/xymon-4.3.10/xymond'
make: *** [xymond-build] Error 2

Anybody got any pointers or tips?
I used ldd, I checked the dependencies of the listed libraries, and they are all OK.
Relevant environment variables are :
# echo $PATH
/usr/bin:/usr/sbin:/usr/sfw/bin:/opt/csw/bin:/usr/local/bin/:/usr/perl5/bin:/usr/openwin/bin:/usr/X11/bin:/usr/ccs/bin:/usr/dt/bin/:/usr/local/samba/bin
# echo $LD_LIBRARY_PATH
/usr/local/lib:/opt/csw/lib/:/usr/ccs/bin

Any assistance appreciated.

Regards
     Vernon

--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton



--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20121229/d458ca47/attachment.html>


More information about the Xymon mailing list