Bug #68114 [Com]: Build fails with gcc: Undefined symbols: ___extendsddf ___extendsfsd
| From: | keyur@php.net | Date: | Wed, 07 Jan 2015 23:29:39 +0000 |
| Subject: | Bug #68114 [Com]: Build fails with gcc: Undefined symbols: ___extendsddf ___extendsfsd | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189723@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68114&edit=1
ID: 68114
Comment by: keyur@php.net
Reported by: php-bugs-2014 at ryandesign dot com
Summary: Build fails with gcc: Undefined symbols:
___extendsddf ___extendsfsd
Status: Feedback
Type: Bug
Package: MySQL related
Operating System: OS X
PHP Version: 5.5.17
Assigned To: keyur
Block user comment: N
Private report: N
New Comment:
snaps.php.net seems to be permanently dead. Please try 5.5 directly from the git repo (Instructions:
http://php.net/git.php)
Previous Comments:
------------------------------------------------------------------------
[2015-01-07 23:27:20] keyur@php.net
Please try using this snapshot:
http://snaps.php.net/php5.5-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2015-01-06 07:07:35] keyur@php.net
Pull request https://github.com/php/php-src/pull/983 is up and
completely removes decimal point support.
I will merge it into the repository in a few days once folks have had a chance to review it.
Thank you very much the bug reports and being patient!
------------------------------------------------------------------------
[2015-01-03 04:52:26] keyur@php.net
A patch is coming in the next few days to fix this by making the Decimal point support opt-in and
defaulting to the float-to-string-to-double method.
------------------------------------------------------------------------
[2015-01-03 01:09:49] swa at section66 dot com
It's not just OS X !
At least OpenBSD and FreeBSD all have the same (or highly similar) problem in 5.5.20 and 5.6.4
The workaround of adding "ac_cv_decimal_fp_supported=no" to the configure options seems to
get through the compile phase on 5.6.4 on OpenBSD already.
The snippet on OpenBSD:
$ gcc -o t t.c
/tmp//ccaYXIKe.o(.text+0x29): In function `main':
: undefined reference to `__extendsddf'
collect2: ld returned 1 exit status
$ gcc -O2 -o t t.c
$ ./t
Expected: 99.49, Actual: 99.490000
Suggest to either make sure the optimizer doesn't optimize the test program or remove the
optimizer in options during the configure as it's too smart to execute the test. [I'm not
that familiar with the PHP build system]
FWIW: it's an old OpenBSD version I'm running - I know ...
gcc version 4.2.1 20070719
------------------------------------------------------------------------
[2014-12-23 21:14:38] php at wesha dot name
(Re: https://bugs.php.net/bug.php?id=68192#1412808117)
https://bugs.php.net/bug.php?id=68114#1412845446
solution worked for me.
------------------------------------------------------------------------
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=68114
--
Edit this bug report at https://bugs.php.net/bug.php?id=68114&edit=1