On Tue, Jan 16, 2001 at 05:34:02PM -0500, Ignacio Vazquez-Abrams wrote:
>
> When PHP is configured to use an external library for MySQL support, if zlib
> support is not added then PHP fails with an "unresolved symbol: compress"
> error due to the fact that the newer versions of the MySQL client libraries
> seem to require libz.so in order to function. I have tried a couple of times
> to patch ext/mysql/config.m4 to resolve this, but I haven't been successful.
>
> Some PHP bug reports which refer to this problem are: 5651, 6811, 6981, 7266,
> 8307, 8332, and 8575.
>
> I'm certain that there are many who would appreciate it if you could deal with
> this issue once and for all.
That's what the mysql_config script is for:
tim@cane:~$ mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I'/usr/local/mysql/include/mysql']
--libs [ -L'/usr/local/mysql/lib/mysql' -lmysqlclient -lz -lcrypt
-lm ]
--socket [/tmp/mysql.sock]
--port [3306]
--version [3.23.30-gamma]
tim@cane:~$ mysql_config --libs
-L'/usr/local/mysql/lib/mysql' -lmysqlclient -lz -lcrypt -lm
I'm not sure what the best way to use it in PHP is, but hopefully
someone familiar with ext/mysql/config.m4 could fix that. If not,
let me know and I'll try to look at it some time.
Tim
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Tim Smith <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Development Team
/_/ /_/\_, /___/\___\_\___/ Helsinki, Finland (for a few weeks)
<___/ www.mysql.com
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]