error compiling nagios3

Thomas Stolle it0a60 at retail-sc.com
Fri Dec 29 14:07:57 CET 2006


Dear list

trying to compile Nagios3 on Fedora Core 4 I got the following error:

...
gcc -g -O2 -DHAVE_CONFIG_H -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DNSCGI  -o statusmap.cgi statusmap.c 
getcgi.o cgiutils.o cgiauth.o  objects-cgi.o xobjects-cgi.o 
statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd 
-lttf -lpng -ljpeg -lz -lm -lglib-2.0
gcc -g -O2 -DHAVE_CONFIG_H -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DNSCGI  -o trends.cgi trends.c getcgi.o 
cgiutils.o cgiauth.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o 
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lttf -lpng -ljpeg 
-lz -lm -lglib-2.0
gcc -g -O2 -DHAVE_CONFIG_H -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DNSCGI  -o histogram.cgi histogram.c 
getcgi.o cgiutils.o cgiauth.o  objects-cgi.o xobjects-cgi.o 
statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd 
-lttf -lpng -ljpeg -lz -lm -lglib-2.0
make[1]: Leaving directory `/usr/src/nagios/nagios-cvs/cgi'
cd ./html && make
make[1]: Entering directory `/usr/src/nagios/nagios-cvs/html'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/nagios/nagios-cvs/html'
cd ./module && make
make[1]: Entering directory `/usr/src/nagios/nagios-cvs/module'
gcc -g -O2 -DHAVE_CONFIG_H -fPIC -o helloworld.o helloworld.c -shared
In file included from ../include/nebcallbacks.h:28,
                 from helloworld.c:27:
../include/config.h:195:18: error: glib.h: No such file or directory
make[1]: *** [helloworld.o] Error 1
make[1]: Leaving directory `/usr/src/nagios/nagios-cvs/module'
make: *** [all] Error 2


Andurin from german nagios forum suggested to change a line in the 
Makefile in folder module to:

CFLAGS=-g -O2 -DHAVE_CONFIG_H -fPIC -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include

This solved the problem. Only the Makefile in the folder module was 
affected. 


Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20061229/3a64853d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list