ID: 36504 User updated by: boonkit at gmail dot com Reported By: boonkit at gmail dot com -Status: Bogus +Status: Open Bug Type: Compile Failure Operating System: fedora core 3 PHP Version: 4.4.2 New Comment:
Before installed the build installed, mysql self contained extension compilation already failed. By the way, already tested in other machine, which only has the zlib rpm installation, also failed. And i tried another configuraion "--with-php-config=/usr/local/php4.4.2/bin/php-config", it worked if compiled with bundled mysql library (v 3.23.49). Seem like this is not caused by zlib. Please help, thank you. Previous Comments: ------------------------------------------------------------------------ [2006-02-24 13:58:25] [EMAIL PROTECTED] If you have both zlib RPMs and manual build installed, then it's most likely some mess with headers/libraries. Not PHP problem. ------------------------------------------------------------------------ [2006-02-24 13:38:52] boonkit at gmail dot com i have tried "--with-zlib-dir=/usr" and "--with-zlib-dir", both didn't work. And i'm sure zlib and zlib-devel was installed using yum. The, i installed zlib from source at "/usr/local/zlib", this is why i set the path. Thank you. ------------------------------------------------------------------------ [2006-02-24 13:16:56] [EMAIL PROTECTED] Why do you need to use --with-zlib-dir=/usr/local/zlib? I bet every Linux has zlib in standard path and you don't need to pass it explicitly. ------------------------------------------------------------------------ [2006-02-24 08:55:31] [EMAIL PROTECTED] Put your config.log somewhere and provide the link. ------------------------------------------------------------------------ [2006-02-24 03:58:17] boonkit at gmail dot com Description: ------------ try compile mysql self contained extension with ./configure --with-php-config=/usr/local/php4.4.2/bin/php-config --with-mysql=/usr/local/mysql-4.0 --with-zlib-dir=/usr/local/zlib Failed with the messsage in config.log /usr/local/mysql-4.0/lib/libmysqlclient.a(my_compress.o)(.text+0xb4): In function `my_compress_alloc': : undefined reference to `compress' /usr/local/mysql-4.0/lib/libmysqlclient.a(my_compress.o)(.text+0x12a): In function `my_uncompress': : undefined reference to `uncompress' Reproduce code: --------------- ./configure --with-php-config=/usr/local/php4.4.2/bin/php-config --with-mysql=/usr/local/mysql-4.0 --with-zlib-dir=/usr/local/zlib Expected result: ---------------- configure done, then can make Actual result: -------------- configure: error: mysql configure failed. Please check config.log for more information. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36504&edit=1