#29329 [NEW]: configure missing "-L$MYSQL_LIB_DIR" when checking for mysql_stmt_field_count
| From: | beardie at dsvr dot net | Date: | Thu, 22 Jul 2004 13:53:23 +0000 |
| Subject: | #29329 [NEW]: configure missing "-L$MYSQL_LIB_DIR" when checking for mysql_stmt_field_count | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-63348@lists.php.net to get a copy of this message | ||
From: beardie at dsvr dot net
Operating system: Linux
PHP version: 5.0.0
PHP Bug Type: *Compile Issues
Bug description: configure missing "-L$MYSQL_LIB_DIR" when checking for
mysql_stmt_field_count
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 bug report at http://bugs.php.net/?id=29329&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29329&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29329&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29329&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29329&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29329&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29329&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29329&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29329&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29329&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29329&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29329&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29329&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29329&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29329&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29329&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29329&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29329&r=float