[Nagiosplug-help] make of nagios-plugins-1.4.5 on AIX 4.3 fails for check_swap with "Undefined symbol: .floor"

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Tue Nov 28 14:18:59 CET 2006


Hello Nagios Plugin Users,

I need to compile the plugin suit for an AIX 4.3 box.

The build already aborted with an alloca.h header file not found
while make was about to compile regex.c
That's why I reran configure, this time with the 
--without-included-regex switch.

This time the make proceeded up till check_swap.c
(btw, I don't necessarily need this check on this AIX box)
where a floorf definition wasn't found.

Since I assume this to be some math function probably from libm
I also tried adding -lm to the LDFLAGS in the Makefile of the
plugins
subdir from the source tree.

[nagios at moron:~/build/nagios-plugins-1.4.5]
$ cd plugins
[nagios at moron:~/build/nagios-plugins-1.4.5/plugins]
$ rcsdiff Makefile
=================================================================
==
RCS file: Makefile,v
retrieving revision 1.1
diff -r1.1 Makefile
252c252
< LDFLAGS =  -L. -L/usr/local/lib
---
> LDFLAGS =  -L. -L/usr/local/lib -lm


but even with this obviously futile addition make aborts with the
same error

[nagios at moron:~/build/nagios-plugins-1.4.5/plugins]
$ make check_swap
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L.
-L/usr/local/lib -lm -o
 check_swap  check_swap.o -lm utils.o ../lib/libnagiosplug.a
../lib/libcoreutils
.a popen.o -lssl -lcrypto 
gcc -g -O2 -o check_swap check_swap.o utils.o popen.o
-L/opt/sw/nagios/build/na
gios-plugins-1.4.5/plugins -L/usr/local/lib -lm
../lib/libnagiosplug.a ../lib/li
bcoreutils.a -lssl -lcrypto
ld: 0711-317 ERROR: Undefined symbol: .floorf
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: *** [check_swap] Error 1



Shall I kick out check_swap as a make target altogether,
or can someone advise me how to overcome this quirk?

Cheers
Ralph


P.S. this was my configure invocation:

$ cat ../configure_nagios-plugins.cmd 
CC=gcc MAKE=/usr/local/bin/make ./configure \
    --prefix=/opt/sw/nagios \
    --with-cgiurl=http://moron.rotten.tld/nagios/cgi \
 
--with-trusted-path=/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/
sbin \
    --with-openssl=/usr/local \
    --with-libiconv-prefix=/usr/lib \
    --with-libintl-prefix=/usr/local/lib \
    --with-perl=/usr/local/bin/perl \
    --with-fping-command=/usr/local/sbin/fping \
    --with-ping-command=/usr/sbin/ping \
    --with-uptime-command=/usr/bin/uptime \
    --with-rpcinfo-command=/usr/bin/rpcinfo \
    --with-nslookup-command=/usr/bin/nslookup \
    --with-ssh-command=/usr/local/bin/ssh \
    --with-mailq-command=/usr/sbin/mailq \
    --with-snmpget-command=/usr/local/bin/snmpget \
    --with-snmpgetnext-command=/usr/local/bin/snmpgetnext \
    --without-included-regex \
    --with-ps-command=/usr/bin/ps
#    --with-ps-format=/usr/bin/ps \








More information about the Help mailing list