Date: 12/11/00
- Next message: André Langhorst: "[PHP-DEV] _sleep(),__wakeup(), phpticks"
- Previous message: André Langhorst: "[PHP-DEV] Re: [PHP-QA] RC4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7247
User Update by: ignacio <email protected>
Status: Open
Bug Type: Apache related
Description: MySQL+zlib
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
Previous Comments:
---------------------------------------------------------------------------
[2000-12-11 11:01:27] ignacio <email protected>
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 <email protected>
What is your PHP configuration line? What is your Apache
configuration?
---------------------------------------------------------------------------
[2000-10-16 11:16:08] ignacio <email protected>
I've noticed some problems about PHP (any version) not loading into Apache with 'undefined symbol: uncompress'. What I have learned (the hard way, with another language) is that the more recent versions of MySQL need zlib to be linked in. What happens is that most people use '--with-zlib' anyways, so they don't see the problem, but for those few, the loading fails. What I propose is that if external libraries are requested for MySQL, then zlib should be checked for in configure and linked in make regardless of whether or not zlib has been chosen as a feature. This will resolve that problem for pretty much 99.99999% of the people.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7247
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: André Langhorst: "[PHP-DEV] _sleep(),__wakeup(), phpticks"
- Previous message: André Langhorst: "[PHP-DEV] Re: [PHP-QA] RC4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

