<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1"><font style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
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. <br><br></font><br> <br>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<font style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<b>From</b>: Roland Soderstrom [mailto:Rolands@logicaltech.com.au] <br><b>Sent</b>: Friday, December 28, 2012 02:57 AM<br><b>To</b>: Vernon Everett <everett.vernon@gmail.com>; Xymon mailinglist <xymon@xymon.com> <br><b>Subject</b>: Re: [Xymon] Error with make <br></font> <br></div>

<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
This looks like the same problem I always get.<br>
<br>
<a href="http://lists.xymon.com/archive/2012-October/035632.html" target="_blank">http://lists.xymon.com/archive/2012-October/035632.html</a><br>
Is how I solve it on both SPARC and x86.<br>
<br>
The mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig would have done the trick for you I think.<br>
<br>
- Roland<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF987571"><font color="#000000" face="Tahoma" size="2"><b>From:</b> xymon-bounces@xymon.com [xymon-bounces@xymon.com] on behalf of Vernon Everett [everett.vernon@gmail.com]<br>
<b>Sent:</b> Friday, 28 December 2012 3:06 PM<br>
<b>To:</b> Xymon mailinglist<br>
<b>Subject:</b> Re: [Xymon] Error with make<br>
</font><br>
</div>
<div></div>
<div>Hi<br>
<br>
A little more research, turned up this one.<br>
<a href="http://lists.xymon.com/archive/2012-November/036102.html" target="_blank">http://lists.xymon.com/archive/2012-November/036102.html</a><br>
A little experimenting, and I made some progress.<br>
It looks like what I described earlier is in fact 2 issues.<br>
The one from the link above, which I have resolved with the advice in the posting.<br>
But the other, still escapes me.<br>
<br>
<span style="font-family:courier new,monospace">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<br>
Undefined                       first referenced<br>
 symbol                             in file<br>
XRenderCreateLinearGradient         /opt/csw/lib/libcairo.so.2<br>
XRenderCreateRadialGradient         /opt/csw/lib/libcairo.so.2<br>
ld: fatal: Symbol referencing errors. No output written to xymond_rrd<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [xymond_rrd] Error 1<br>
make[1]: Leaving directory `/var/tmp/xymon-4.3.10/xymond'<br>
make: *** [xymond-build] Error 2<br>
</span><br>
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
<span style="font-family:courier new,monospace">XRenderCreateLinearGradient</span> and
<span style="font-family:courier new,monospace">XRenderCreateRadialGradient</span>.<br>
So a little more digging, and I find this.<br>
<span style="font-family:courier new,monospace">1# nm -D /opt/csw/lib/libcairo.so.2 | grep XRenderCreate<br>
[525]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreateGlyphSet<br>
[506]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreateLinearGradient<br>
[314]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreatePicture<br>
[555]   |         0|       0|FUNC |GLOB |0    |UNDEF  |XRenderCreateRadialGradient<br>
</span>The UNDEF bit doesn't look too promising. :-(<br>
Man pages confirmed, UNDEF means undefined. <br>
That's all great, but how do I make this compile? Is there another library I can use where it is defined?<br>
<br>
I found a number of references on Google, which mention that this is broken, but not much about how to fix it.<br>
The most promising was this<br>
<a href="http://cr.openjdk.java.net/~luchsh/7152519/src/solaris/native/sun/java2d/x11/XRBackendNative.c.html" target="_blank">http://cr.openjdk.java.net/~luchsh/7152519/src/solaris/native/sun/java2d/x11/XRBackendNative.c.html</a><br>
But it relates to Java.<br>
Can we do something similar in the Xymon code?<br>
<br>
Regards<br>
      Vernon<br>
<br>
<br>
<br>
<div class="gmail_quote">On 28 December 2012 09:32, Vernon Everett <span dir="ltr">
<<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi all<br>
<br>
Compliments of the season to you all, hope you have a happy and save time during your respective festivities.<br>
<br>
I have a small problem. Trying to build a new Xymon server on Solaris X86.<br>
Doing the build, using CSW libraries, and got the configure to run OK.<br>
But not so lucky with the make.<br>
Starts off OK, but soon falls over with this error.<br>
<br>
<span style="font-family:courier new,monospace">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<br>
Undefined                       first referenced<br>
 symbol                             in file<br>
XRenderCreateLinearGradient         /opt/csw/lib/libcairo.so.2<br>
deny_severity                       /usr/sfw/lib/libwrap.so.1<br>
XRenderCreateRadialGradient         /opt/csw/lib/libcairo.so.2<br>
allow_severity                      /usr/sfw/lib/libwrap.so.1<br>
ld: fatal: Symbol referencing errors. No output written to xymond_rrd<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [xymond_rrd] Error 1<br>
make[1]: Leaving directory `/var/tmp/xymon-4.3.10/xymond'<br>
make: *** [xymond-build] Error 2<br>
</span><br>
Anybody got any pointers or tips?<br>
I used ldd, I checked the dependencies of the listed libraries, and they are all OK.<br>
Relevant environment variables are : <br>
<span style="font-family:courier new,monospace"># echo $PATH<br>
/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<br>
# echo $LD_LIBRARY_PATH<br>
/usr/local/lib:/opt/csw/lib/:/usr/ccs/bin</span><br>
<br clear="all">
Any assistance appreciated.<br>
<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
     Vernon<br>
<br>
-- <br>
<span>"Accept the challenges so that you can feel the exhilaration of victory"</span>
<div><span>- General George Patton</span></div>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<span>"Accept the challenges so that you can feel the exhilaration of victory"</span>
<div><span>- General George Patton</span></div>
</div>
</div>
</div>
</body>
</html>