Bug #1521: Link failure; libraries come before path in ld line
| From: | jimp at specsol dot com | Date: | Thu, 10 Jun 1999 02:17:24 +0000 |
| Subject: | Bug #1521: Link failure; libraries come before path in ld line | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6786@lists.php.net to get a copy of this message | ||
From: jimp@specsol.com
Operating system: Solaris2.6_x86
PHP version: 3.0.9
PHP Bug Type: Compile Failure
Bug description: Link failure; libraries come before path in ld line
The libraries come before the search path in the ld line causing libraries not to be found.
For 3.0.7 (which works) the line is:
ld -G -o libphp3.so mod_php3.o libmodphp3-so.a -R/usr/local/lib/mysql -L/usr/local/lib
-L/usr/local/lib/mysql -lmysqlclient -lgd -lpam -lm -ldl -lsocket -lnsl -lresolv
For 3.0.9 (which can't find anything in /usr/local/lib) the line is:
ld -G -o libphp3.so mod_php3.o pcrelib/libpcre.a -lgd -lpam -lm -ldl -lsocket -lnsl -lresolv
libmodphp3-so.a -Lpcrelib -lpcre -R/usr/local/lib/mysql -L/usr/local/lib -L/usr/local/lib/mysql
-lmysqlclient