#19807 [Com]: math.c: In function `_php_math_zvaltobase' [...] `HUGE_VAL' undeclared
| From: | pmurphy at ionixpharma dot com | Date: | Wed, 30 Apr 2003 13:00:32 +0000 |
| Subject: | #19807 [Com]: math.c: In function `_php_math_zvaltobase' [...] `HUGE_VAL' undeclared | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38829@lists.php.net to get a copy of this message | ||
ID: 19807
Comment by: pmurphy at ionixpharma dot com
Reported By: public at wernig dot net
Status: Closed
Bug Type: Compile Failure
Operating System: Solaris 8 Sparc
PHP Version: 4.2.3
Assigned To: edink
New Comment:
Solaris 8 requires #include <values.h> to get most of the
system-dependent maths values, and even then it doesn't have HUGE_VAL,
despite this being referenced in the math(3HEAD) man page.
By changing the reference to use MAXFLOAT instead and adding the
#include above math.h, the code compiles - whether it achieves the same
end is an interesting question...
Previous Comments:
------------------------------------------------------------------------
[2002-10-15 10:04:11] sterling@php.net
Should be fixed in CVS, if not, please open up a new Bug report.
------------------------------------------------------------------------
[2002-10-12 10:31:23] sniper@php.net
Marking as critical and assigning to Edin who put that code in math.c
as fix for other bug:
http://bugs.php.net/bug.php?id=14807
------------------------------------------------------------------------
[2002-10-08 01:14:45] public at wernig dot net
OK, so it's not x86 (the manpages on my system have no reference
whatsoever to anything called HUGE_VAL, though)
But why do dozens of other packages (including php 4.22) compile
corrrectly? Is it just bad luck then ...?
(btw. I had googled up the same page, but couldn't find out if and how
the problem was solved there)
------------------------------------------------------------------------
[2002-10-07 21:20:07] sniper@php.net
btw. Some man pages for solaris 8 also mention HUGE_VAL..so it's NOT
x86 specific.
------------------------------------------------------------------------
[2002-10-07 21:19:29] sniper@php.net
Did some creative searches with google and came across this:
http://archives.postgresql.org/pgsql-admin/2001-04/msg00155.php
I think you just have done something wrong or haven't installed some
necessary package..
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19807
--
Edit this bug report at http://bugs.php.net/?id=19807&edit=1