Date: 10 Apr 2002 14:39:52 +0300 From: Marc Recht <recht@contentmedia.de> To: Ivan Voras <ivoras@geri.cc.fer.hr> Cc: freebsd-java@freebsd.org Subject: Re: php+java update Message-ID: <1018438798.38790.6.camel@leeloo.intern.geht.de> In-Reply-To: <031501c1e004$ac4d6990$e601a8c0@shara.net> References: <031501c1e004$ac4d6990$e601a8c0@shara.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! > I installed jdk13 from ports and recompiled php. Now, php complains it > cannot load some .so library from the jre/lib directory, so i did > > 'ldconfig -m /usr/local/jdk1.3.1/jre/lib/i386/' > > and that fixed it. As I understand, the ld.cache is rebuilt every time the > machine restarts (?). Where can I put the above library path so that it gets > included at all times? Try setting LD_LIBRARY_PATH in the your start script for apache/php. > But that is not the end of my problems. Now, it complains: > > Fatal error: Unable to load Java Library > /usr/local/jdk1.3.1/jre/lib/i386/libjava.so, error: > /usr/local/jdk1.3.1/jre/lib/i386/libjava.so: Undefined symbol > "JVM_DoPrivileged" in /usr/home/ivoras/public_html/jver.php on line 4 > > I did 'strings libjava.so | grep JVM_' and it gives a lot of JVM_* names, > but I don't know are they exported or imported symbols (how could I find > out?) and generally, how to fix this problem. I assume I will need help of man nm(1) > someone who actually knows how the JVM works :) > > (the error occures when php tries to create a JVM) It's defined in jre/lib/i386/classic/libjvm.so jre/lib/i386/classic/libjvm.so:00042a38 T JVM_DoPrivileged ( nm -A jre/lib/i386/classic/libjvm.so| grep JVM_DoPrivileged ) Regards, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1018438798.38790.6.camel>