From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 14 03:57:25 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB37E16A4CF for ; Wed, 14 Apr 2004 03:57:25 -0700 (PDT) Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [211.29.132.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67BD943D45 for ; Wed, 14 Apr 2004 03:57:24 -0700 (PDT) (envelope-from tonymaher@optushome.com.au) Received: from c211-30-15-214.thorn1.nsw.optusnet.com.au (c211-30-15-214.thorn1.nsw.optusnet.com.au [211.30.15.214]) i3EAvJ131380; Wed, 14 Apr 2004 20:57:19 +1000 Received: from k9.a1.asic.gov.au (localhost [127.0.0.1]) ESMTP id i3EAvCTD059298; Wed, 14 Apr 2004 20:57:17 +1000 (EST) (envelope-from tonym@k9.a1.asic.gov.au) Received: (from tonym@localhost) by k9.a1.asic.gov.au (8.12.11/8.12.11/Submit) id i3EAv6YB059270; Wed, 14 Apr 2004 20:57:06 +1000 (EST) (envelope-from tonym) Date: Wed, 14 Apr 2004 20:57:06 +1000 (EST) From: Tony Maher Message-Id: <200404141057.i3EAv6YB059270@k9.a1.asic.gov.au> To: peter@wemm.org In-Reply-To: <200403251959.01193.peter@wemm.org> cc: freebsd-amd64@freebsd.org Subject: Re: i386 jdk and lib32 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 10:57:25 -0000 [Apologies to Peter if he has received this before - I have recevied no reply and cannot tell if its because Peter is just busy/on hols/or his spam filter reaps my emails so I am cc'ing to list in case anyone else can help] Sorry for interruption but has there been any progress on this? I haven't seen any commits which refer to this but i may have missed something. Alternatively is this something we can look at? If so which files need to be modded? We have to return test box soon. thanks -- tonym > > We have reduced the problem to the folowing C program: > > > > #include > > #include > > #include > > #include > > > > int main(int argc, char** argv) > > { > > struct statfs buf; > > > > if (fstatfs(0, &buf) < 0) > > perror("fstatfs"); > > > > return 0; > > } > > > > This works fine if natively compiled and run on amd64 and i386 > > respectively. But the i386 binary on amd64 core dumps. > > > > file ~/test-i386 > > /home/tonym/test-i386: ELF 32-bit LSB executable, Intel 80386, > > version 1 (FreeBSD), for FreeBSD 5.0.2, dynamically linked (uses > > shared libs), not stripped > > > > ~/test-i386 > > Bad system call (core dumped) > > > > Is this a lost cause (in the short term)? > > I can fix this pretty quickly. The problem is that somebody changed the > statfs structures and the compat syscall table wasn't updated. I'll > take a shot at it tonight unless somebody beats me to it. > > -- > Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com > "All of this is for nothing if we don't go to the stars" - JMS/B5