Date: Wed, 14 Apr 2004 20:57:06 +1000 (EST) From: Tony Maher <tonymaher@optushome.com.au> To: peter@wemm.org Cc: freebsd-amd64@freebsd.org Subject: Re: i386 jdk and lib32 Message-ID: <200404141057.i3EAv6YB059270@k9.a1.asic.gov.au> In-Reply-To: <200403251959.01193.peter@wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[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 <stdio.h> > > #include <sys/param.h> > > #include <sys/mount.h> > > #include <sys/errno.h> > > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404141057.i3EAv6YB059270>