PHP 4.0 Bug #3090 Updated: Forgotten -lgcc in final link stage
| From: | sniper@php.net | Date: | Mon, 04 Dec 2000 14:44:59 +0000 |
| Subject: | PHP 4.0 Bug #3090 Updated: Forgotten -lgcc in final link stage | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39977@lists.php.net to get a copy of this message | ||
ID: 3090
Updated by: sniper
Reported By: dnehring@telemedia.de
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
There is configure option --enable-libgcc which does this.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-03-12 11:04:09] sas@cvs.php.net
You should not mix executables/modules compiled with different compilers.
Moving it to feature request.
---------------------------------------------------------------------------
[2000-01-03 12:02:50] dnehring@telemedia.de
Hi *,
when compiling PHP4 as apxs-module, libtool forgets to include -lgcc to the libraries. So, when
compiling with
gcc, the final module failed:
Cannot load /usr/local/tm/mod_php-4.0-20000103/libexec/mod_php.so into server: ld.so.1:
/usr/local/tm/apache-1.3.9/bin/httpd: fatal: relocation error: file
/usr/local/tm/mod_php-4.0-20000103/libexec/mod_php.so: symbol __muldi3: referenced symbol not found
As solution would be to give "ld" the hint to link libgcc.a
to the library, I do it the following way:
CFLAGS="-O3 -fomit-frame-pointer
-L/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.29"
LIBS="-lgcc"
./configure --with-apxs=/usr/local/tm/apache/bin/apxs
--with-config-file-path=/var/config/php4
--disable-debug
[...]
Please fix this problem with libtool/ld, I do not like my
solution.
Dirk
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=3090