Cannot compile plugins


#1

upon executing the “make” command, I receive an error(Nagios 3.2 install)

root@supermicro:~/downloads/nagios-plugins-1.4.11# make
make  all-recursive
make[1]: Entering directory `/root/downloads/nagios-plugins-1.4.11'
Making all in gl
make[2]: Entering directory `/root/downloads/nagios-plugins-1.4.11/gl'
make  all-am
make[3]: Entering directory `/root/downloads/nagios-plugins-1.4.11/gl'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/downloads/nagios-plugins-1.4.11/gl'
make[2]: Leaving directory `/root/downloads/nagios-plugins-1.4.11/gl'
Making all in lib
make[2]: Entering directory `/root/downloads/nagios-plugins-1.4.11/lib'
Making all in tests
make[3]: Entering directory `/root/downloads/nagios-plugins-1.4.11/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/nagios-plugins-1.4.11/lib/tests'
make[3]: Entering directory `/root/downloads/nagios-plugins-1.4.11/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/downloads/nagios-plugins-1.4.11/lib'
make[2]: Leaving directory `/root/downloads/nagios-plugins-1.4.11/lib'
Making all in plugins
make[2]: Entering directory `/root/downloads/nagios-plugins-1.4.11/plugins'
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl  -I/usr/include/postgresql -I/usr/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)
check_pgsql.c: In function âprint_helpâ:
check_pgsql.c:404: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
make[2]: *** [check_pgsql.o] Error 1
make[2]: Leaving directory `/root/downloads/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/downloads/nagios-plugins-1.4.11'
make: *** [all] Error 2

#2

what’s the configure output?


#3

The output of the “make” command is in my previous post.


#4

[quote=“Jago6060”]

The output of the “make” command is in my previous post.[/quote]

make ≠ configure…

‘configure’ is what you run before ‘make’, with or without a bunch of parameters. Take a peek at http://nagiosplugins.org/node/4 :slight_smile:


#5

TOPIC ABANDONED. Just reinstalled and recompiled