ID:               26655
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mmokrejs at natur dot cuni dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: solaris 2.6
 PHP Version:      4CVS-2003-12-17 (stable)
 New Comment:

So using the configure line I gave above works?



Previous Comments:
------------------------------------------------------------------------

[2004-01-11 06:52:19] mmokrejs at natur dot cuni dot cz

To be clear, the mysql I use is a binary distribution from
www.mysql.com for solaris, version 4.0.16.

[EMAIL PROTECTED] ls  /usr/local/mysql/lib/mysql/libmysqlclient*
libmysqlclient.a            libmysqlclient.so.12       
libmysqlclient_r.la         libmysqlclient_r.so.12.0.0
libmysqlclient.la           libmysqlclient.so.12.0.0   
libmysqlclient_r.so         
libmysqlclient.so           libmysqlclient_r.a         
libmysqlclient_r.so.12      
[EMAIL PROTECTED] ldd /usr/local/mysql/lib/mysql/libmysqlclient.so
        libposix4.so.1 =>        /usr/lib/libposix4.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1
[EMAIL PROTECTED]

------------------------------------------------------------------------

[2004-01-11 06:46:46] mmokrejs at natur dot cuni dot cz

Hi, I tested with php4-STABLE-200401102230 and the problem with libz2
symbols unresolved is caused by using --with-mysql=/usr/local/mysql .

------------------------------------------------------------------------

[2003-12-19 07:47:49] [EMAIL PROTECTED]

You have static bz2 lib -> of course it doesn't show up in the ldd
output. Secondly, the -lbz2 sure is in EXTRA_LIBS in your Makefile. 

Now, what version of BZ2 do you have installed?
And try this configure line instead:
(don't try outsmart the configure with your CFLAGS etc)

# rm config.cache ; CC=gcc ./configure --disable-all --with-bz2
--with-apxs2=/usr/local/apache2/bin/apxs



------------------------------------------------------------------------

[2003-12-18 17:55:56] [EMAIL PROTECTED]

Send me the generated Makefile to [EMAIL PROTECTED]


------------------------------------------------------------------------

[2003-12-18 17:08:53] mmokrejs at natur dot cuni dot cz

CXX=gcc CFLAGS="-O3 -mcpu=v8 -Wa,-xarch=v8plusa -felide-constructors
-fno-exceptions -fno-rtti" CXXFLAGS="-O3 -mcpu=v8 -Wa,-xarch=v8plusa
-felide-constructors -fno-exceptions -fno-rtti" CC=gcc ./configure
--with-openssl=/usr/local/openssl-0.9.6l --with-zlib --with-bz2
--enable-dba --with-db4=/usr/local/BerkeleyDB-4.1 --with-inifile
--with-flatfile --enable-dio --with-dom --with-gettext --with-iconv
--with-java=/usr/j2se --with-mysql=/usr/local/mysql
--with-mysql-sock=/tmp/mysql.sock --with-ncurses --with-readline
--enable-sockets --enable-force-cgi-redirect
--with-apxs2=/usr/local/apache2/bin/apxs


I have only static libbz2.a.
But the problem is I think not in my library, but that on the linker
line "-lbz2" was missing. If it wouldn't, linker would pick-up the
static library anyway.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26655

-- 
Edit this bug report at http://bugs.php.net/?id=26655&edit=1

Reply via email to