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

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




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

[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.

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

[2003-12-18 03:30:53] [EMAIL PROTECTED]

And what might have been the configure line?
And do you have shared or static bz2 lib?


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

[2003-12-17 14:35:58] mmokrejs at natur dot cuni dot cz

Description:
------------
Hi,
  I can compile current snapshot, but the module is not linked
dynamically against libbz2:

ldd /usr/local/apache2/modules/libphp4.so
        libhistory.so =>         /usr/local/lib/libhistory.so
        libreadline.so.4 =>      /usr/local/lib/libreadline.so.4
        libmysqlclient.so.12 => 
/usr/local/mysql/lib/mysql/libmysqlclient.so.12
        libintl.so.2 =>  /usr/lib/libintl.so.2
        libz.so =>       /usr/lib/libz.so
        libdb-4.1.so =>  /usr/local/BerkeleyDB-4.1.25/lib/libdb-4.1.so
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libxml2.so.2 =>  /usr/local/lib/libxml2.so.2
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libposix4.so.1 =>        /usr/lib/libposix4.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libaio.so.1 =>   /usr/lib/libaio.so.1
        /usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1



Reproduce code:
---------------
# /usr/local/apache2/bin/apachectl startssl
Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: ld.so.1:
/usr/local/apache2/bin/httpd: fatal: relocation error: file
/usr/local/apache2/modules/libphp4.so: symbol BZ2_bzerror: referenced
symbol not found
#



Expected result:
----------------
sapi/cli/php is properly linked against libbz2, so it's not a problem
with configure detection but possibly some macro missing in so of the
Makefile.in files(I guess).



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


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

Reply via email to