php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10067 zlib not included when compiled with apache
Submitted: 2001-03-29 18:21 UTC Modified: 2001-04-30 07:56 UTC
From: rusty at socrates dot berkeley dot edu Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.4pl1 OS: solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rusty at socrates dot berkeley dot edu
New email:
PHP Version: OS:

 

 [2001-03-29 18:21 UTC] rusty at socrates dot berkeley dot edu
Apache-1.3.19, mysql-3.23.36, php-4.0.4pl1

Everything compiles ok until I get to the final apache compile and then it bombs on missing symbols compress and uncompress.  They are used in libmysqlclient.a and the code for them is in /lib/libz.a but the final compile of apache doesn't have -lz.  When I add that then it compiles.  I'm linking static, not dso.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-29 18:25 UTC] rusty at socrates dot berkeley dot edu
When I initially compile apache I'm configuring it with:

 CFLAGS="-O2 -pipe" ; export CFLAGS
 PATH=/usr/local/bin:${PATH} ; export PATH

 configure \
	--prefix=/wmf/apache \
	--enable-module=so \
	--enable-module=most \
	--disable-shared=all \
	--disable-module=autoindex \
	--disable-module=cern_meta \
	--disable-module=proxy \
	--disable-module=speling \
	--disable-module=unique_id \
	--disable-module=usertrack \
	--disable-module=userdir

When I configure php I'm using:

 PATH=/usr/local/bin:${PATH} ; export PATH
 CFLAGS="-O2 -pipe" ; export CFLAGS
 EXTRA_LIBS=-L/usr/local/lib ; export EXTRA_LIBS

 configure \
	--prefix=/wmf/apache \
        --with-apache=/wmf/src/apache_1.3.19 \
        --with-config-file-path=/wmf/apache/conf \
        --with-xml \
	--enable-wddx \
        --enable-track-vars \
	--enable-trans-sid \
	--enable-inline-optimization \
	--disable-pear \
	--disable-posix-threads \
	--disable-shared \
	--enable-static \
	--with-oci8=/wmf/oracle/oracle8i_r3v5 \
        --with-mysql=/wmf/mysql \
	--with-ldap=/usr/local \
	--enable-libgcc

And the final configure of apache is

 CFLAGS="-O2 -pipe" ; export CFLAGS
 PATH=/usr/local/bin:${PATH} ; export PATH

 sh configure \
	--prefix=/wmf/apache \
	--enable-module=so \
	--enable-module=most \
	--disable-shared=all \
	--disable-module=autoindex \
	--disable-module=cern_meta \
	--disable-module=proxy \
	--disable-module=speling \
	--disable-module=unique_id \
	--disable-module=usertrack \
	--disable-module=userdir \
	--activate-module=src/modules/php4/libphp4.a


 [2001-03-29 19:48 UTC] rusty at socrates dot berkeley dot edu
Just a note on what's in the libmysqlclient.la file; the dependency_libs= line has

 -lz -lcrypt -lgen -lsocket -lnsl -lm

I'm puzzled as to why php apparently isn't using this .la file.

 [2001-03-30 14:32 UTC] sniper@php.net
Could you please try the latest CVS snapshot from http://snaps.php.net/ as this should be fixed.

--Jani

 [2001-04-30 07:56 UTC] jmoore@php.net
No feedback

closing
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 10:01:28 2025 UTC