php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19924 zlib.lo: file not recognized: File truncated
Submitted: 2002-10-15 16:08 UTC Modified: 2002-10-15 22:29 UTC
From: jms18 at weatherhead dot cwru dot edu Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.0-pre1 OS: Debian Linux 3.0
Private report: No CVE-ID: None
 [2002-10-15 16:08 UTC] jms18 at weatherhead dot cwru dot edu
I configured PHP with the following:

./configure --enable-trans-sid \
--with-mysql=/usr/local/mysql \
--with-mm=../mm-1.2.1 \
--with-png=/usr/local \
--with-png-dir=/usr/local \
--with-freetype=/usr/local \
--with-zlib=/usr/local \
--with-zlib-dir=/usr/local \
--with-gd=/usr/local \
--with-apxs2=/usr/local/apache/bin/apxs

The configuration goes fine.  When I execute 'make', the following error occurs:

sapi/apache2filter/php_functions.lo main/internal_functions.lo -lmm -lmysqlclient -lgd -lpng -lz -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -ldl -o libphp4.la
ext/zlib/zlib.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

I tried a couple of things.  I made sure my ld.so.conf was up to date (just in case).  I tried to point --with-zlib and --with-zlib-dir against the un-tarred source of zlib (version 1.1.4) a la:

--with-zlib=../zlib-1.1.4 \
--with-zlib-dir=../zlib-1.1.4

I tried just specifying '--with-zlib' with no path parameter, but nothing worked.

Thanks guys!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-15 16:56 UTC] jms18 at weatherhead dot cwru dot edu
I should probably also mention (because, for some reason, I forgot to do so) that this is being compiled as a DSO for Apache 2.0.43.
 [2002-10-15 22:29 UTC] sniper@php.net
Try doing 'make clean'..and btw. just using --with-zlib should work (ie. no path)

This is not any bug anyway, you're just doing something wrong.

 [2002-10-16 12:36 UTC] jms18 at weatherhead dot cwru dot edu
I tried using just --with-zlib with no path specified, and it produced the same error.

Right after submitting the bug, I downloaded 4.2.3 and built it using the same configure line (without the mm, though because that produced an error with Apache2).

So, 4.2.3 worked, but 4.3 produced an error.  I'll try a make clean and see if that does anything for me.
 [2002-10-16 14:38 UTC] jms18 at weatherhead dot cwru dot edu
Just in case anyone stumbles upon this page with the same problem.  Here is what I did that eventually got it to work.

% rm -rf ./config.cache

%  ./configure --enable-trans-sid \
--with-mysql=/usr/local/mysql \
--with-png=/usr/local --with-pg-dir=/usr/local \
--with-freetype \
--with-zlib --with-zlib-dir \
--with-gd=/usr/local \
--with-apxs2=/usr/local/apache/bin/apxs

% make clean

# not sure if this next step was necessary, but I did it
% make depend

% make
% su
% make install


Thanks,
Jeremy
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC