[Nagiosplug-help] Compile problem with Nagios-Plugins 1.4.2 onAIX

Andreas Ericsson ae at op5.se
Tue Feb 14 12:04:07 CET 2006

Jacob Laack wrote:
> The system is running AIX 5.1.  I installed GNU make and ran the LDFLAGS command listed and I got pretty much the same thing:
> # LDFLAGS=-bnoquiet make
> make  all-recursive
> make[1]: Entering directory `/usr/local/nagios-plugins-1.4.2'
> Making all in intl
> make[2]: Entering directory `/usr/local/nagios-plugins-1.4.2/intl'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/nagios-plugins-1.4.2/intl'
> Making all in lib
> make[2]: Entering directory `/usr/local/nagios-plugins-1.4.2/lib'
> make  all-am
> make[3]: Entering directory `/usr/local/nagios-plugins-1.4.2/lib'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/usr/local/nagios-plugins-1.4.2/lib'
> make[2]: Leaving directory `/usr/local/nagios-plugins-1.4.2/lib'
> Making all in plugins
> make[2]: Entering directory `/usr/local/nagios-plugins-1.4.2/plugins'
> gcc  -g -O2  -L. -o check_swap  check_swap.o  utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o ../intl/libintl.a -liconv
> ld: 0711-317 ERROR: Undefined symbol: .floor

Hmm. Try editing the makefile and adding "-bnoquiet -bloadmap -lmath" to 
the LDFLAGS variable. It should be set in the plugins/ directory

"undefined symbol" means that the linker can't find it in the code or in 
one of the compiled libraries. floor() being a math function, it should 
be in libmath if anywhere.

Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

More information about the Help mailing list