[Tfug] Strange ld behavior
James Hood
tfug@tfug.org
Sat Mar 8 04:19:02 2003
I'm trying to install php with java support. A very strange ld issue has
surfaced and is causing the whole thing not to work. To add the support,
I must add paths to certain java directories to ld.so.conf and then run
ldconfig. The directories are
/usr/java/j2sdk1.4.0/jre/lib/i386
/usr/java/j2sdk1.4.0/jre/lib/i386/server
After I run ldconfig, I cd to /usr/java/j2sdk1.4.0/jre/lib/i386 where
there are two files: libjava.so and libverify.so. When I run 'ldd
libjava.so', I get the following output:
libjvm.so =>
/usr/java/j2sdk1.4.0/jre/lib/i386/server/libjvm.so(0x40039000)
libverify.so => not found
libnsl.so.1 => /lib/libnsl.so.1 (0x40646000)
libdl.so.2 => /lib/libdl.so.2 (0x4065a000)
libc.so.6 => /lib/libc.so.6 (0x4065d000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40784000)
libstdc++-libc6.1-1.so.2 =>
/usr/lib/libstdc++-libc6.1-1.so.2(0x40799000)
libm.so.6 => /lib/libm.so.6 (0x407dc000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
As you can see, libverify.so is not found. I don't understand why this
is since it is in the same directory as libjava.so. running ldconfig
again doesn't help. The permissions on both files are 755. I'm stumped.
Any help would be greatly appreciated.
Thanks,
James