Jump to content

Fail to configure in an attempt to compile PHP 5.2.1


Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.