ID:               29329
 Comment by:       yrob at mail dot crpower dot com
 Reported By:      beardie at dsvr dot net
 Status:           Open
 Bug Type:         *Compile Issues
 Operating System: Linux
 PHP Version:      5.0.0
 New Comment:

Having the 'shared' statement didn't work at all for me.
Did not work: --with-mysqli=shared,/usr/local/mysql
Did work: --with-mysqli=/usr/local/mysql

Otherwise, I configured both mysql and mysqli using MySQL 5.0, but I
get Segmentation faults while running scripts that contain mysql
functions.  mysqli functions run just fine, however.  These are the
specifications I used for configuring, which ran fine, so did the make
and make install:
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config


Previous Comments:
------------------------------------------------------------------------

[2004-07-22 15:53:22] beardie at dsvr dot net

Description:
------------
When running ./configure with the following options (amongst others):

  --with-mysql=shared,/opt/mysql-4.1
  --with-mysqli=shared,/opt/mysql-4.1/bin/mysql_config

I get the following failure message:

checking for mysql_stmt_field_count in -lmysqlclient... no
configure: error: MySQLI doesn't support versions < 4.1.3 anymore.
Please update your libraries.

Which is resolved by applying the following patch to configure:

--- orig/configure      2004-07-22 14:27:15.000000000 +0100
+++  new/configure      2004-07-22 14:27:10.000000000 +0100
@@ -54963,7 +54963,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lmysqlclient  $LIBS"
+LIBS="-L$MYSQL_LIB_DIR -lmysqlclient  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 54969 "configure"
 #include "confdefs.h"
@@ -55196,7 +55196,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lmysqlclient  $LIBS"
+LIBS="-L$MYSQL_LIB_DIR -lmysqlclient  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 55202 "configure"
 #include "confdefs.h"




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29329&edit=1

Reply via email to