From owner-freebsd-java@FreeBSD.ORG Mon Nov 3 04:00:33 2003 Return-Path: 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 322BB16A4CE for ; Mon, 3 Nov 2003 04:00:33 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B8D343F3F for ; Mon, 3 Nov 2003 04:00:30 -0800 (PST) (envelope-from phantom@FreeBSD.org.ua) Received: (from phantom@localhost) by phantom.cris.net (8.12.6/8.12.6) id hA3C9mYT076716; Mon, 3 Nov 2003 14:09:48 +0200 (EET) (envelope-from phantom) Date: Mon, 3 Nov 2003 14:09:48 +0200 From: Alexey Zelkin To: Aditya Message-ID: <20031103140948.A76691@phantom.cris.net> References: <20031024122448.A805@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from aditya@grot.org on Sun, Nov 02, 2003 at 09:12:13PM -0800 X-Operating-System: FreeBSD 4.7-STABLE i386 cc: java@freebsd.org Subject: Re: workaround to run Diablo at 5.x X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 12:00:33 -0000 hi, On Sun, Nov 02, 2003 at 09:12:13PM -0800, Aditya wrote: > > On Fri, 24 Oct 2003 12:24:48 +0300, Alexey Zelkin said: > > After few expirements with running of my own compiled jdk I can > > suggest workaround to those who need to run Diablo at -CURRENT. > > > > Following actions need to be done at -CURRENT machine. > > > > 1. install compat4.i386 2. copy /usr/lib/libm.so.2 from -STABLE > > machine to /usr/lib/compat/ at -CURRENT machine 3. Before executing > > of java binary make sure that you've set LD_LIBRARY_PATH to > > '/usr/lib/compat' value. > > Following your instructions, I installed the package named: > > compat4x-i386-5.0.20030328 > > on a machine running: > > FreeBSD hilbert.grot.org 5.1-CURRENT FreeBSD 5.1-CURRENT #4: Sun Oct 5 20:26:02 PDT 2003 root@hilbert.grot.org:/usr/obj/usr/src/sys/HILBERT i386 > > and copied /usr/lib/libm.so.2 from a machine running: > > FreeBSD mighty.grot.org 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon Apr 7 10:33:16 PDT 2003 aditya@mighty.grot.org:/backup/obj/trunk/src/sys/MIGHTY i386 > > and running java -version yields a bus error: > > pid 967 (java), uid 515: exited on signal 10 > > What is going wrong? I was writing instructions by result of expirements with jdk14. I have been able to run -STABLE compiled jdk14 at -CURRENT with these instructions. So, I assumed that jdk13 is same. But recently (after libm issues was fixed in -CURRENT) it was found that Diablo attempts to dlopen /usr/lib/libc.so, which should be replaced with /usr/lib/compat/libc.so in -CURRENT case. Diablo need to be fixed. Anyway, libm issue no more with recent -CURRENT.