php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36504 mysql as self contained extension compile failed
Submitted: 2006-02-24 03:58 UTC Modified: 2006-03-07 01:00 UTC
From: boonkit at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.4.2 OS: fedora core 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: boonkit at gmail dot com
New email:
PHP Version: OS:

 

 [2006-02-24 03:58 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-24 08:55 UTC] tony2001@php.net
Put your config.log somewhere and provide the link.
 [2006-02-24 13:16 UTC] tony2001@php.net
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 13:38 UTC] 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:58 UTC] tony2001@php.net
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-27 03:52 UTC] boonkit at gmail dot com
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.
 [2006-02-27 08:43 UTC] tony2001@php.net
I can't reproduce it.
"also failed" isn't very good description of the problem, please add more details.
 [2006-03-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 23:01:31 2024 UTC