Bug 22732 - RPM misses <float.h> ./popt/popt.c
RPM misses <float.h> ./popt/popt.c
Product: Red Hat Linux
Classification: Retired
Component: popt (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-12-22 07:11 EST by Tobias Burnus
Modified: 2007-03-26 23:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-22 12:15:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tobias Burnus 2000-12-22 07:11:50 EST
On Alphas (OSF1 4.0x) and on FreeBSD 3.4 the float constants are in
<float.h> so plvease incluse a

#include <float.h>

at least for those two machines.  (This happens with RPM 3.0.6 and 4.0.)
Comment 1 Jeff Johnson 2000-12-22 09:44:16 EST
I can certainly do that, but I'd like to know what "float constants" are needed
by rpm and why.
Can you append the output of a failed build using make -k so that I can see
what's up?
Comment 2 Tobias Burnus 2000-12-22 09:51:28 EST
In file popt/popt.c there are:

597:                    if (ABS(aDouble) > FLT_MAX)
599:                    if (ABS(aDouble) < FLT_MIN)

Adding it (#include <float.h>) to this file was sufficient (rpm-3.0.6, rpm 4.0
has some other problems, but it should also be sufficient).
Comment 3 Jeff Johnson 2000-12-22 10:00:25 EST
Ah, yes, popt needs <float.h>. Thanks, will add tests for float.h to rpm/popt's
Comment 4 Jeff Johnson 2000-12-30 14:11:00 EST
Added in rpm-4.0.[12] CVS.

Note You need to log in before you can comment on or make changes to this bug.