ID: 34247 Updated by: [EMAIL PROTECTED] Reported By: arattink at correct dot net -Status: Open +Status: Bogus Bug Type: *Configuration Issues Operating System: Linux 2.4.25 SMP PHP Version: 5.1.0RC1 New Comment:
Trying to outsmart configure is not bug in PHP. If your stuff doesn't work without setting g++ as linker, it's not PHP's fault. Previous Comments: ------------------------------------------------------------------------ [2005-08-25 13:36:42] arattink at correct dot net Description: ------------ The configure fails to discover that that g++ (ie LD=/usr/bin/g++) supports shared libraries. >From the output: checking whether the gcc linker (/usr/bin/g++) supports shared libraries... no I can assure you that g++ (used as 'ld) does support shared libs. I need to use g++ specificly because ld does not link C++ libraries correctly and we use some C++ code in our own extensions. g++ --version ==> 2.95.3 For the record: *only* LD is set, not CC or CXX or any xxxFLAGS. Reproduce code: --------------- LD=/usr/bin/g++ ./configure --disable_all Expected result: ---------------- checking whether the gcc linker (/usr/bin/g++) supports shared libraries... yes Actual result: -------------- checking whether the gcc linker (/usr/bin/g++) supports shared libraries... no Unfortunately it is nigh impossible to figure out what configure does. I also tried gcc-3.4.3 which claimed g++ did and did not support it in the same run, but in the end refused to build the .so file anyway. I also tried 'LD="g++ -v"' and '--with-gnu-ld' but to no avail. All these tests on a freshly untarred tarball to be sure. Yours sincerely, Arnoud Rattink. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34247&edit=1