Bug #19999 PHP 5.1.4 compilation failed
Submitted: 22 May 2006 12:50 Modified: 29 May 2006 18:43
Reporter: LAHAYE Arnaud Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.21 OS:Linux (Linux RedHat Ent 4 64 bits)
Assigned to: CPU Architecture:Any

[22 May 2006 12:50] LAHAYE Arnaud
Description:
When trying to compil php with Mysql support i have libmysql.a bad value

/usr/bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/mysql/libmysqlclient.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

How to repeat:
Install Mysql 5.0.21 64 bits and after try to install PHP with --with-mysql
[22 May 2006 13:47] Valeriy Kravchuk
Thank you for a problem report. Please, specify what exact MySQL binaries do you use.
[22 May 2006 14:05] LAHAYE Arnaud
Files of Red Hat Enterprise Linux 4 RPM (AMD64 / Intel EM64T) downloads
MySQL-server-standard-5.0.21-1.rhel4.x86_64.rpm
MySQL-client-standard-5.0.21-1.rhel4.x86_64.rpm
MySQL-devel-standard-5.0.21-1.rhel4.x86_64.rpm
MySQL-shared-standard-5.0.21-1.rhel4.x86_64.rpm
[29 May 2006 9:47] LAHAYE Arnaud
Any feedback or solution ? This is a very high problem

Thanks a lot.
[29 May 2006 18:43] Valeriy Kravchuk
Looks like a duplicate of a know bug #18091. Should be fixed in 5.0.22.