|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-12 11:04 UTC] sas at cvs dot php dot net
[2000-12-04 09:44 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 15:00:01 2026 UTC |
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