Bug #18034 Updated: libz.so not found when specifying --with-mysql path
| From: | matt8192 at yahoo dot com | Date: | Fri, 28 Jun 2002 04:44:21 +0000 |
| Subject: | Bug #18034 Updated: libz.so not found when specifying --with-mysql path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12302@lists.php.net to get a copy of this message | ||
ID: 18034
Updated by: matt8192@yahoo.com
Reported By: matt8192@yahoo.com
Status: Open
Bug Type: Compile Failure
Operating System: Solaris 8
PHP Version: 4.2.1
New Comment:
that's "libz.so" not "liz.so" in the first part -- sorry
Previous Comments:
------------------------------------------------------------------------
[2002-06-28 00:43:28] matt8192@yahoo.com
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 this bug report at http://bugs.php.net/?id=18034&edit=1