php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4385 undefined reference to `isfinite'
Submitted: 2000-05-10 17:09 UTC Modified: 2000-06-16 01:30 UTC
From: everett at bentonrea dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 2 OS: Linux RH 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: everett at bentonrea dot com
New email:
PHP Version: OS:

 

 [2000-05-10 17:09 UTC] everett at bentonrea dot com
I get the follow error message when compiling apache:(bottom of message)

./configure --with-apache=../apache --disable-short-tags --with-mysql=../mysql

No problems in PHP build.  The error is related to a macro definition:

35: #ifndef HAVE_FINITE
36: #ifndef finite                                  /* in case it's already a macro */
37: #define finite(a) isfinite(a)   /* HPUX 11 only has isfinite() */
38: #endif
39: #else
40: #if HAVE_IEEEFP_H
41: #include <ieeefp.h>
42: #endif
43: #endif

I'm not running on HPUX, I am running RH 6.1.

If I comment out line 36 thru 39 it will compile and build with apache.


Brandt.


<=== src/modules/php4
===> src/modules/local
make[4]: Nothing to be done for `all'.
<=== src/modules/local
<=== src/modules
gcc -c  -I./os/unix -I./include -I/usr/local/include/mysql/  -DLINUX=2 -I/usr/local/src/php-4.0RC2 -I/usr/local/src/php-4.0RC2/Zend -I/usr/local/src/php-4.0RC2/Zend -I/usr/local/src/php-4.0RC2 -DNO_DL_NEEDED  modules.c
gcc -c  -I./os/unix -I./include -I/usr/local/include/mysql/  -DLINUX=2 -I/usr/local/src/php-4.0RC2 -I/usr/local/src/php-4.0RC2/Zend -I/usr/local/src/php-4.0RC2/Zend -I/usr/local/src/php-4.0RC2 -DNO_DL_NEEDED  buildmark.c
gcc  -DLINUX=2 -I/usr/local/src/php-4.0RC2 -I/usr/local/src/php-4.0RC2/Zend -I/usr/local/src/php-4.0RC2/Zend -I/usr/local/src/php-4.0RC2 -DNO_DL_NEEDED   -L/usr/local/lib/mysql/  \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a modules/local/liblocal.a main/libmain.a ./os/unix/libos.a ap/libap.a   -lmysqlclient -Wl,-rpath,/usr/local/src/gd -Wl,-rpath,/mysql  -rdynamic -L/usr/local/src/gd -L/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lgdbm  -ldl -lmysqlclient -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv  -lm -lcrypt
modules/php4/libphp4.a(zend_operators.o): In function `is_numeric_string':
/usr/local/src/php-4.0RC2/Zend/zend_operators.c:1408: undefined reference to `isfinite'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.12'
make: *** [build] Error 2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-13 06:49 UTC] sas at cvs dot php dot net
Please post the part of config.log where it says "checking for finite". Are there any error messages?
 [2000-05-13 12:49 UTC] everett at bentonrea dot com
[snip]
configure:31504: checking for strtod
configure:31504: checking for strtol
configure:31504: checking for finite
configure:31558: checking whether sprintf is broken
configure:31649: checking whether to enable experimental ZTS
configure:31653: checking whether to enable inline optimization for GCC
configure:31657: checking whether to enable a memory limit
[snip]
 [2000-06-16 01:30 UTC] andi at cvs dot php dot net
This should be fixed in the latest CVS (and probably also in 4.0.0). If you still have problems then please open a new bug report (try the CVS or 4.0.1 when it comes out first though).
Thanks.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 22:00:01 2026 UTC