[Nagiosplug-devel] [ nagiosplug-Bugs-1547070 ] HP-UX 11.23/parisc & 1.4.3
SourceForge.net
noreply at sourceforge.net
Sun Sep 30 19:34:37 CEST 2007
Bugs item #1547070, was opened at 2006-08-26 11:10
Message generated for change (Comment added) made by neomagic
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1547070&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: NeoM (neomagic)
Assigned to: Ton Voon (tonvoon)
Summary: HP-UX 11.23/parisc & 1.4.3
Initial Comment:
i try to compile nagios-plugins (1.4.3) on HP-UX 11i v2
(or 11.23) /
parisc and get two quirks:
* compilation of check_swap
if gcc -DLOCALEDIR=\"/opt/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I.
-I.. -I.. -I../lib -I../intl -I/opt/openssl/include
-I/opt/openssl/include -Wall -g -O2 -MT check_swap.o
-MD -MP -MF
".deps/check_swap.Tpo" -c -o check_swap.o check_swap.c; \
then mv -f ".deps/check_swap.Tpo"
".deps/check_swap.Po"; else rm -f
".deps/check_swap.Tpo"; exit 1; fi
check_swap.c: In function `main':
check_swap.c:55: warning: unused variable `tmp_mb'
check_swap.c: In function `process_arguments':
check_swap.c:396: warning: implicit declaration of
function `floorf'
/bin/sh ../libtool --mode=link --tag=CC gcc -Wall -g
-O2 -L.
-R/opt/openssl/lib -o check_swap check_swap.o -lm utils.o
../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o
-lintl -lgen -lssl
-lcrypto
gcc -Wall -g -O2 -o check_swap check_swap.o utils.o popen.o
-L/export/tmp/nrpe/nagios-plugins-1.4.3/plugins -lm
../lib/libnagiosplug.a ../lib/libcoreutils.a
/usr/local/lib/libintl.sl
-L/usr/local/lib /usr/local/lib/libiconv.sl -lc -lgen
-lssl -lcrypto
-Wl,+b -Wl,/usr/local/lib:/opt/openssl/lib
/usr/ccs/bin/ld: Unsatisfied symbols:
floorf (first referenced in check_swap.o) (code)
collect2: ld returned 1 exit status
*** Error exit code 1
even with a good configure:
checking for swap... no
checking for swapinfo... /usr/sbin/swapinfo
checking for /usr/sbin/swapinfo format... using HP-UX
format swapinfo
checking for lsps... no
checking for sys/stat.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/swap.h... yes
checking whether swapctl is declared... no
checking for swaptbl_t... no
checking for swapent_t... no
checking for struct swapent.se_nblks... no
* execution of check_disk
# /opt/nagios/libexec/check_disk -w 20 -c 10 -p / -p
/tmp -p /usr -p /var
INPUT ERROR: C_IDFP (0.000000) should be less than
W_IDFP (0.0) and both
should be between zero and 100 percent, inclusive for /
INPUT ERROR: C_IDFP (0.000000) should be less than
W_IDFP (0.0) and both
should be between zero and 100 percent, inclusive for /tmp
INPUT ERROR: C_IDFP
(4391739930864948500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000)
should be less than W_IDFP
(3862472858398281400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0)
and both should be between zero and 100 percent,
inclusive for /usr
INPUT ERROR: C_IDFP
(21143572731146757000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000)
should be less than W_IDFP
(14255999733776453000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0)
and both should be between zero and 100 percent,
inclusive for /var
check_disk: Could not parse arguments
Usage: check_disk -w limit -c limit [-p path | -x
device] [-t
timeout][-m] [-e] [-W limit] [-K limit] [-v] [-q]
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol0 819200 336688 478792 41% /
/dev/vg00/lvol1 8192000 1667256 6473832 20% /var
/dev/vg00/lvol2 5242880 2185480 3033560 42% /usr
/dev/vg00/lvol3 1048576 184120 857952 18% /tmp
[...]
----------------------------------------------------------------------
>Comment By: NeoM (neomagic)
Date: 2007-09-30 19:34
Message:
Logged In: YES
user_id=209976
Originator: YES
sorry. i do not have anymore access to an hp-ux box, so i can't validate
this. if someone else could ...
thanks ton
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2007-09-29 02:04
Message:
Logged In: YES
user_id=664364
Originator: NO
NeoM,
Thanks for the report. I think this has been fixed in SVN HEAD. Please try
the snapshot at http://nagiosplug.sf.net/snapshot.
I've marked this call as pending so the call will automatically close.
Please set to open if it is still an issue.
Ton
----------------------------------------------------------------------
Comment By: Jay Lucky (mordecai)
Date: 2006-09-27 19:43
Message:
Logged In: YES
user_id=47867
I came across this problem as well. The compile error on
check_swap is because HPUX doesn't have floorf, so you can
edit the plugins/common.h file and enable the inline
substitution that's been done for Sun.
/* Solaris does not have floorf, but floor works. Should
probably be in configure */
/* Neither does HPUX! And yes, it should be in configure… */
#if defined(__sun) || defined(__sun__) || defined(__hpux) ||
defined(__hpux__)
static inline float floorf (float x) { return floor(x); }
#endif
Probably a dirty hack, but it works...
As for check_disk, the CVS version works fine for me. There
appear to be signifigant differences in the 1.4.3 release
tarball and the CVS source tree for this plug-in. Go with a
current CVS tree if you want to get this working under HPUX.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1547070&group_id=29880
More information about the Devel
mailing list