Will Not Compile On RedHat 9

Rhugga nagios-user at sandiego420.com
Mon Jul 19 14:39:24 CEST 2004


I cannot get nagios 1.2 to compile on a RH 9 system. I searched google 
for this error and found nothing usefull. It is complaining about one of 
it's own header files:

make[1]: Entering directory `/usr/local/src/nagios-1.2/cgi'
gcc -g -O2 -I/usr/local/mysql/include/mysql -I/usr/include 
-DHAVE_CONFIG_H -DNSCGI -L/usr/lib -L/usr/local/mysql/lib/mysql 
-L/usr/lib -lmysqlclient  avail.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddb.c -o avail.cgi
../xdata/xodtemplate.c: In function `xodtemplate_add_object_property':
../xdata/xodtemplate.c:1344: `temp_buffer' undeclared (first use in this 
function)
../xdata/xodtemplate.c:1344: (Each undeclared identifier is reported 
only once
../xdata/xodtemplate.c:1344: for each function it appears in.)
../xdata/xodtemplate.c:1346: `NSLOG_CONFIG_ERROR' undeclared (first use 
in this function)
make[1]: *** [avail.cgi] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-1.2/cgi'
make: *** [all] Error 2


My configure is:
syslog:/usr/local/src/nagios-1.2 #./configure 
--prefix=/usr/local/nagios-1.2 --with-nagios-user=nagios 
--with-nagios-grp=nagios --with-init-dir=/etc/init.d 
--with-lockfile=/var/lock/subsys/nagios --with-mysql-xdata 
--with-mysql-lib=/usr/local/mysql/lib/mysql 
--with-mysql-inc=/usr/local/mysql/include/mysql --with-gd-lib=/usr/lib 
--with-gd-inc=/usr/include --with-cgiurl=/nagios-bin 
--with-htmurl=/nagios --enable-DEBUG0 --enable-DEBUG1 --enable-DEBUG2 
--enable-DEBUG3 --enable-DEBUG4 --enable-DEBUG5 --with-template-objects 
--with-default-perfdata

# Misc. env settings
LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:/usr/local/ssl/lib:/usr/lib
LANG=C
LDFLAGS=-L/usr/lib
CPPFLAGS=-I/usr/include

Any ideas?
Thx,
rhugga


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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