Compiling Nagios with PostgreSQL

swaugh at reachusa.com swaugh at reachusa.com
Thu Dec 2 20:32:13 CET 2004


Nagios version 1.2
PostgreSQL version 8.0.0beta5
Fedora Core version 2.6.5-1.358

I am trying to compile Nagios with PostgreSQL support and when I run 'make 
all' after running through the configure script I get the following 
output:

sretention.o(.text+0x27): In function `save_state_information':
/nagios/nagios-1.2/base/sretention.c:86: undefined reference to 
`xrddefault_save_state_information'
sretention.o(.text+0x87): In function `read_initial_state_information':
/nagios/nagios-1.2/base/sretention.c:122: undefined reference to 
`xrddefault_read_state_information'
/tmp/ccdEBQIe.o(.text+0x3c6): In function `xrddb_connect':
../xdata/xrddb.c:268: undefined reference to `PQconnectdb'
/tmp/ccdEBQIe.o(.text+0x3d3):../xdata/xrddb.c:270: undefined reference to 
`PQstatus'
/tmp/ccdEBQIe.o(.text+0x3f0):../xdata/xrddb.c:272: undefined reference to 
`PQfinish'
/tmp/ccdEBQIe.o(.text+0x449): In function `xrddb_disconnect':
../xdata/xrddb.c:304: undefined reference to `PQstatus'
/tmp/ccdEBQIe.o(.text+0x45d):../xdata/xrddb.c:305: undefined reference to 
`PQfinish'
/tmp/ccdEBQIe.o(.text+0x479): In function `xrddb_query':
../xdata/xrddb.c:334: undefined reference to `PQexec'
/tmp/ccdEBQIe.o(.text+0x490):../xdata/xrddb.c:335: undefined reference to 
`PQresultStatus'
/tmp/ccdEBQIe.o(.text+0x4a6):../xdata/xrddb.c:335: undefined reference to 
`PQresultStatus'
/tmp/ccdEBQIe.o(.text+0x4c6):../xdata/xrddb.c:336: undefined reference to 
`PQclear'
/tmp/ccdEBQIe.o(.text+0x4e1): In function `xrddb_free_query_memory':
../xdata/xrddb.c:363: undefined reference to `PQclear'
/tmp/ccdEBQIe.o(.text+0xe71): In function 
`xrddb_read_program_information':
../xdata/xrddb.c:873: undefined reference to `PQntuples'
/tmp/ccdEBQIe.o(.text+0xe91): In function 
`xrddb_read_program_information':
/usr/include/stdlib.h:382: undefined reference to `PQgetvalue'

There are more errors before it quits, but they are all undefined 
reference errors.  Any help or ideas on what is wrong would be greatly 
appreciated.


Sean Waugh
Network Specialist
Reach USA
swaugh at reachusa.com
(513) 794-4165
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041202/71126b91/attachment.html>


More information about the Users mailing list