enabling debugging, compile error

Sancho2k.net Lists lists at sancho2k.net
Sun Mar 30 23:38:07 CEST 2003


I ran into a problem where launching nagios (1.0) seems to launch and 
detach fine, but immediately exits. Nothing remotely informative is 
given in the log, and checking my config with the -v option shows no 
problems.

So now I'm trying to recompile with all possible debugging options 
enabled. Following is the configure string I use:

=========================================================================
./configure --prefix=/var/www/htdocs/restricted/nagios 
--with-nagios-user=nagios --with-nagios-grp=nagios --with-perlcache 
--enable-embedded-perl --with-gd-lib=/usr/local/lib 
--with-gd-inc=/usr/local/include --disable-statuswrl 
--with-mysql-lib=/usr/local/lib/mysql 
--with-mysql-inc=/usr/local/include/mysql --with-mysql-xdata 
--with-mysql-status --with-mysql-comments --with-mysql-extinfo 
--with-mysql-retention --with-mysql-downtime 
--with-command-grp=nagioscmd 
--with-htmurl=https://admin.sancho2k.net/nagios 
--with-cgiurl=https://admin.sancho2k.net/nagios/cgi-bin --enable-DEBUG0 
--enable-DEBUG1 --enable-DEBUG2 --enable-DEBUG3 --enable-DEBUG4 
--enable-DEBUG5
=========================================================================

Following is the error I encounter when I run 'gmake all' after the 
configure exits:

=========================================================================
cd ./cgi && gmake
gmake[1]: Entering directory `/root/nagios-1.0/cgi'
gcc -g -O2 -I/usr/local/include/mysql -I/usr/local/include 
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.6.1/CORE  -DHAVE_CONFIG_H -DNSCGI 
-c -o getcgi.o getcgi.c
gcc -g -O2 -I/usr/local/include/mysql -I/usr/local/include 
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.6.1/CORE  -DHAVE_CONFIG_H -DNSCGI 
-c -o cgiutils.o cgiutils.c
gcc -g -O2 -I/usr/local/include/mysql -I/usr/local/include 
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.6.1/CORE  -DHAVE_CONFIG_H -DNSCGI 
-c -o auth.o auth.c
gcc -g -O2 -I/usr/local/include/mysql -I/usr/local/include 
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.6.1/CORE  -DHAVE_CONFIG_H -DNSCGI 
-c -o popen.o popen.c
gcc -g -O2 -I/usr/local/include/mysql -I/usr/local/include 
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.6.1/CORE  -DHAVE_CONFIG_H -DNSCGI 
-L/usr/local/lib/mysql -L/usr/local/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)
gmake[1]: *** [avail.cgi] Error 1
gmake[1]: Leaving directory `/root/nagios-1.0/cgi'
gmake: *** [all] Error 2
=========================================================================

Is it proper to put all DEBUG options at once? Or should only one be used?

Hoping for helpful input on this failure.

OpenBSD 3.2, gcc version 2.95.3 20010125 (prerelease), gmake=GNU Make 
version 3.79.1

Thanks,

DS



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
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