`make all` fails for 1.4.1

Kurt Yoder ktynagios at richard-group.com
Wed May 31 20:56:40 CEST 2006


Hi list

I am using a Debian stable server for Nagios. I have been using the  
Debian Nagios package (1.3), but after a glibc upgrade a few months  
ago Nagios started dying unexpectedly. I've tried a lot of things to  
fix it, but no luck so far. So I thought I'd try compiling from  
scratch to see if this fixes the problem.

I'm having problems with this compile. If I do `./configure` with no  
arguments, `make all` works fine. However, if I do `./configure -- 
with-pgsql-xdata`,  `make all` fails with strange errors. How do I  
get past this?

Here's the really long transcript of the compile/make. I added  
explicit paths to lib and inc due to the error "pgsql/libpq-fe.h: No  
such file or directory", but as you can see this didn't get rid of  
that error:

kyoder at files:~/nagios-1.4.1$ ./configure --with-pgsql-xdata --with- 
pgsql-lib=/usr/lib/postgresql/ --with-pgsql-inc=/usr/include/postgresql/
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for strip... /usr/bin/strip
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking uio.h usability... no
checking uio.h presence... no
checking for uio.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for type of socket size... size_t
checking for mail... /usr/bin/mail
Init script directory:  /etc/rc.d/init.d
We'll use PostgreSQL database routines (in xdata/xsddb.*) for status  
data I/O...
We'll use PostgreSQL database routines (in xdata/xcddb.*) for comment  
data I/O...
We'll use PostgreSQL database routines (in xdata/xeddb.*) for  
extended data I/O...
We'll use PostgreSQL database routines (in xdata/xrddb.*) for  
retention data I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object  
data I/O...
We'll use default routines (in xdata/xpddefault.*) for performance  
data I/O...
We'll use PostgreSQL database routines (in xdata/xdddb.*) for  
scheduled downtime data I/O...
checking for main in -lpq... yes
PostgreSQL library was found!
checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... yes
GD library was found!
checking for traceroute... /usr/bin/traceroute
checking for snprintf... yes
checking for type va_list... yes
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating html/index.html
config.status: creating html/side.html
config.status: creating common/config.h
config.status: common/config.h is unchanged
config.status: creating common/snprintf.h
config.status: common/snprintf.h is unchanged
config.status: creating base/nagios.h
config.status: creating cgi/cgiutils.h
config.status: cgi/cgiutils.h is unchanged

Creating sample config files in sample-config/ ...


*** Configuration summary for nagios 1.4.1 05-15-2006 ***:

General Options:
-------------------------
         Nagios executable:  nagios
         Nagios user/group:  nagios,nagios
        Command user/group:  nagios,nagios
             Embedded Perl:  no
         Install ${prefix}:  /usr/local/nagios
                 Lock file:  ${prefix}/var/nagios.lock
            Init directory:  /etc/rc.d/init.d

Web Interface Options:
------------------------
                  HTML URL:  http://localhost/nagios/
                   CGI URL:  http://localhost/nagios/cgi-bin/
Traceroute (used by WAP):  /usr/bin/traceroute

External Data Routines:
------------------------
               Status data:  Database (PostgreSQL)
               Object data:  Template-based (text file)
              Comment data:  Database (PostgreSQL)
             Downtime data:  Database (PostgreSQL)
            Retention data:  Database (PostgreSQL)
           Peformance data:  Default (external commands)
        Extended info data:  Database (PostgreSQL)


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

kyoder at files:~/nagios-1.4.1$ make all
cd ./base && make
make[1]: Entering directory `/home/kyoder/nagios-1.4.1/base'
gcc -g -O2 -I/usr/include/postgresql/ -DHAVE_CONFIG_H -DNSCORE -L/usr/ 
lib/postgresql/ -lpq  nagios.c checks.o config.o commands.o  
flapping.o logging.o notifications.o sehandlers.o utils.o  
sretention.o ../xdata/xrddb.c ../common/comments.c ../xdata/ 
xcddb.c ../common/objects.c ../xdata/xodtemplate.c ../common/ 
statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../ 
common/downtime.c ../xdata/xdddb.c    -lm -o nagios
../xdata/xrddb.c:46:28: pgsql/libpq-fe.h: No such file or directory
../xdata/xrddb.c:63: error: syntax error before '*' token
../xdata/xrddb.c:63: warning: data definition has no type or storage  
class
../xdata/xrddb.c:64: error: syntax error before '*' token
../xdata/xrddb.c:64: warning: data definition has no type or storage  
class
../xdata/xrddb.c: In function `xrddb_connect':
../xdata/xrddb.c:268: warning: assignment makes pointer from integer  
without a cast
../xdata/xrddb.c:270: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xrddb.c:270: error: (Each undeclared identifier is reported  
only once
../xdata/xrddb.c:270: error: for each function it appears in.)
../xdata/xrddb.c: In function `xrddb_disconnect':
../xdata/xrddb.c:304: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xrddb.c: In function `xrddb_query':
../xdata/xrddb.c:334: warning: assignment makes pointer from integer  
without a cast
../xdata/xrddb.c:335: error: `PGRES_FATAL_ERROR' undeclared (first  
use in this function)
../xdata/xrddb.c:335: error: `PGRES_BAD_RESPONSE' undeclared (first  
use in this function)
../xdata/xrddb.c: In function `xrddb_read_program_information':
../xdata/xrddb.c:876: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:877: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:878: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:879: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:880: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:881: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:882: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:883: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c: In function `xrddb_read_host_information':
../xdata/xrddb.c:1016: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1019: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1022: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1025: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1026: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1027: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1030: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1033: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1036: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1039: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1042: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1045: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1048: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1051: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1054: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1057: warning: passing arg 1 of  
`set_host_state_information' makes pointer from integer without a cast
../xdata/xrddb.c:1057: warning: passing arg 3 of  
`set_host_state_information' makes pointer from integer without a cast
../xdata/xrddb.c: In function `xrddb_read_service_information':
../xdata/xrddb.c:1207: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1214: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1217: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1220: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1221: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1222: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1223: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1226: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1229: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1232: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1235: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1238: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1241: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1244: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1247: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1250: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1253: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1256: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xrddb.c:1259: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xrddb.c:1262: warning: passing arg 1 of  
`set_service_state_information' makes pointer from integer without a  
cast
../xdata/xrddb.c:1262: warning: passing arg 2 of  
`set_service_state_information' makes pointer from integer without a  
cast
../xdata/xrddb.c:1262: warning: passing arg 4 of  
`set_service_state_information' makes pointer from integer without a  
cast
../xdata/xcddb.c:54:28: pgsql/libpq-fe.h: No such file or directory
../xdata/xcddb.c:70: error: syntax error before '*' token
../xdata/xcddb.c:70: warning: data definition has no type or storage  
class
../xdata/xcddb.c:71: error: syntax error before '*' token
../xdata/xcddb.c:71: warning: data definition has no type or storage  
class
../xdata/xcddb.c: In function `xcddb_connect':
../xdata/xcddb.c:278: warning: assignment makes pointer from integer  
without a cast
../xdata/xcddb.c:280: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xcddb.c:280: error: (Each undeclared identifier is reported  
only once
../xdata/xcddb.c:280: error: for each function it appears in.)
../xdata/xcddb.c: In function `xcddb_disconnect':
../xdata/xcddb.c:308: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xcddb.c: In function `xcddb_query':
../xdata/xcddb.c:334: warning: assignment makes pointer from integer  
without a cast
../xdata/xcddb.c:335: error: `PGRES_FATAL_ERROR' undeclared (first  
use in this function)
../xdata/xcddb.c:335: error: `PGRES_BAD_RESPONSE' undeclared (first  
use in this function)
../xdata/xcddb.c: In function `xcddb_validate_host_comments':
../xdata/xcddb.c:508: warning: passing arg 1 of `find_host' makes  
pointer from integer without a cast
../xdata/xcddb.c:512: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xcddb.c: In function `xcddb_validate_service_comments':
../xdata/xcddb.c:597: warning: passing arg 1 of `find_service' makes  
pointer from integer without a cast
../xdata/xcddb.c:597: warning: passing arg 2 of `find_service' makes  
pointer from integer without a cast
../xdata/xcddb.c:601: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xcddb.c: In function `xcddb_save_host_comment':
../xdata/xcddb.c:761: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xcddb.c: In function `xcddb_save_service_comment':
../xdata/xcddb.c:860: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xsddb.c:51:28: pgsql/libpq-fe.h: No such file or directory
../xdata/xsddb.c:66: error: syntax error before '*' token
../xdata/xsddb.c:66: warning: data definition has no type or storage  
class
../xdata/xsddb.c:67: error: syntax error before '*' token
../xdata/xsddb.c:67: warning: data definition has no type or storage  
class
../xdata/xsddb.c: In function `xsddb_connect':
../xdata/xsddb.c:307: warning: assignment makes pointer from integer  
without a cast
../xdata/xsddb.c:309: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xsddb.c:309: error: (Each undeclared identifier is reported  
only once
../xdata/xsddb.c:309: error: for each function it appears in.)
../xdata/xsddb.c: In function `xsddb_disconnect':
../xdata/xsddb.c:340: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xsddb.c: In function `xsddb_check_connection':
../xdata/xsddb.c:378: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xsddb.c: In function `xsddb_query':
../xdata/xsddb.c:468: warning: assignment makes pointer from integer  
without a cast
../xdata/xsddb.c:469: error: `PGRES_FATAL_ERROR' undeclared (first  
use in this function)
../xdata/xsddb.c:469: error: `PGRES_BAD_RESPONSE' undeclared (first  
use in this function)
../xdata/xdddb.c:54:28: pgsql/libpq-fe.h: No such file or directory
../xdata/xdddb.c:70: error: syntax error before '*' token
../xdata/xdddb.c:70: warning: data definition has no type or storage  
class
../xdata/xdddb.c:71: error: syntax error before '*' token
../xdata/xdddb.c:71: warning: data definition has no type or storage  
class
../xdata/xdddb.c: In function `xdddb_connect':
../xdata/xdddb.c:278: warning: assignment makes pointer from integer  
without a cast
../xdata/xdddb.c:280: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xdddb.c:280: error: (Each undeclared identifier is reported  
only once
../xdata/xdddb.c:280: error: for each function it appears in.)
../xdata/xdddb.c: In function `xdddb_disconnect':
../xdata/xdddb.c:308: error: `CONNECTION_BAD' undeclared (first use  
in this function)
../xdata/xdddb.c: In function `xdddb_query':
../xdata/xdddb.c:334: warning: assignment makes pointer from integer  
without a cast
../xdata/xdddb.c:335: error: `PGRES_FATAL_ERROR' undeclared (first  
use in this function)
../xdata/xdddb.c:335: error: `PGRES_BAD_RESPONSE' undeclared (first  
use in this function)
../xdata/xdddb.c: In function `xdddb_validate_host_downtime':
../xdata/xdddb.c:513: warning: passing arg 1 of `find_host' makes  
pointer from integer without a cast
../xdata/xdddb.c:517: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c:522: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:526: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c: In function `xdddb_validate_service_downtime':
../xdata/xdddb.c:627: warning: passing arg 1 of `find_service' makes  
pointer from integer without a cast
../xdata/xdddb.c:627: warning: passing arg 2 of `find_service' makes  
pointer from integer without a cast
../xdata/xdddb.c:631: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c:636: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:640: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c: In function `xdddb_save_host_downtime':
../xdata/xdddb.c:801: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c: In function `xdddb_save_service_downtime':
../xdata/xdddb.c:900: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c: In function `xdddb_read_host_downtime':
../xdata/xdddb.c:1161: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c:1164: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1167: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1170: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1173: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c:1176: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1179: warning: passing arg 1 of `add_host_downtime'  
makes pointer from integer without a cast
../xdata/xdddb.c:1179: warning: passing arg 3 of `add_host_downtime'  
makes pointer from integer without a cast
../xdata/xdddb.c:1179: warning: passing arg 4 of `add_host_downtime'  
makes pointer from integer without a cast
../xdata/xdddb.c: In function `xdddb_read_service_downtime':
../xdata/xdddb.c:1292: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c:1295: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1298: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1301: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1304: warning: passing arg 1 of `atoi' makes pointer  
from integer without a cast
../xdata/xdddb.c:1307: warning: passing arg 1 of `strtoul' makes  
pointer from integer without a cast
../xdata/xdddb.c:1310: warning: passing arg 1 of  
`add_service_downtime' makes pointer from integer without a cast
../xdata/xdddb.c:1310: warning: passing arg 2 of  
`add_service_downtime' makes pointer from integer without a cast
../xdata/xdddb.c:1310: warning: passing arg 4 of  
`add_service_downtime' makes pointer from integer without a cast
../xdata/xdddb.c:1310: warning: passing arg 5 of  
`add_service_downtime' makes pointer from integer without a cast
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/home/kyoder/nagios-1.4.1/base'
make: *** [all] Error 2



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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