#48795 [Opn->Ver]: Building intl 64-bit fails on OS X
From: gwynne@php.net Date: Sat, 04 Jul 2009 00:48:02 +0000 Subject: #48795 [Opn->Ver]: Building intl 64-bit fails on OS X References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-139241@lists.php.net to get a copy of this message
ID: 48795
Updated by: gwynne@php.net
Reported By: gwynne@php.net
-Status: Open
+Status: Verified
Bug Type: *Compile Issues
Operating System: Darwin9 (MacOS X 10.5)
PHP Version: 5.3CVS-2009-07-04 (CVS)
Previous Comments:
------------------------------------------------------------------------
[2009-07-04 00:47:46] gwynne@php.net
Description:
------------
This is a reference to PECL bug #16575
<http://pecl.php.net/bugs/bug.php?id=16575>.
Since intl will shortly be
part of core instead of PECL, I feel this bug belongs here. Here's my
addition to the issue:
This is due to intl/msgformat/msgformat_helpers.cpp being a C++ file
and GCC not handling that case cleanly. The exact error is specifically
due to GCC not linking to libstdc++. Which is, actually, kinda
reasonable since it's been invoked as a plain C compiler. Anyway, you
can get around the problem for now by adding
"/usr/lib/gcc/i686-apple-darwin9/4.2.1/libstdc++.dylib" (if you're
building with gcc-4.2) or
"/usr/lib/gcc/i686-apple-darwin9/4.0.1/libstdc++.dylib" (if you're
building with gcc-4.0, the default) to your LDFLAGS. That's right,
WITHOUT -l or -L. I wouldn't consider this a real solution, but a better
solution is pending further research into the subject.
Reproduce code:
---------------
$ CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' LDFLAGS='-arch x86_64'
./configure --enable-intl --with-icu=/path/to/icu
$ make
Expected result:
----------------
Build complete.
Don't forget to run 'make test'.
$
Actual result:
--------------
Undefined symbols:
"___gxx_personality_v0", referenced from:
EH_frame1 in msgformat_helpers.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
$
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48795&edit=1
Thread (27 messages)
- #48795 [Opn->Ver]: Building intl 64-bit fails on OS X
- #48795 [Com]: Building intl 64-bit fails on OS X
- #48795 [Ver]: Building intl 64-bit fails on OS X
- #48795 [Ver->Fbk]: Building intl 64-bit fails on OS X
- #48795 [Fbk->Ver]: Building intl 64-bit fails on OS X
- #48795 [Ver]: Building intl 64-bit fails on OS X
- #48795 [Com]: Building intl 64-bit fails on OS X
- #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Ver]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Ver]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Com]: Building intl 64-bit fails on OS X
- Bug #48795 [Ver->Fbk]: Building intl 64-bit fails on OS X
- Bug #48795 [Fbk->NoF]: Building intl 64-bit fails on OS X
| « previous | php.bugs (#139241) | next » |
|---|