[Nagiosplug-help] Plugins 1.4.11 fails to build with PostgreSQL 8.3

Andy Shellam andy.shellam-lists at mailnetwork.co.uk
Sat Feb 16 20:35:24 CET 2008


Hi,

I'm trying to compile the Nagios plugins 1.4.11 on Debian 4.0 with
PostgreSQL 8.3 and OpenSSL.
The following command line:

./configure --prefix=/usr/local/nagios3 --with-mysql=/usr/local/mysql
--with-pgsql=/usr/local/pgsql --with-cgiurl=/cgi-bin
--with-openssl=/usr/local/openssl --with-nagios-user=xxx
--with-nagios-group=xxx

yields:

make[2]: Entering directory `/var/software/nagios-plugins-1.4.11/plugins'
if gcc -DLOCALEDIR=\"/usr/local/nagios3/share/locale\" -DHAVE_CONFIG_H -I.
-I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/local/pgsql/include
-I/usr/local/openssl/include -I/usr/local/openssl/include -g -O2 -MT
check_pgsql.o -MD -MP -MF ".deps/check_pgsql.Tpo" -c -o check_pgsql.o
check_pgsql.c; \
then mv -f ".deps/check_pgsql.Tpo" ".deps/check_pgsql.Po"; else rm -f
".deps/check_pgsql.Tpo"; exit 1; fi
check_pgsql.c:71: error: 'NAMEDATALEN' undeclared here (not in a function)
make[2]: *** [check_pgsql.o] Error 1
make[2]: Leaving directory `/var/software/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/software/nagios-plugins-1.4.11'
make: *** [all] Error 2

The library paths:

/usr/local/mysql/lib
/usr/local/openssl/lib
/usr/local/pgsql/lib

are all in /etc/ld.so.conf.

Any ideas?  They compile just fine without PostgreSQL support.

Thanks,

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080216/0b2d501e/attachment.html>


More information about the Help mailing list