#19807 [Opn->Fbk]: math.c: In function `_php_math_zvaltobase' [...] `HUGE_VAL' undeclared

From: Date: Tue, 08 Oct 2002 02:19:29 +0000
Subject: #19807 [Opn->Fbk]: math.c: In function `_php_math_zvaltobase' [...] `HUGE_VAL' undeclared
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21767@lists.php.net to get a copy of this message
ID: 19807 Updated by: sniper@php.net Reported By: public@wernig.net -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Solaris 8 Sparc PHP Version: 4.2.3 New Comment: 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.. Previous Comments: ------------------------------------------------------------------------ [2002-10-07 20:12:31] public@wernig.net Well, upgrading to gcc3.2 didn't help. HUGE_VAL ist still not defined in math.h. Isn't this a ix86 feature? ------------------------------------------------------------------------ [2002-10-07 19:00:56] nicos@php.net can someone on a Sparc try this on PHP4.3.0 ? ------------------------------------------------------------------------ [2002-10-07 18:56:47] public@wernig.net Hi I' trying to compile php 4.2.3 with apache 1.3.27 on Sparc Solaris 8 (gcc3.0.3). Configured with ./configure --without-x --with-apache=../apache_1.3.27 --enable-force-cgi-redirect --enable-discard-path --enable-safe-mode --enable-magic-quotes --disable-rpath --with-zlib --enable-calendar --with-cyrus --with-db3=/usr/local/BerkeleyDB.3.2 --enable-ftp --with-mysql --enable-sockets --enable-memory-limit --enable-shared=yes --enable-mailparse --enable-track-vars --prefix=/usr/local/apache/php configure runs without errors. make then yields [...] math.c: In function `_php_math_zvaltobase': math.c:774: `HUGE_VAL' undeclared (first use in this function) math.c:774: (Each undeclared identifier is reported only once math.c:774: for each function it appears in.) make[3]: *** [math.lo] Error 1 [...] Strangely, when I compile php 4.2.2 on the same machine against apache 1.3.27, the error does not occur, i.e. everything works just fine. (btw.: the only math.h on the system is in /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/include/math.h and does definitely not define HUGE_VAL) The only thing I can think of right now is to get a newer math.h, i.e. update gcc (which I would sure hate :-[ Does anybody have any other suggestion? kind regards /markus ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19807&edit=1

« previous php.bugs (#21767) next »