Bug #4385: undefined reference to `isfinite'

From: Date: Wed, 10 May 2000 21:09:47 +0000
Subject: Bug #4385: undefined reference to `isfinite'
Groups: php.dev 
Request: Send a blank email to php-dev+get-18585@lists.php.net to get a copy of this message
From: everett@bentonrea.com Operating system: Linux RH 6.1 PHP version: 3.0.16 PHP Bug Type: Compile Failure Bug description: undefined reference to `isfinite' 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

« previous php.dev (#18585) next »