#34247 [NEW]: configure claims g++ does not support shared libraries (when used as LD)
| From: | arattink at correct dot net | Date: | Thu, 25 Aug 2005 11:36:44 +0000 |
| Subject: | #34247 [NEW]: configure claims g++ does not support shared libraries (when used as LD) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83974@lists.php.net to get a copy of this message | ||
From: arattink at correct dot net
Operating system: Linux 2.4.25 SMP
PHP version: 5.1.0RC1
PHP Bug Type: *Configuration Issues
Bug description: configure claims g++ does not support shared libraries (when used as LD)
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 bug report at http://bugs.php.net/?id=34247&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34247&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34247&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34247&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34247&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34247&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34247&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34247&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34247&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34247&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34247&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34247&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34247&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34247&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34247&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34247&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34247&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34247&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34247&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34247&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34247&r=mysqlcfg