Help! Can't compile...

Hobbs, Richard hobbs at mongeese.co.uk
Mon Mar 3 13:41:20 CET 2003


Hello,

> what did configure say about having found the GD libraries?

I have discarded the output now, but i remember distinctly looking for this, and
it said (while compiling Nagios) that the GD libraries *were* found. However, i
compiled the GD libraries without JPEG support. i only have PNG and ZLIB support
in GD, cos i couldn't get it to recognise JPEG.

I understand that Nagios doesn't need JPEG support though, so i don't know why
this is failing.

Thanks,
Richard.


Quoting Subhendu Ghosh <sghosh at sghosh.org>:

> On Fri, 28 Feb 2003, Hobbs, Richard wrote:
> 
> > Hello,
> > 
> > I'm trying to compile, but I'm receiving this error:
> > 
> > ======================================================================
> > turnip:~/installs/nagios/nagios-1.0# make all
> > cd ./base && make
> > make[1]: Entering directory `/root/installs/nagios/nagios-1.0/base'
> > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -L/usr/local/lib  nagios.c checks.o
> config.o
> > commands.o flapping.o logging.o notifications.o sehandlers.o utils.o
> > sretention.o ../xdata/xrddefault.c ../common/comments.c
> ../xdata/xcddefault.c
> > ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c
> > ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c
> ../common/downtime.c
> > ../xdata/xdddefault.c    -lm -o nagios
> > make[1]: Leaving directory `/root/installs/nagios/nagios-1.0/base'
> > cd ./cgi && make
> > make[1]: Entering directory `/root/installs/nagios/nagios-1.0/cgi'
> > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib  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
> > /tmp/ccyjmRWt.o: In function `load_image_from_file':
> > /root/installs/nagios/nagios-1.0/cgi/statusmap.c:2222: undefined reference
> to
> > `gdImageCreateFromJpeg'
> > collect2: ld returned 1 exit status
> > make[1]: *** [statusmap.cgi] Error 1
> > make[1]: Leaving directory `/root/installs/nagios/nagios-1.0/cgi'
> > make: *** [all] Error 2
> > turnip:~/installs/nagios/nagios-1.0#
> > ======================================================================
> > 
> > Why is this happening? I've installed the GD libraries, the PNG libraries,
> the
> > JPEG libraries, and the ZLIB libraries... But I'm stuck!
> > 
> > I've tried everything.... Someone please help! lol
> > 
> > Thanks,
> > Richard.
> > 
> > 
> 
> 
> what did configure say about having found the GD libraries?
> 
> -- 
> 
> -sg
> 
> 
> 
> -------------------------------------------------------
> 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
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 


-- 
Richard Hobbs
hobbs at mongeese.co.uk
http://mongeese.co.uk | http://fishsponge.co.uk

"There's only one way of life, and that's your own" - The Levellers

_____________________________________________________
Send all your jokes to jokes at fishsponge.co.uk !!
To subscribe, email: jokes-subscribe at fishsponge.co.uk


-------------------------------------------------------
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
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list