Bug #18034: libz.so not found when specifying --with-mysql path
| From: | matt8192 at yahoo dot com | Date: | Fri, 28 Jun 2002 04:43:30 +0000 |
| Subject: | Bug #18034: libz.so not found when specifying --with-mysql path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12301@lists.php.net to get a copy of this message | ||
From: matt8192@yahoo.com
Operating system: Solaris 8
PHP version: 4.2.1
PHP Bug Type: Compile Failure
Bug description: libz.so not found when specifying --with-mysql path
When I do a PHP
./configure --with-apache=../apache_1.3.26 --with-mysql=/export/mysql
I get a debug.log with a failure to locate liz.so and it fails to compile,
yielding the same error message.
If I just
./configure --with-apache=../apache_1.3.26 --with-mysql
it works fine.
I do have /usr/local/mysql symlinked to /export/mysql, but I would prefer
to have it compile from the correct mysql location.
Here is the debug.log produced when I specify the path in the first
example:
---- debug.log
CONFIGURE: './configure' '--with-apache=../apache_1.3.26'
'--with-mysql=/export/mysql'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
CXX:
CXXFLAGS:
INCLUDES: -I/usr/share/src/apache_1.3.26/src/include
-I/usr/share/src/apache_1.3.26/src/os/unix -I$(top_builddir)/Zend
-I/export/mysql/include
LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/export/mysql/lib
-L/export/mysql/lib
LIBS: -lmysqlclient -lz -lcrypt -lresolv -lresolv -lresolv -lm -ldl
-lnsl -lsocket -lsocket -lcrypt
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/ucblib /export/mysql/lib
uname -a: SunOS maximus 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-60
gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib
-L/usr/ucblib -R/export/mysql/lib -L/export/mysql/lib conftest.c
-lmysqlclient -lz -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl
-lsocket -lsocket -lcrypt 1>&5
ld.so.1: ./conftest: fatal: libz.so: open failed: No such file or
directory
---- end debug.log
I have also just tried specifying "--with-mysql=/export" since the INSTALL
document uses the example of "/usr/local" vs "/usr/local/mysql" in the
--with-mysql path. This fails with "Cannot find header files under
/export", as I would expect.
I don't know what libz.so would have to do with my MySQL path.
Thanks!
-Matt
--
Edit bug report at http://bugs.php.net/?id=18034&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18034&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18034&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18034&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18034&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18034&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18034&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18034&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18034&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18034&r=globals