Bug #16970 Updated: Unable to load libphp_java.so - core_globals not found
| From: | Daniel dot Schneider at NOSPAM dot tecfa dot unige dot ch | Date: | Fri, 03 May 2002 13:03:54 +0000 |
| Subject: | Bug #16970 Updated: Unable to load libphp_java.so - core_globals not found | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6827@lists.php.net to get a copy of this message | ||
ID: 16970
Updated by: Daniel.Schneider@NOSPAM.tecfa.unige.ch
Reported By: Daniel.Schneider@NOSPAM.tecfa.unige.ch
Status: Open
Bug Type: Java related
-Operating System: Solairs 8
+Operating System: Solaris 8
PHP Version: 4.2.0
New Comment:
I managed to get it work now, but don't know really why.
Basically:
- I installed/compiled all gnu tools (binutils 2.12, autoconf, automake
all latest versions)
- added the -with-gnu-ld option to php's configure.
- recompiled apache too with the same gcc (3.0.4)
Can't understand why it works now, since 'core_globals'
is still missing from libphp_java.so if I look at it from 'ldd -d
libphp_java.so'
I also tried to compile with the workshop 6.0 update 2 compiler and got
the same problem
Previous Comments:
------------------------------------------------------------------------
[2002-05-02 12:25:48] Daniel.Schneider@NOSPAM.tecfa.unige.ch
Configuration information:
--------------------------
* System:
Solaris 8
* PHP config:
./configure --prefix=/usr/local --enable-versioning --enable-libgcc
--with-apxs=/usr/local/apache/bin/apxs --with-zlib=/usr/local
--enable-bcmath --enable-debug --enable-magic-quotes --with-gdbm
--with-mcrypt --with-mhash --with-mysql
--with-ldap=/usr/local/openldap --with-pdflib --with-xml
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local
--with-zlib-dir=/usr/local --with-gd --enable-xslt --with-xslt-sablot
--with-dom=/usr/local/lib --with-java
* Compiler and Java Versions: I tried several combinations
gcc 2.95.3, gcc 3.0.4
java 1.3.1, java 1.4
* Problem: unreferenced symbol in libphp_java.so
ldd -d
/usr/local/lib/php/extensions/debug-non-zts-20010901/libphp_java.so
symbol not found: core_globals
(/usr/local/lib/php/extensions/debug-non-zts-20010901/libphp_java.so)
Or seen from the apache error log (the php module loads and runs fine
otherwise)
PHP Warning: Unable to load dynamic library
'/usr/local/lib/php/extensions/debug-non-zts-20010901/libphp_java.so'
- ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/lib/php/extensions/debug-non-zts-20010901/libphp_java.so:
symbol core_globals: referenced symbol not found in Unknown on line 0
Sorry I am not a C programmer and can't hint at a solution.
Certainly libphp_java.so is NOT looking for some other dynamic library
it can't
find ... I know that much :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16970&edit=1