[Nagiosplug-devel] [ nagiosplug-Bugs-1497248 ] check_disk does not compile on Solaris 10 because of floorf

SourceForge.net noreply at sourceforge.net
Thu Jul 20 01:29:18 CEST 2006


Bugs item #1497248, was opened at 2006-05-30 01:45
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1497248&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: Pending
Resolution: None
Priority: 5
Submitted By: Daniel Austin (danaus)
>Assigned to: Ton Voon (tonvoon)
Summary: check_disk does not compile on Solaris 10 because of floorf

Initial Comment:
Nagios Plugis: 1.4.3
Related to previous bug: 1374705

Compilation on Solaris 10 results in error when
compiling check_disk.c:

error: static declaration of 'floorf' follows
non-static declaration

On line 32 of check_disk.c common.h is imported. On
line 196 of common.h we see:

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


Solaris 10 actually *does* have floorf (but not earlier
versions it seems).

Workaround is to just comment out the line for now but,
as original commenter said, prob best to replace this
with configure test. Sorry -- lack the skill to do that
at the moment, so no patch. :-(

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

>Comment By: Ton Voon (tonvoon)
Date: 2006-07-20 00:29

Message:
Logged In: YES 
user_id=664364

Daniel,

Can you please try the snapshot at http://nagiosplug.sf.net/snapshot. floorf has 
been removed from check_disk.c, so it should compile happily.

Ton

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

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




More information about the Devel mailing list