php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31002 IA64 Unable to link php with Mysql 4.1.7
Submitted: 2004-12-06 20:33 UTC Modified: 2006-04-04 16:47 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: zeke at spamcop dot net Assigned: hholzgra (profile)
Status: Closed Package: MySQL related
PHP Version: 4CVS-2005-01-21 OS: Linux 2.4.21-sgi301r1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zeke at spamcop dot net
New email:
PHP Version: OS:

 

 [2004-12-06 20:33 UTC] zeke at spamcop dot net
Description:
------------
Platform: SGI Altix 350 16p  Itainium2
OS: Linux Kern 2.4.21 SGIPropack3
MySql Version: 4.1.7
gcc version: 3.2.2

Building php with the line ./configure --with-mysql=/usr/local/mysql --with-apxs2

"Make" during the step to create libphp4.la Results in the following errors:

/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

Other informaiton:
I can make php fine  without mysql support. 
I had the same problems with php4.3.10RC1 and php5
The Mysql is the 4.1.7 IA64 Max binary distribtion.

Any suggesitons to get this linked with mySql would be appreciated.

Cheers,
Mike



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-06 22:43 UTC] zeke at spamcop dot net
Edit: Also tried with the --with-pic option on the configure command line .. still same link errors.
 [2005-01-21 13:41 UTC] 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-02-01 19:22 UTC] 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-02-01 20:38 UTC] 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.
 [2006-04-04 16:47 UTC] hholzgra@php.net
The original problem no longer exists with MySQL 4.1.18
but there is a different linking problem pending right now
at least with the RPM distributions for it as these have 
been created with the Intel icc compiler. 

For details see 

  http://bugs.mysql.com/bug.php?id=18776


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 03:01:29 2024 UTC