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

From: Date: Fri, 17 Mar 2017 19:23:27 +0000
Subject: Bug #74265 [Csd]: 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-207907@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
 Updated by:         nikic@php.net
 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:        
+Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Can you please verify that https://github.com/php/php-src/commit/2e8308260513015dbf80ff0239eca79dbca4f36e
does indeed resolve the build failure?


Previous Comments:
------------------------------------------------------------------------
[2017-03-17 19:22:19] nikic@php.net

Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2e8308260513015dbf80ff0239eca79dbca4f36e
Log: Fix bug #74265

------------------------------------------------------------------------
[2017-03-17 19:14:47] nikic@php.net

From AC_CHECK_DECLS documentation:

> Unlike the other ‘AC_CHECK_*S’ macros, when a symbol is not declared,
> HAVE_DECL_symbol is defined to ‘0’ instead of leaving HAVE_DECL_symbol undeclared.

Presumably that's the culprit, we're checking for definedness.

------------------------------------------------------------------------
[2017-03-17 19:12:36] nikic@php.net

Related To: Bug #74039

------------------------------------------------------------------------
[2017-03-17 18:50:07] deferraz at terra dot com dot br

Description:
------------
After the release 7.0.17 I cant build this release because on compilation time it cant find any
reference to isfinite:

ext/standard/.libs/var.o: In function `php_var_export_ex':
/usr/src/redhat/BUILD/php-7.0.17/ext/standard/var.c:469: undefined reference to `isfinite'
main/.libs/php_variables.o: In function `zend_dval_to_lval':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
Zend/.libs/zend_operators.o: In function `zendi_smart_strcmp':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.c:2774: undefined reference to `isfinite'
Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
Zend/.libs/zend_operators.o:/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: more
undefined references to `isfinite' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php7] Error 1
make: *** Waiting for unfinished jobs....
ext/standard/.libs/var.o: In function `php_var_export_ex':
/usr/src/redhat/BUILD/php-7.0.17/ext/standard/var.c:469: undefined reference to `isfinite'
main/.libs/php_variables.o: In function `zend_dval_to_lval':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
Zend/.libs/zend_operators.o: In function `zendi_smart_strcmp':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.c:2774: undefined reference to `isfinite'
Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
Zend/.libs/zend_operators.o:/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: more
undefined references to `isfinite' follow
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
ext/standard/.libs/var.o: In function `php_var_export_ex':
/usr/src/redhat/BUILD/php-7.0.17/ext/standard/var.c:469: undefined reference to `isfinite'
main/.libs/php_variables.o: In function `zend_dval_to_lval':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
Zend/.libs/zend_operators.o: In function `zendi_smart_strcmp':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.c:2774: undefined reference to `isfinite'
Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: undefined reference to `isfinite'
Zend/.libs/zend_operators.o:/usr/src/redhat/BUILD/php-7.0.17/Zend/zend_operators.h:117: more
undefined references to `isfinite' follow
collect2: ld returned 1 exit status
make: *** [sapi/phpdbg/phpdbg] Error 1

I tried to build against a pristine vm to see if any package that we use created this problem but on
a fresh vm the problem persists

I think that this problem is related to commit https://github.com/php/php-src/commit/714d825b62e719447686da6efe3b4063c2f25749



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=74265&edit=1


Thread (22 messages)

« previous php.bugs (#207907) next »