From owner-freebsd-java@FreeBSD.ORG Tue Sep 16 10:53:56 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14C5F1065677 for ; Tue, 16 Sep 2008 10:53:56 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id B43E08FC20 for ; Tue, 16 Sep 2008 10:53:55 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA01.westchester.pa.mail.comcast.net with comcast id FNDl1a00C0SCNGk51NduDb; Tue, 16 Sep 2008 10:37:54 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA09.westchester.pa.mail.comcast.net with comcast id FNdt1a00A4v8bD73VNdu85; Tue, 16 Sep 2008 10:37:54 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=2dMVBAMFMbqBUSwIZ2UA:9 a=0_PohN2k8HRWot-ozZMA:7 a=dTc9trScMIS-DuQ0TsssA2Ep1ugA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 6314E17B81A; Tue, 16 Sep 2008 03:37:53 -0700 (PDT) Date: Tue, 16 Sep 2008 03:37:53 -0700 From: Jeremy Chadwick To: Marcel Grandemange Message-ID: <20080916103753.GA62307@icarus.home.lan> References: <015101c9164a$f3f12d30$dbd38790$@za.net> <20080915093815.GA33139@icarus.home.lan> <002b01c91737$2af8ac30$80ea0490$@za.net> <20080915152631.GA39924@icarus.home.lan> <00be01c9176a$182f3910$488dab30$@za.net> <20080916043322.GA54034@icarus.home.lan> <018f01c917e1$0e250f40$2a6f2dc0$@za.net> <20080916100727.GA60836@icarus.home.lan> <01a301c917e6$6df6af50$49e40df0$@za.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01a301c917e6$6df6af50$49e40df0$@za.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-java@freebsd.org Subject: Re: Error: Can't find libjava.so X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 10:53:56 -0000 On Tue, Sep 16, 2008 at 12:24:41PM +0200, Marcel Grandemange wrote: > >What does "file /usr/local/diablo-jre1.6.0/lib/amd64/libjava.so" return? > > [root@testvmbsd /opt/MonitorSoftware]# file > /usr/local/diablo-jre1.6.0/lib/amd64/libjava.so > /usr/local/diablo-jre1.6.0/lib/amd64/libjava.so: ELF 64-bit LSB shared > object, x86-64, version 1 (FreeBSD), not stripped > > I did same with original file that came packages with application, > > [root@testvmbsd /opt/MonitorSoftware]# file > /usr/home/thavinci/Winpower_setup_FreeBSD/FreeBSD/resource/jre/lib/i386/libj > ava.so > /usr/home/thavinci/Winpower_setup_FreeBSD/FreeBSD/resource/jre/lib/i386/libj > ava.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), > dynamically linked, not stripped Okay, the part that's confusing me here is something that was partially covered by Dan Nelson earlier in this thread. I can tell you're running 64-bit FreeBSD (amd64). The "Winpower" (whatever that is) program is 32-bit. The diablo-jre1.6.0 port, when you installed it, is using a 64-bit libjava.so. You're trying to use a 32-bit Java program (Winpower) using 64-bit Java sources (Diablo). Dan's comments indicate this won't work. Note that there is a compatibility layer available called lib32, allowing 32-bit programs which use 32-bit libraries to use /usr/lib32, on a 64-bit machine. lib32 is part of the FreeBSD base system and is built with world. You're going to need a 64-bit version of Winpower, or you're going to need a 32-bit version of Diablo. I'm not sure how you can get the latter; there may be a way in the ports tree to force a 32-bit build on a 64-bit machine. You could also reinstall FreeBSD i386 (not amd64), which should ensure everything on your machine is 32-bit. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |