ID: 28150 Comment by: gregory at networksentry dot co dot za Reported By: thomas+php at stromberg dot org Status: Wont fix Bug Type: Compile Failure Operating System: SUSE Linux 9.0 AMD64 PHP Version: 5CVS-2004-04-26 (dev) New Comment:
Ive just built myself up a x86_64 distro from scratch and have had the same problem as the libs are installed in */lib64/* and not */lib/* even setting this in configure args will not help i manualy edited the configure script useing a dirty sed script the configure program will need to take into the 64 bit lib paths to be multi platform ... the /lib dirs are for 32 bit apps and legacy software it is posible to have both a 32bit and 64 bit MySQL client lib on the same host even compiled with the same compiler (-m32/-m64) switches. i never took time to look into modifying the .m4 files as i do not understand there layout/usage. if the fine android in charge of the said files could make changes it would be appreciated. TTFN Previous Comments: ------------------------------------------------------------------------ [2004-05-21 14:57:00] zerokode at gmx dot net Hmmm... Maybe you could just check for -lmysql... That is platform-independent... (this also goes for the GD-dependent libs...) ------------------------------------------------------------------------ [2004-04-26 20:35:46] thomas+php at stromberg dot org The problem in this situation is there is no way to tell configure to see this directory. configure only allows you to specify the root directory of mysql, which in my case is /usr. There is no option in the PHP5 configure script to set something like --with-mysql-library=/usr/ lib64. ------------------------------------------------------------------------ [2004-04-26 20:30:15] [EMAIL PROTECTED] We only look for old fashion standard directories. Please specify the location manually on the configure line. ------------------------------------------------------------------------ [2004-04-26 04:20:06] thomas+php at stromberg dot org Description: ------------ The configure script has it hardcoded to search in lib/ or lib/mysql/ for the libmysqlclient library. At least in SUSE Linux 9.0 64-bit, you must add lib64/ to this search path so that it runs correctly. Here is a patch to configure, though I guess you guys need to patch the script that generates configure: --- configure~ 2004-04-25 21:13:43.000000000 -0500 +++ configure 2004-04-25 21:13:43.000000000 -0500 @@ -53844,7 +53844,7 @@ Note that the MySQL client library is not bundled anymore." 1>&2; exit 1; } fi - for i in lib lib/mysql; do + for i in lib lib64 lib64/mysql lib/mysql; do str="$MYSQL_DIR/$i/libmysqlclient.*" for j in `echo $str`; do Reproduce code: --------------- ./configure --with-apxs2=/usr/sbin/apxs2 --with-mysql Expected result: ---------------- It should configure ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28150&edit=1