ID: 37462 User updated by: ionut dot aivanesei at amdocs dot com -Summary: configure error: mysql configure failed Reported By: ionut dot aivanesei at amdocs dot com -Status: Bogus +Status: Open Bug Type: Compile Failure Operating System: AIX 5.1.3 -PHP Version: 5.1.4 +PHP Version: 5.1.2 New Comment:
Hi, Indeed it was a problem with the MySQL binaries, they were for 64 instead for 32. After changing MySQL binaries 'configure' and 'make' are executed without errors. But, when I execute 'make install' i get the following: -------------------------------------------------- Installing PHP SAPI module: cgi Installing PHP CGI into: [...]/php/bin/ cp: sapi/cgi/php: A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 1. -------------------------------------------------- File sapi/cgi/php indeed does not exists. Thanks, Ionutz Previous Comments: ------------------------------------------------------------------------ [2006-05-16 17:48:06] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Your configure line is bogus, use only the *base* directory (excluding /mysql and /libxml f.e.). ------------------------------------------------------------------------ [2006-05-16 15:37:51] ionut dot aivanesei at amdocs dot com Description: ------------ Hi, I am trying to install PHP 5.1.x on AIX server. Configure fails with this: -------------------------------------------------- ... checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. -------------------------------------------------- My system is: [uname -a] AIX ep5703 3 5 00CC62EA4C00 Thanks, Ionutz Reproduce code: --------------- #! /bin/sh # # Created by configure './configure' \ '--prefix=[...]/php' \ '--with-mysql=[...]/mysql' \ '--with-libxml-dir=[...]/libxml2' \ '--with-zlib=[...]/zlib' \ '--enable-force-cgi-redirect' \ '--enable-exif' \ '--enable-ftp' \ "$@" Expected result: ---------------- no error Actual result: -------------- configure:59182: checking for mysql_close in -lmysqlclient configure:59201: cc -o conftest -I/usr/include -g -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/mysql/lib -L/sviuser21.e p5703/crm/svi/eddys/MATRIX/mysql/lib -L/usr/lib -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/libxml2/lib -L/sviuser21.e p5703/crm/svi/eddys/MATRIX/libxml2/lib -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib/lib -L/sviuser21.ep5703/crm/svi /eddys/MATRIX/zlib/lib conftest.c -lmysqlclient -liconv -lz -lm -lxml2 -lm -lxml2 -lm 1>&5 ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/mysql/lib flag is ignored. ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/libxml2/lib flag is ignored. ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib/lib flag is ignored. ld: 0711-317 ERROR: Undefined symbol: .mysql_close ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. configure: failed program was: #line 59190 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_close(); int main() { mysql_close() ; return 0; } configure:59422: checking for mysql_error in -lmysqlclient configure:59441: cc -o conftest -I/usr/include -g -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/mysql/lib -L/sviuser21.e p5703/crm/svi/eddys/MATRIX/mysql/lib -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib/lib -L/sviuser21.ep5703/crm/svi/e ddys/MATRIX/zlib/lib -L/usr/lib -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/libxml2/lib -L/sviuser21.ep5703/crm/svi/ed dys/MATRIX/libxml2/lib -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib/lib -L/sviuser21.ep5703/crm/svi/eddys/MATRIX/zl ib/lib -R/sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib -L/sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib conftest.c -lmysq lclient -lz -liconv -lz -lm -lxml2 -lm -lxml2 -lm 1>&5 ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/mysql/lib flag is ignored. ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib/lib flag is ignored. ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/libxml2/lib flag is ignored. ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib/lib flag is ignored. ld: 0706-027 The -R /sviuser21.ep5703/crm/svi/eddys/MATRIX/zlib flag is ignored. ld: 0711-317 ERROR: Undefined symbol: .mysql_error ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. configure: failed program was: #line 59430 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); int main() { mysql_error() ; return 0; } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37462&edit=1