PHP 4.0 Bug #3090: Forgotten -lgcc in final link stage
| From: | dnehring at telemedia dot de | Date: | Mon, 03 Jan 2000 17:02:50 +0000 |
| Subject: | PHP 4.0 Bug #3090: Forgotten -lgcc in final link stage | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14226@lists.php.net to get a copy of this message | ||
From: dnehring@telemedia.de
Operating system: Solaris 2.6
PHP version: 4.0 Latest CVS (03/01/2000)
PHP Bug Type: Compile Failure
Bug description: Forgotten -lgcc in final link stage
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