Bug #8575 Updated: configure fails while checking for gzgets
| From: | jessec at rogers dot com | Date: | Thu, 07 Feb 2002 15:46:08 +0000 |
| Subject: | Bug #8575 Updated: configure fails while checking for gzgets | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79540@lists.php.net to get a copy of this message | ||
ID: 8575
Updated by: jessec@rogers.com
-Reported By: muhlig@us.edu.pl
+Reported By: jessec@rogers.com
Status: Closed
Bug Type: Compile Failure
Operating System: Solaris 2.6
PHP Version: 4.0.4
New Comment:
Well, it's Feb 7, 2002 and I just ran into this error.
Slackware 7.1, kernel 2.4.17, zlib 1.1.3, php 4.1.1.
Workaround that was mentioned does not work for me.
Previous Comments:
------------------------------------------------------------------------
[2001-04-10 09:45:37] sniper@php.net
No feedback. If this happens with soon to be released PHP 4.0.5 too,
reopen this bug report.
--Jani
------------------------------------------------------------------------
[2001-03-10 14:31:11] sniper@php.net
This should be fixed in CVS now. Please try the latest CVS snapshot
from http://snaps.php.net/
--Jani
------------------------------------------------------------------------
[2001-03-03 20:09:29] sniper@php.net
Duplicate of #6981
------------------------------------------------------------------------
[2001-01-07 11:42:18] muhlig@us.edu.pl
./configure --with-mysql=/usr/local
--with-apache=../../apache/apache_1.3.12 --with-zlib=/usr/local/lib
--with-ldap=/usr/local/ldap --enable-track-vars --enable-magic-quotes
--enable-bcmath
...
checking whether to include zlib support... yes
checking for gzgets in -lz... no
configure: error: Zlib module requires zlib >= 1.0.9.
Of course zlib 1.1.3 is properly installed.
from config.log:
...
configure:43634: checking whether to include zlib support
configure:43835: checking for gzgets in -lz
configure:43854: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS
-DXML_BYTE_O
RDER=21 -L/usr/local/lib -R/usr/ucblib -L/usr/ucblib
-R/usr/local/lib/gcc-lib/s
parc-sun-solaris2.6/2.95.2
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2
-R/usr/local/ldap/lib -L/usr/local/ldap/lib -R/usr/local/lib/mysql
-L/usr/local/
lib/mysql conftest.c -lz -lmysqlclient -lldap -llber -lresolv -lresolv
-lm -ldl
-lcrypt -lnsl -lsocket -lsocket -lgcc 1>&5
Undefined first referenced
symbol in file
uncompress
/usr/local/lib/mysql/libmysqlclient.so
compress
/usr/local/lib/mysql/libmysqlclient.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 43843 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gzgets();
int main() {
gzgets()
; return 0; }
from configure:
...
LIBS="-lz $LIBS"
cat > conftest.$ac_ext <<EOF
#line 43843 "configure"
Obviously the source of the problem is library order during link phase.
I was able to workaround the problem changing LIBS line above to:
LIBS="-$LIBS -lz"
However it is probably not the proper solution, please find better
one.
Maciek
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8575&edit=1