Menu

#6 HP.-UX: Symbol floorf not defined

open
nobody
None
5
2006-10-24
2006-10-24
No

Please reopen the following:
(for Version 1.4.4, 1.4.3 works fine)
https://sourceforge.net/tracker/?
func=detail&atid=397597&aid=1547070&group_id=29880

HP-UX 11.11, gcc (GCC) 4.1.1

Modification in
plugins/common.h

/* Solaris does not have floorf, but floor works.
Should probably be in configur
e */
#if defined(__sun) || defined(__sun__)
static inline float floorf (float x) { return floor
(x); }
#endif

==>

/* Solaris does not have floorf, but floor works.
Should probably be in configur
e */
#if defined(__sun) || defined(__sun__) || defined
(__hpux) || defined(__hpux__)
static inline float floorf (float x) { return floor
(x); }
#endif

adding:
|| defined(__hpux) || defined(__hpux__)

seems to be same Problem on AIX 5.1:

AIX:

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -
L. -L/usr/local/ssl/lib -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/home/brunken/nag/nagios-plugins-
1.4.4/plugins -L/usr/local/ssl/lib -
lm ../lib/libnagiosplug.a ../lib/libcoreutils.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[2]: *** [check_swap] Fehler 1
make[2]: Leaving directory `/home/brunken/nag/nagios-
plugins-1.4.4/plugins'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/brunken/nag/nagios-
plugins-1.4.4'
make: *** [all] Fehler 2

Discussion


Log in to post a comment.

MongoDB Logo MongoDB