Help! Can't compile...

Subhendu Ghosh sghosh at sghosh.org
Sun Mar 2 18:09:43 CET 2003


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





More information about the Users mailing list