xander_tan Posted May 2, 2007 Share Posted May 2, 2007 Trying to compile PHP 5.2.1, upgrade from 5.2.0 and activate the --with-mysql on HPUX IA64 //////////////////////////////////////////////////////////////////////////////////////////////////////// checking for mysql_close in -lmysqlclient_r... no checking for mysql_error in -lmysqlclient_r... no configure: error: mysql configure failed. Please check config.log for more information. //////////////////////////////////////////////////////////////////////////////////////////////////////// configure:58001: checking for mysql_close in -lmysqlclient_r configure:58020: gcc -o conftest -g -O2 -pthread -D_XOPEN_SOURCE_EXTENDED -D_RE ENTRANT -L/usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr/local/lib/hpux32 - L/usr/local/lib/hpux32 -L/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclien t_r -lz -lm -lnsl -lxml2 -lz -liconv -lm 1>&5 ld: Can't find library or mismatched ABI for -lmysqlclient_r Fatal error. collect2: ld returned 1 exit status configure: failed program was: #line 58009 "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:58241: checking for mysql_error in -lmysqlclient_r configure:58260: gcc -o conftest -g -O2 -pthread -D_XOPEN_SOURCE_EXTENDED -D_RE ENTRANT -L/usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr/local/lib -L/usr/lo cal/lib -L/usr/local/lib/hpux32 -L/usr/local/lib/hpux32 -L/usr/local/lib -L/usr /local/lib -L/usr/local -L/usr/local conftest.c -lmysqlclient_r -lz -lz -lm -ln sl -lxml2 -lz -liconv -lm 1>&5 ld: Can't find library or mismatched ABI for -lmysqlclient_r Fatal error. collect2: ld returned 1 exit status configure: failed program was: #line 58249 "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; } //////////////////////////////////////////////////////////////////////////////////////////////////////// Files under mysql/lib libdbug.a libmysqlclient_r.a libndbclient.a libmysql.imp libmystrings.a libndbclient.la libmysqlclient.a libmysys.a libz.a //////////////////////////////////////////////////////////////////////////////////////////////////////// I execute: ./configure --prefix=/opt/php --enable-so --enable-ipv6 --with-apxs2=/opt/apache/bin/apxs --with-apache2=/opt/apache --disable-dom --without-iconv --with-mysql=/usr/local/mysql --with-zlib-dir=bundled I'm totally new to HPUX IA64. Can any of you explain what happen? Link to comment https://forums.phpfreaks.com/topic/49612-fail-to-configure-in-an-attempt-to-compile-php-521/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.