Compiling Nagios with PostgreSQL

C. Bensend benny at bennyvision.com
Thu Dec 2 20:44:46 CET 2004


> ../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'

Make sure you have the PostgreSQL -devel package(s) installed as well.

Benny


-- 
"... i want to be a farting burping maniac."
                                                  -- "kerry",
                                                     on MentalDischarge



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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