Compiling for use with PostgreSQL

Scott Rich SRich at apiatech.com
Tue Mar 11 03:32:51 CET 2003


HELP!!

creating Makefile
creating subst
creating pkginfo
creating base/Makefile
creating common/Makefile
creating contrib/Makefile
creating cgi/Makefile
creating html/Makefile
creating xdata/Makefile
creating daemon-init
creating html/index.html
creating html/side.html
creating common/config.h
creating common/snprintf.h
creating base/nagios.h
creating cgi/cgiutils.h

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


*** Configuration summary for nagios 1.0 11-24-2002 ***:

 General Options:
 -------------------------
        Nagios executable:  nagios
        Nagios user/group:  nagios,nagios
       Command user/group:  nagios,nagios
            Embedded Perl:  no
        Install ${prefix}:  /home/apps/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/cgi-bin/nagios/
 Traceroute (used by WAP):  /usr/sbin/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.

[root at aitcorpux01 nagios-1.0]# make all
cd ./base && make
make[1]: Entering directory `/home/temp/nagios-1.0/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o commands.o commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o flapping.o flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o notifications.o
notifications.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sehandlers.o sehandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sretention.o sretention.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o perfdata.o perfdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -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: parse error before '*' token
../xdata/xrddb.c:63: warning: data definition has no type or storage
class
../xdata/xrddb.c:64: parse 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: `CONNECTION_BAD' undeclared (first use in this
function)
../xdata/xrddb.c:270: (Each undeclared identifier is reported only
once
../xdata/xrddb.c:270: for each function it appears in.)
../xdata/xrddb.c: In function `xrddb_disconnect':
../xdata/xrddb.c:304: `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: `PGRES_FATAL_ERROR' undeclared (first use in this
function)
../xdata/xrddb.c:335: `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: parse error before '*' token
../xdata/xcddb.c:70: warning: data definition has no type or storage
class
../xdata/xcddb.c:71: parse 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: `CONNECTION_BAD' undeclared (first use in this
function)
../xdata/xcddb.c:280: (Each undeclared identifier is reported only
once
../xdata/xcddb.c:280: for each function it appears in.)
../xdata/xcddb.c: In function `xcddb_disconnect':
../xdata/xcddb.c:308: `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: `PGRES_FATAL_ERROR' undeclared (first use in this
function)
../xdata/xcddb.c:335: `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: parse error before '*' token
../xdata/xsddb.c:66: warning: data definition has no type or storage
class
../xdata/xsddb.c:67: parse 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: `CONNECTION_BAD' undeclared (first use in this
function)
../xdata/xsddb.c:309: (Each undeclared identifier is reported only
once
../xdata/xsddb.c:309: for each function it appears in.)
../xdata/xsddb.c: In function `xsddb_disconnect':
../xdata/xsddb.c:340: `CONNECTION_BAD' undeclared (first use in this
function)
../xdata/xsddb.c: In function `xsddb_check_connection':
../xdata/xsddb.c:378: `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: `PGRES_FATAL_ERROR' undeclared (first use in this
function)
../xdata/xsddb.c:469: `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: parse error before '*' token
../xdata/xdddb.c:70: warning: data definition has no type or storage
class
../xdata/xdddb.c:71: parse 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: `CONNECTION_BAD' undeclared (first use in this
function)
../xdata/xdddb.c:280: (Each undeclared identifier is reported only
once
../xdata/xdddb.c:280: for each function it appears in.)
../xdata/xdddb.c: In function `xdddb_disconnect':
../xdata/xdddb.c:308: `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: `PGRES_FATAL_ERROR' undeclared (first use in this
function)
../xdata/xdddb.c:335: `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/temp/nagios-1.0/base'
make: *** [all] Error 2
[root at aitcorpux01 nagios-1.0]#



-------------------------------------------------------
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