Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463498 - dev-lang/php-5.3.23-r1 - ld: ext/intl/msgformat/msgformat_helpers.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
Summary: dev-lang/php-5.3.23-r1 - ld: ext/intl/msgformat/msgformat_helpers.o: undefine...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=48795
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-03-27 16:10 UTC by Attila Tóth
Modified: 2013-04-20 05:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2013-03-27 16:10:59 UTC
Error message in build.log:
/var/tmp/portage/dev-lang/php-5.3.23-r1/work/sapis-build/cli/ext/readline/php_readline.h:26:2: warning: #warning Readline module will *NEVER* be thread-safe [-Wcpp]
/bin/sh /var/tmp/portage/dev-lang/php-5.3.23-r1/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=link /var/tmp/portage/dev-lang/php-5.3.23-r1/work/sapis-build/cli/meta_ccld -export-dynamic -I/usr/include -O2 -march=corei7 -pipe -pthread -DZTS  -L/usr/lib64/mysql -L/usr//lib64 -Wl,-O1 -Wl,--as-needed -R /usr/lib64/mysql -R /usr//lib64 -R /usr/lib64/ ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date
<<< snip snip snip >>>
Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo main/internal_functions_cli.lo -lcrypt -lc-client -lexslt -ltidy -lresolv -lreadline -lncurses -laspell -lpspell -lmysqlclient_r -lmcrypt -lltdl -lonig -lcrypt -lpam -lgmp -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lenchant -ldb-4.8 -lgdbm -lcurl -lbz2 -lz -lpcre -lcrypt -lrt -lm -ldl -lnsl -lcrypt -lxml2 -lz -lm -ldl -lssl -lcrypto -lcurl -lidn -lrtmp -lz -lssl -lcrypto -lssh2 -lssh2 -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -lz -lrt -lxml2 -lz -lm -ldl -lssl -lcrypto -lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lmysqlclient_r -lz -lcrypt -lnsl -lm -lssl -lcrypto -lodbc -lmysqlclient_r -lz -lcrypt -lnsl -lm -lssl -lcrypto -lodbc -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxslt -lxml2 -lz -ldl -lm -lrt -lcrypt  -o sapi/cli/php
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: ext/intl/msgformat/msgformat_helpers.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: '__gxx_personality_v0@@CXXABI_1.3' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

Reproducible: Always




Solution:
https://bugs.php.net/bug.php?id=48795
[2010-02-10 14:05 UTC] surfchen at gmail dot com

It is a linking problem, here is the simple workaround:
edit Makefile and add -lstdc++ into EXTRA_LIBS.

I should better upgrade to php 5.4 eventually:
Dw.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-27 16:26:31 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Maxim Sychevoy 2013-03-31 02:34:18 UTC
Have the same issue. Just downgrade to 2.23.1, that fixed this error.
Comment 3 Maxim Sychevoy 2013-03-31 09:59:24 UTC
(In reply to comment #2)
> Have the same issue. Just downgrade to 2.23.1, that fixed this error.

Downgrade Binutils to 2.23.1
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-01 23:59:14 UTC
> 1) Please post your `emerge --info' output in a comment.
> 2) Please attach the entire build log to this bug report.

Please attach this information and reopen the bug, thank you.
Comment 5 Attila Tóth 2013-04-02 00:55:39 UTC
(In reply to comment #4)
> > 1) Please post your `emerge --info' output in a comment.
> > 2) Please attach the entire build log to this bug report.
> 
> Please attach this information and reopen the bug, thank you.

I'm sorry I didn't take the time to post emerge --info and build.log.
Underlinking. The problem is self-explanatory. If binutils 2.23.2 gets stabilized, others might also experience the symptoms. At least me and others will be able to quickly find a solution.
Of course it's possible php 5.3 will be deprecated by the time binutils 2.23.2 will be stabilized. However I still have some PHP apps I cannot make behave vs php 5.4. Thx: Dw.
Comment 6 Ole Markus With (RETIRED) gentoo-dev 2013-04-02 06:32:12 UTC
I can reproduce this.

Did adding -lstdc++ actually work?
Comment 7 Ole Markus With (RETIRED) gentoo-dev 2013-04-02 07:23:54 UTC
(In reply to comment #5)
> Of course it's possible php 5.3 will be deprecated by the time binutils
> However I still have some PHP apps I cannot make
> behave vs php 5.4. Thx: Dw.

Regarding 5.3, please note that as soon as 5.5 is out, I will start deprecating 5.3, meaning extension support will be gradually dropped (revision/version bumping will not support 5.3), and when upstream EOL is approaching, the slot will be masked and removed.
Comment 8 Ole Markus With (RETIRED) gentoo-dev 2013-04-02 08:12:39 UTC
OK. Patch added. See if this helps.