From owner-freebsd-java Tue Nov 19 5:30:43 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B24737B401 for ; Tue, 19 Nov 2002 05:30:42 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id B306743E4A for ; Tue, 19 Nov 2002 05:30:36 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id gAJGYiqj007632; Tue, 19 Nov 2002 16:34:45 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id gAJDZZEf033677; Tue, 19 Nov 2002 15:35:35 +0200 (EET) (envelope-from ml) Date: Tue, 19 Nov 2002 15:35:35 +0200 From: Alexey Zelkin To: Guerry Semones Cc: freebsd-java@FreeBSD.ORG Subject: Re: loading of libverify.so reports undefined symbol Message-ID: <20021119153535.A33609@phantom.cris.net> References: <200211181125.AA282198170@mail.mstar2.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200211181125.AA282198170@mail.mstar2.net>; from gsemones@treenleaf.com on Mon, Nov 18, 2002 at 11:25:12AM -0800 X-Operating-System: FreeBSD 4.5-STABLE i386 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 Which options to dlopen() you're using ? I'd suggest to play with dlopen()'s options (like RTLD_NOW or RTLD_GLOBAL) On Mon, Nov 18, 2002 at 11:25:12AM -0800, Guerry Semones wrote: > Greetings, > > I have a c++ application that is dynamically loading libjvm.so to > instantiate the JVM and call java classes from C++. Everything > compiles happily, but when run my executable, I get the following: > > Can't load > library "/usr/local/jdk1.3.1/jre/lib/i386/libverify.so", > because /usr/local/jdk1.3.1/jre/lib/i386/libverify.so: Undefined > symbol JVM_GetClassNameUTF" > > If I do an "nm" dump of libverify.so, it reports that > JVM_GetClassNameUTF is indeed Undefined. I can tell from within > my code that libjvm.so is loading okay. Obviously, libjvm.so is > trying to load libverify.so, or some other intermediary lib is > trying to do so. Note that JVM_GetClassNameUTF *is* defined in > libjvm.so. > > Does anyone have any ideas? Is this a load order problem? I feel > pretty confident that it is not a library path issue, but perhaps > I'm missing a step. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message