PHP 4.0 Bug #7247 Updated: MySQL+zlib
| From: | sniper@php.net | Date: | Tue, 10 Apr 2001 13:33:59 +0000 |
| Subject: | PHP 4.0 Bug #7247 Updated: MySQL+zlib | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51274@lists.php.net to get a copy of this message | ||
ID: 7247
Updated by: sniper
Reported By: ignacio@openservices.net
Old-Status: Feedback
Status: Closed
Bug Type: Apache related
Assigned To:
Comments:
No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug report.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-03-10 14:27:26] sniper@php.net
Please try the latest CVS. This should be fixed now.
--Jani
---------------------------------------------------------------------------
[2000-12-28 09:14:01] sniper@php.net
Duplicate of #5651
(this patch of yours is not the right way to do this..)
--Jani
---------------------------------------------------------------------------
[2000-12-11 14:20:40] ignacio@openservices.net
Fine, here:
--- php4/ext/mysql/config.m4 Tue Nov 21 06:07:50 2000
+++ php4.lz/ext/mysql/config.m4 Mon Dec 11 13:58:54 2000
@@ -77,9 +77,27 @@
AC_MSG_ERROR(Cannot find mysqlclient library under $MYSQL_DIR)
fi
+ for i in /usr/local /usr do
+ if test -f $i/include/zlib/zlib.h; then
+ ZLIB_DIR=$i
+ ZLIB_INCDIR=$i/include/zlib
+ elif test -f $i/include/zlib.h; then
+ ZLIB_DIR=$i
+ ZLIB_INCDIR=$i/include
+ fi
+ done
+
+ if test -z "$ZLIB_DIR"; then
+ AC_MSG_ERROR(Cannot find libz)
+ fi
+
AC_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD)
+ AC_ADD_LIBRARY_WITH_PATH(z, $ZLIB_LIBDIR, ZLIB_SHARED_LIBADD)
+
AC_ADD_INCLUDE($MYSQL_INC_DIR)
+
+ AC_ADD_INCLUDE($ZLIB_INCDIR)
else
MYSQL_MODULE_TYPE="none"
fi
---------------------------------------------------------------------------
[2000-12-11 11:01:27] ignacio@openservices.net
You misunderstand me. This isn't something that I'm affected by. I've managed to fix
this on my installation. What I'm saying is that the configure script should add -lz if an
external MySQL library is chosen.
---------------------------------------------------------------------------
[2000-12-11 05:38:29] stas@php.net
What is your PHP configuration line? What is your Apache
configuration?
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7247&edit=2