From owner-freebsd-java@FreeBSD.ORG Fri Mar 30 15:55:38 2007 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4D5D16A401 for ; Fri, 30 Mar 2007 15:55:38 +0000 (UTC) (envelope-from crossd@cs.rpi.edu) Received: from cliffclavin.cs.rpi.edu (cliffclavin.cs.rpi.edu [128.213.1.9]) by mx1.freebsd.org (Postfix) with ESMTP id 89DA713C483 for ; Fri, 30 Mar 2007 15:55:38 +0000 (UTC) (envelope-from crossd@cs.rpi.edu) Received: from monica.cs.rpi.edu (root@monica.cs.rpi.edu [128.213.7.2]) by cliffclavin.cs.rpi.edu (8.13.6/8.13.6) with ESMTP id l2UFXWuD002880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 30 Mar 2007 10:33:32 -0500 (EST) Received: from monica.cs.rpi.edu (crossd@localhost [127.0.0.1]) by monica.cs.rpi.edu (8.13.3/8.12.6) with ESMTP id l2UFXWew047439 for ; Fri, 30 Mar 2007 11:33:32 -0400 (EDT) (envelope-from crossd@monica.cs.rpi.edu) Received: (from crossd@localhost) by monica.cs.rpi.edu (8.13.6/8.12.6/Submit) id l2UFXWnX047438; Fri, 30 Mar 2007 11:33:32 -0400 (EDT) (envelope-from crossd) Date: Fri, 30 Mar 2007 11:33:31 -0400 (EDT) From: "David E. Cross" To: java@freebsd.org Message-ID: <20070330112806.S74265@monica.cs.rpi.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.57 on 128.213.1.9 Cc: Subject: i386 jvm on an amd64... 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: Fri, 30 Mar 2007 15:55:38 -0000 (this is with ports built jdk1.5.0-p4) I am trying to run an i386 jvm on an amd64 architecture (and installed as such machine). I get 2 classes of problems, the first is where it is unable (for an unknown reason) to find the libjvm.so file. I have fixed this via an ldconfig -32 -m .... and the next is libverify.so which I also address via a ldconfig -32 -m.. at that point however the java process simply segfaults. A couple of questsions... why is this even needed? a review of a ktrace indicates that the java process DOES fine the libjvm and libverify.so files, then it exec(2)'s itself (?!?) and at that point it cannot find them again without the ldconfig magic. Why isn't an amd64 build affected? (shouldn't to the jvm this be the same as running on an i386 system?) Note that this i386 build works fine on the i386 hardware. Also how do I fix this? I was via some magic last night able to get it going, but said magic is escaping me today. -- David E. Cross