[Nagiosplug-devel] [ nagiosplug-Patches-1864550 ] check_swap: unresolved symbol when compiling under hpux11.11
SourceForge.net
noreply at sourceforge.net
Sat Jan 5 19:08:51 CET 2008
Patches item #1864550, was opened at 2008-01-05 17:18
Message generated for change (Comment added) made by lausser
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1864550&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: gerhard lausser (lausser)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap: unresolved symbol when compiling under hpux11.11
Initial Comment:
Hi,
i tried to build plugins-1.4.11 on a hp-ux 11.11 machine, but it failed with:
-1.4.11/plugins -lm ../lib/libnagiosplug.a ../gl/libgnu.a
/usr/ccs/bin/ld: Unsatisfied symbols:
floorf (first referenced in check_swap.o) (code)
collect2: ld returned 1 exit status
It looks like floorf is not known to this OS. I propose to replace the
warn_size_bytes = floorf(warn_size_bytes);
with
warn_size_bytes = (float) floor(warn_size_bytes);
which converts double to float.
Attached is a patch which let me build the plugins successfully.
Greetings from Munich,
Gerhard
----------------------------------------------------------------------
>Comment By: gerhard lausser (lausser)
Date: 2008-01-05 19:08
Message:
Logged In: YES
user_id=613416
Originator: YES
Update: The same happens with AIX5.1
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1864550&group_id=29880
More information about the Devel
mailing list