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.
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Have the same issue. Just downgrade to 2.23.1, that fixed this error.
(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
> 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.
(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.
I can reproduce this. Did adding -lstdc++ actually work?
(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.
OK. Patch added. See if this helps.