Solaris 8 Compilation Problems

Nathan Coraor nate at cse.psu.edu
Tue Oct 8 00:44:52 CEST 2002


"Carroll, Jim P [Contractor]" said:
> 
> 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?

  Yep:
  -rw-r--r--   1 root     staff      188408 Oct  7 15:43 /usr/local/lib/libgd.a

  Installed today, 1.8.3.

  Removed -ljpeg from cgi/Makefile and I get the same results:

  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 \
   edata.o ../xdata/xedtemplate.c -o statusmap.cgi

  Notice there's no -ljpeg, yet it gives the same error.  Looks like a
  gd problem, not jpeg?  gd is also found by autoconf:

  checking for gdImagePng in -lgd (order 1)... yes
  GD library was found!

Thanks,
--nate



> 
> 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
> _______________________________________________
> 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