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

From: Date: Mon, 03 Nov 2014 21:37:56 +0000
Subject: Bug #68114 [Asn]: Build fails with gcc: Undefined symbols: ___extendsddf ___extendsfsd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188430@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 User updated by: php-bugs-2014 at ryandesign dot com 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: You can revert that change; it doesn't help, as I said above on 2014-10-08. It is not possible that you tested that fix on Mac OS X 10.9 with gcc 4.2.1 from XCode because the versions of Xcode for Mac OS X 10.7 and later do not include any version of gcc. (Xcode 4 for those OS X versions include llvm-gcc42 which is different. Xcode 5 and later provide only clang.) The fix I propose is to modify the configure script so that "-O0" is added to the CFLAGS for this test, as apparently old gcc optimizes the test away somehow, as I said above on 2014-10-10. Previous Comments: ------------------------------------------------------------------------ [2014-11-03 21:22:50] keyur@php.net Yes I did read the comments and the patch I made specifically checks the compiled output to make sure it matches what's expected: https://github.com/php/php-src/commit/648673bffe7a7c63ce6223fcbac7c118a114c893 On Mac OS X 10.9 with gcc 4.2.1 from XCode I've had no issues compiling. And same with a gcc-4.9 from homebrew. I don't have access to OS X 10.6. Can you pastebin or gist your config.log file with the failure? Also can you compile and run this snippet and paste the output? #include <stdio.h> #include <string.h> int main(int argc, char **argv) { typedef float dec32 __attribute__((mode(SD))); dec32 k = 99.49f; double d2 = (double)k; const char *check_str = "99.49"; char print_str[32]; snprintf(print_str, 32, "%f", d2); printf("Expected: %s, Actual: %s\n", check_str, print_str); return memcmp(print_str, check_str, 5); } ------------------------------------------------------------------------ [2014-11-03 00:35:51] php-bugs-2014 at ryandesign dot com Thanks for making these snapshots available on a different server since snaps.php.net and qa.php.net are still down. I tested 5.5.19RC1 and 5.6.3RC1, and there is no change in the issue. Did you read all my previous messages in which I explained what the problem and solution are? ------------------------------------------------------------------------ [2014-11-02 17:43:32] keyur@php.net Please try using this snapshot: http://snaps.php.net/php5.5-latest.tar.gz For Windows: http://windows.php.net/snapshots/ 5.5.19RC1 is released and available for download here http://server.famillecollet.com/php/ Release notes: https://github.com/php/php-src/blob/php-5.5.19RC1/NEWS ------------------------------------------------------------------------ [2014-10-24 23:23:02] php-bugs-2014 at ryandesign dot com I'd like to try the snapshot, but snaps.php.net has been down for days. "This service is unavailable at the moment. Please try again in a day" ------------------------------------------------------------------------ [2014-10-20 16:57:48] keyur@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ 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

« previous php.bugs (#188430) next »