From owner-freebsd-java Wed Apr 10 4:40: 9 2002 Delivered-To: freebsd-java@freebsd.org Received: from www.contentmedia.de (www.contentmedia.de [213.61.138.91]) by hub.freebsd.org (Postfix) with SMTP id 1220937B405 for ; Wed, 10 Apr 2002 04:40:03 -0700 (PDT) Received: (qmail 1102 invoked from network); 10 Apr 2002 11:39:52 -0000 Received: from unknown (HELO leeloo) (217.82.125.114) by www.contentmedia.de with SMTP; 10 Apr 2002 11:39:52 -0000 Subject: Re: php+java update From: Marc Recht To: Ivan Voras Cc: freebsd-java@freebsd.org In-Reply-To: <031501c1e004$ac4d6990$e601a8c0@shara.net> References: <031501c1e004$ac4d6990$e601a8c0@shara.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 Date: 10 Apr 2002 14:39:52 +0300 Message-Id: <1018438798.38790.6.camel@leeloo.intern.geht.de> Mime-Version: 1.0 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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