Solaris 8 Compilation Problems

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Mon Oct 7 23:39:03 CEST 2002


If you don't mind not having JPEG images (you can use PNG anyway), remove
the -ljpeg from the Makefile.

Er, you *have* installed the GD library (www.boutell.com), haven't you?

jc

> -----Original Message-----
> From: Nathan Coraor [mailto:nate at cse.psu.edu]
> Sent: Monday, October 07, 2002 3:50 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Solaris 8 Compilation Problems
> 
> 
> From browsing the archives, it would appear that this 
> question has come
> up before.  However, the solution seems to be an LD_LIBRARY_PATH
> problem which I don't think exists in this case:
> 
> I'm using jpeg6b, libpng1.2.5, gd1.8.3, libs in 
> /usr/local/lib and jpeg
> binaries in /usr/local/bin.
> 
> The source I'm trying to compile is 1.0b6.
> 
> The error is below:
> 
> gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  statusmap.c getcgi.o 
> cgiutils.o auth.o popen.o  ../common/objects.c 
> ../xdata/xodtemplate.c ../common/statusdata.c 
> ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o 
> ../xdata/xedtemplate.c -o statusmap.cgi
> Undefined                       first referenced
>  symbol                             in file
> gdImageCreateFromJpeg               /var/tmp/cctdBsNf.o
> ld: fatal: Symbol referencing errors. No output written to 
> statusmap.cgi
> collect2: ld returned 1 exit status
> 
> #printenv LD_LIBRARY_PATH
> /usr/local/lib:/usr/local/lib/rvplayer:/usr/dt/lib:/usr/openwi
> n/lib:/opt/SUNWspro/lib:/usr/lib:/usr/ucblib
> 
> Any thoughts on this are appreciated.
> 
> Thanks in advance,
> --nate
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list