#34247 [Bgs]: configure claims g++ does not support shared libraries (when used as LD)
| From: | sniper@php.net | Date: | Thu, 25 Aug 2005 11:39:53 +0000 |
| Subject: | #34247 [Bgs]: configure claims g++ does not support shared libraries (when used as LD) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83976@lists.php.net to get a copy of this message | ||
ID: 34247
Updated by: sniper@php.net
Reported By: arattink at correct dot net
Status: Bogus
Bug Type: *Configuration Issues
Operating System: Linux 2.4.25 SMP
PHP Version: 5.1.0RC1
New Comment:
There are extensions in PECL written in C++ and compiling them does not
require setting LD as g++ so it's something wrong with your stuff, not
PHP's.
Previous Comments:
------------------------------------------------------------------------
[2005-08-25 13:37:49] sniper@php.net
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.
------------------------------------------------------------------------
[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