Bug #68114 [Com]: Build fails with gcc: Undefined symbols: ___extendsddf ___extendsfsd

From: Date: Sat, 03 Jan 2015 04:52:29 +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-189615@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:             Assigned
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2014-12-11 18:34:13] php-bugs-2014 at ryandesign dot com

@cbrugh, a workaround you can use immediately is described in my comment above from 2014-10-09 09:04
UTC. The fix I propose is described in my comment above from 2014-11-03 21:37 UTC.

------------------------------------------------------------------------
[2014-12-11 14:55:17] cbrugh at gmail dot com

Hello,

I am trying to compile 5.6.3 on FreeBSD and get the following.. I applied the attached patch and
still get the same error... any advice?

/home/b/php-5.6.3/ext/mysqlnd/mysqlnd_ps_codec.c:233: undefined reference to `__extendsfsd'
/home/b/php-5.6.3/ext/mysqlnd/mysqlnd_ps_codec.c:233: undefined reference to `__extendsddf'

Thanks!

------------------------------------------------------------------------
[2014-11-14 09:40:56] php-bugs-2014 at ryandesign dot com

Certainly; here is the compiled program:

http://ryandesign.com/tmp/php-bug-68114/snippet

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


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


Thread (40 messages)

« previous php.bugs (#189615) next »