Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.