Bug #74265 [Com]: Build problems after 7.0.17 release: undefined reference to `isfinite'

From: Date: Wed, 05 Apr 2017 05:03:08 +0000
Subject: Bug #74265 [Com]: Build problems after 7.0.17 release: undefined reference to `isfinite'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208327@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74265&edit=1 ID: 74265 Comment by: adi at ddns dot com dot au Reported by: deferraz at terra dot com dot br Summary: Build problems after 7.0.17 release: undefined reference to `isfinite' Status: Closed Type: Bug Package: Compile Failure Operating System: CentOS-5 PHP Version: 7.0.17 Assigned To: nikic Block user comment: N Private report: N New Comment: ext/standard/.libs/var.o: In function `php_var_export_ex': /root/adi/work/src/php-7.0.18RC1/ext/standard/var.c:469: undefined reference to `isfinite' main/.libs/php_variables.o: In function `zend_dval_to_lval': /root/adi/work/src/php-7.0.18RC1/Zend/zend_operators.h:117: undefined reference to `isfinite' Zend/.libs/zend_operators.o: In function `zendi_smart_strcmp': /root/adi/work/src/php-7.0.18RC1/Zend/zend_operators.c:2774: undefined reference to `isfinite' Zend/.libs/zend_operators.o: In function `zend_dval_to_lval': /root/adi/work/src/php-7.0.18RC1/Zend/zend_operators.h:117: undefined reference to `isfinite' /root/adi/work/src/php-7.0.18RC1/Zend/zend_operators.h:117: undefined reference to `isfinite' Zend/.libs/zend_operators.o:/root/adi/work/src/php-7.0.18RC1/Zend/zend_operators.h:117: more undefined references to `isfinite' follow collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Previous Comments: ------------------------------------------------------------------------ [2017-03-23 11:25:14] nikic@php.net Related To: Bug #74288 ------------------------------------------------------------------------ [2017-03-23 04:20:57] requinix@php.net Related To: Bug #74295 ------------------------------------------------------------------------ [2017-03-22 13:59:10] kaplan@php.net I had the problem with PHP 7.1.3 on AIX, and the patch fixed it. thanks. ------------------------------------------------------------------------ [2017-03-17 22:27:29] deferraz at terra dot com dot br I think i found the problem on the rpm build server: In the new pristine server i had installed autoconf-2.59-12 m4-1.4.5-3 , and in the rpm build server i had installed autoconf-2.65 and m4-1.4.13, for that reason , on CentOS 5 that chack for isfinite function using autoconf2.65 that test doesnt fail and with autoconf-2.59 it fails (Right now I can't say why). Using the distribution vanilla packages of autoconf/m4 that isfinite test fails and the patch that you sent builds successfully. I am including this information on this bug report so anyone with the same problem can fix the situation Thanks for the quick patch response and information about this issue ------------------------------------------------------------------------ [2017-03-17 21:01:31] deferraz at terra dot com dot br I think that i found the possible issue, on the vanilla build the config.log says that isfinite is not found, and my other build server that i do my rpm builds finds the function: Upstream config.log snippet: configure:131360: $? = 0 configure:131362: ./conftest configure:131365: $? = 0 configure:131384: result: no configure:131398: checking whether isfinite is declared configure:131423: cc -c -I/usr/include -g -O2 -fvisibility=hidden conftest.c >&5 conftest.c: In function 'main': conftest.c:383: error: 'isfinite' undeclared (first use in this function) conftest.c:383: error: (Each undeclared identifier is reported only once conftest.c:383: error: for each function it appears in.) configure:131429: $? = 1 My rpm build server: configure:95014: checking whether isfinite is declared configure:95014: cc -c -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign -fvisibility=hidden conftest.c >&5 configure:95014: $? = 0 configure:95014: result: yes The funny thing on this situation that for what I understand those functions are related to math.h and math library that I use the original ones from CentOS distro ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=74265 -- Edit this bug report at https://bugs.php.net/bug.php?id=74265&edit=1

« previous php.bugs (#208327) next »