[Nagiosplug-devel] Nagiosplug-devel Digest, Vol 21, Issue 7
Olivier 'Babar' Raginel
nagios at babar.us
Mon Feb 11 22:18:17 CET 2008
On Mon, Feb 11, 2008 at 05:36:37PM +0100, Matthias.Broenner at systemagmbh.de wrote:
> i removed the line from 108-111 in utils_base.c. Now "make" goes on :) ...
> until next error....
> cc -g -o check_swap check_swap.o utils.o popen.o
> -L/root/nagios-plugins-1.4.11/plugins -L/opt/openssl/lib -lm
> ../lib/libnagiosplug.a ../gl/libgnu.a
> /usr/ccs/bin/ld: Unsatisfied symbols:
> floorf (first referenced in check_swap.o) (code)
> *** Error exit code 1
That's weird, normally floorf is part of libm, and there is -lm.
But, according to:
http://www.gnu.org/software/gnulib/manual/html_node/floorf.html
it's missing on HP-UX 11.
In theory, you should be able to change all floorf into floor and it
should work, but you might have some overflow issues.
A patch for this shall require some m4 configure tweaking and a few
defines.
Another hack might be to use these:
#ifndef floorf
#define floorf (float)floor
#endif
Find one .h which gets included in at least this .c :)
But honestly, I'm not happy with any solution (which are the same in
fact, just 2 different ways to write it).
I let main coders decide what's the best way to do so, but this should
help you go on with the compilation.
Kind regards,
--
Babar.
More information about the Devel
mailing list