Red Hat Bugzilla – Bug 22732
RPM misses <float.h> ./popt/popt.c
Last modified: 2007-03-26 23:38:36 EDT
On Alphas (OSF1 4.0x) and on FreeBSD 3.4 the float constants are in
<float.h> so plvease incluse a
at least for those two machines. (This happens with RPM 3.0.6 and 4.0.)
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
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).
Ah, yes, popt needs <float.h>. Thanks, will add tests for float.h to rpm/popt's
Added in rpm-4.0. CVS.