php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11824 Apache compilation with PHP/Mysql
Submitted: 2001-07-01 13:04 UTC Modified: 2001-07-01 13:21 UTC
From: abernard at aleaur dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: Linux Mandrake 8.0
Private report: No CVE-ID: None
 [2001-07-01 13:04 UTC] abernard at aleaur dot com
Hi,

I know this bug was discussed before but it doesn't seems
corrected in recent release of PHP.

If I configure and compile PHP with :

./configure --with-apache=../apache_1.3.20 \
--with-mysql=/usr/local/mysql

When I try to compile Apache with PHP as static module
Apache won't compile and ends up with :

/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In
function `my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In
function `my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Erreur 1
make[2]: Quitte le r?pertoire
`/home/srcs/networking/apache_1.3.20/src'
make[1]: *** [build-std] Erreur 2
make[1]: Quitte le r?pertoire
`/home/srcs/networking/apache_1.3.20'
make: *** [build] Erreur 2

If I add --with-gd to the PHP configure Apache
compile fine...
I read I should use --with-zlib also.

Is there a more elegant way to solve the problem ?

I tried with MySQL 3.22.X and everything is fine so maybe
it's not a PHP issue... 



Alexis



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-01 13:21 UTC] derick@php.net
No, if MySQL was linked against zlib, you need to add --with-zlib to your configure line.
However, GD is linked against zlib too (sometimes statically), so then it's not needed.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC