#31002 [Bgs->Asn]: IA64 Unable to link php with Mysql 4.1.7
| From: | hholzgra@php.net | Date: | Tue, 14 Mar 2006 18:05:49 +0000 |
| Subject: | #31002 [Bgs->Asn]: IA64 Unable to link php with Mysql 4.1.7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94352@lists.php.net to get a copy of this message | ||
ID: 31002
Updated by: hholzgra@php.net
Reported By: zeke at spamcop dot net
-Status: Bogus
+Status: Assigned
Bug Type: MySQL related
Operating System: Linux 2.4.21-sgi301r1
PHP Version: 4CVS-2005-01-21
-Assigned To:
+Assigned To: hholzgra
Previous Comments:
------------------------------------------------------------------------
[2005-02-01 20:38:26] jorton@php.net
The static libmysqlclient.a you have was not compiled using -fPIC so
you either need to build MySQL shared libraries, or rebuild the static
libraires using "CFLAGS=-fPIC"; either way, this is not a PHP bug.
------------------------------------------------------------------------
[2005-02-01 19:22:13] sniper@php.net
Get the latest snapshot from today and try with this configure line:
./configure --disable-all --with-apxs2 --with-mysql=/usr/local/mysql
--with-pic --disable-cli
------------------------------------------------------------------------
[2005-01-21 13:41:24] zeke at spamcop dot net
Hi, I tried the latest build:php4-STABLE-200501211130
Same error during the linking step. I used the same configure options
as in my original message.
/usr/bin/ld: /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): @gprel
relocation against dynamic symbol net_buffer_length
/usr/bin/ld: /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): @gprel
relocation against dynamic symbol max_allowed_packet
/usr/bin/ld: /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): @gprel
relocation against dynamic symbol net_write_timeout
/usr/bin/ld: /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): @gprel
relocation against dynamic symbol net_read_timeout
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
------------------------------------------------------------------------
[2005-01-13 04:29:41] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2004-12-06 22:43:50] zeke at spamcop dot net
Edit: Also tried with the --with-pic option on the configure command
line .. still same link errors.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31002
--
Edit this bug report at http://bugs.php.net/?id=31002&edit=1