Xymon Mailing List Archive search

Error with make

7 messages in this thread

list Vernon Everett · Fri, 28 Dec 2012 09:32:14 +0800 ·
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
list Vernon Everett · Fri, 28 Dec 2012 12:06:51 +0800 ·
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.
quoted from Vernon Everett

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
quoted from Vernon Everett
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
quoted from Vernon Everett


On 28 December 2012 09:32, Vernon Everett <user-b3f8dacb72c8@xymon.invalid> 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
list Ryan Novosielski · Thu, 27 Dec 2012 23:09:09 -0500 ·
This isn't that helpful I bet, but I just did this a week or two ago, but this didn't happen to me.
quoted from Vernon Everett


From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
Sent: Thursday, December 27, 2012 08:32 PM
To: Xymon mailinglist <xymon at xymon.com>
Subject: [Xymon] Error with make

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
list Vernon Everett · Fri, 28 Dec 2012 13:43:37 +0800 ·
Hi

Well, perhaps more useful than you thought. It gave me determination.
I figured if you made it work, then it must be possible, and I must have
done something wrong.
So I started over, from the beginning, by the numbers.
And it worked!
I have no idea what I did differently, but I now have it installed. And
running.
Now to install a few clients.

Cheers
Vernon
quoted from Ryan Novosielski


On 28 December 2012 12:09, Novosielski, Ryan <user-ae4522577e16@xymon.invalid> wrote:
This isn't that helpful I bet, but I just did this a week or two ago, but
this didn't happen to me.


 *From*: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
*Sent*: Thursday, December 27, 2012 08:32 PM
*To*: Xymon mailinglist <xymon at xymon.com>
*Subject*: [Xymon] Error with make

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
list Roland Soderstrom · Fri, 28 Dec 2012 07:57:01 +0000 ·
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
quoted from Vernon Everett
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of Vernon Everett [user-b3f8dacb72c8@xymon.invalid]
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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
list Ryan Novosielski · Fri, 28 Dec 2012 08:59:28 -0500 ·
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.
quoted from Roland Soderstrom


From: Roland Soderstrom [mailto:user-0cec9512a49f@xymon.invalid]
Sent: Friday, December 28, 2012 02:57 AM
To: Vernon Everett <user-b3f8dacb72c8@xymon.invalid>; 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 [user-b3f8dacb72c8@xymon.invalid]
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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
list Roland Soderstrom · Sat, 29 Dec 2012 10:43:06 +0000 ·
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.
quoted from Ryan Novosielski

From: Novosielski, Ryan [user-ae4522577e16@xymon.invalid]
Sent: Saturday, 29 December 2012 12:59 AM
To: Roland Soderstrom; 'user-b3f8dacb72c8@xymon.invalid'; '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:user-0cec9512a49f@xymon.invalid]
Sent: Friday, December 28, 2012 02:57 AM
To: Vernon Everett <user-b3f8dacb72c8@xymon.invalid>; 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 [user-b3f8dacb72c8@xymon.invalid]
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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