#19924 [Com]: zlib.lo: file not recognized: File truncated
| From: | jms18 at weatherhead dot cwru dot edu | Date: | Wed, 16 Oct 2002 19:38:12 +0000 |
| Subject: | #19924 [Com]: zlib.lo: file not recognized: File truncated | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22602@lists.php.net to get a copy of this message | ||
ID: 19924
Comment by: jms18@weatherhead.cwru.edu
Reported By: jms18@weatherhead.cwru.edu
Status: Bogus
Bug Type: Compile Failure
Operating System: Debian Linux 3.0
PHP Version: 4.3.0-pre1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-10-16 12:36:45] jms18@weatherhead.cwru.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-15 22:29:27] 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-15 16:56:36] jms18@weatherhead.cwru.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 16:08:41] jms18@weatherhead.cwru.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!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19924&edit=1