[Nagiosplug-devel] [ nagiosplug-Bugs-1374705 ] check_swap.c compile fails -- FLOORF

SourceForge.net noreply at sourceforge.net
Tue Dec 6 10:49:08 CET 2005


Bugs item #1374705, was opened at 2005-12-06 13:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1374705&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: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Vandegrift (jvande)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap.c compile fails -- FLOORF

Initial Comment:
>From CVS file nagios-plugins-HEAD-200512051252

check_swap.c fails to compile & link on Solaris 9.

The MATH.H in solaris does not contain FLOORF function.

Either switch to FLOOR, or test for Solaris 
during ./configure and deal with lack of FLOORF with 
conditional statements.

you could try something like...

#if defined(__sun) || defined(__sun__)
static inline float floorf (float x) { return floor 
(x); }
#endif




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1374705&group_id=29880




More information about the Devel mailing list