[Xymon] Error with make

Vernon Everett everett.vernon at gmail.com
Fri Dec 28 05:06:51 CET 2012


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> 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/20121228/4aaeeeab/attachment.html>


More information about the Xymon mailing list