php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33425 Symbol Referencing Error loading Apache Module __eprintf: referenced symbol not
Submitted: 2005-06-21 20:53 UTC Modified: 2005-06-23 16:34 UTC
From: buddy at southwest dot cc dot nc dot us Assigned:
Status: Closed Package: Apache related
PHP Version: 4.3.11 OS: Solaris 2.8
Private report: No CVE-ID: None
 [2005-06-21 20:53 UTC] buddy at southwest dot cc dot nc dot us
Description:
------------
Compiled apache with SHARED_CORE and php with --enable-libgcc and still get a symbol referencing error:

#./apachectl start
Syntax error on line 237 of /usr/local/apache-1.3.33/conf/httpd.conf:
Cannot load /usr/local/apache-1.3.33/libexec/libphp4.so into server: ld.so.1: /usr/local/apache-1.3.33/bin/httpd: fatal: relocation error: file /usr/local/lib/libstdc++.so.6: symbol __eprintf: referenced symbol not found

Apache configure line:
./configure --enable-shared=max --enable-rule=SHARED_CORE --enable-module=most --prefix=/usr/local/apache-1.3.33

PHP Configure line:
 ./configure --with-apxs=/usr/local/apache-1.3.33/bin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --with-gd --enable-ftp --enable-sysvsem --enable-sysvshm --enable-sockets --with-gettext --enable-wddx --with-xmlrpc --enable-exif --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local --with-expat-dir=/usr/local --enable-xslt --with-xslt-sablot=/usr/local/  --with-iconv-dir=/usr/local/ --enable-libgcc

#ldd libphp4.so

        libsablot.so.0 =>        /usr/local/lib/libsablot.so.0
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libexpat.so.0 =>         /usr/local/lib/libexpat.so.0
        libmysqlclient.so.14 =>  /usr/local/mysql/lib/mysql/libmysqlclient.so.14
        libintl.so.1 =>  /lib/libintl.so.1
        libpng.so.3 =>   /usr/local/lib/libpng.so.3
        libz.so.1 =>     /lib/libz.so.1
        libjpeg.so.62 =>         /usr/local/lib/libjpeg.so.62
        libresolv.so.2 =>        /lib/libresolv.so.2
        libm.so.1 =>     /lib/libm.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libc.so.1 =>     /lib/libc.so.1
        libstdc++.so.6 =>        /usr/local/lib/libstdc++.so.6
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        librt.so.1 =>    /lib/librt.so.1
        libcrypt_i.so.1 =>       /lib/libcrypt_i.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libaio.so.1 =>   /lib/libaio.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-21 21:02 UTC] buddy at southwest dot cc dot nc dot us
Forgot to mention, compiling with gcc (GCC) 3.4.2
 [2005-06-22 15:31 UTC] buddy at southwest dot cc dot nc dot us
It works fine without --enable-xslt and 
--with-xslt-sablot=/usr/local/.  

I may have a Sablotron issue.
 [2005-06-22 17:42 UTC] buddy at southwest dot cc dot nc dot us
OK. I removed the sunfreeware sablotron pkg, and made sure all references to *sab* in /usr/local were gone, remade sablotron from src using --prefix=/usr/local/sablot, (using the sunfreeware expat and iconv in /usr/local) exported 'LDFLAGS=-lstdc++' (not sure if i needed this but *shrug) and then 

./configure --with-apxs=/usr/local/apache-1.3.33/bin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --with-gd --enable-ftp --enable-sysvsem --enable-sysvshm --enable-sockets --with-gettext --enable-wddx --with-xmlrpc --enable-exif --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local --with-expat-dir=/usr/local --enable-xslt --with-xslt-sablot=/usr/local/sablot  --with-iconv-dir=/usr/local --enable-libgcc


including the rebuilt sablotron library, and it compiled/loaded fine.  I think this was a sablotron linking issue with the sunfreeware package, not a PHP issue, but I'm not certain.

For future reference, you can use sunfreeware expat and iconv, but I was unable to use sunfreeware libxsl.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC