Date: Tue, 15 Feb 2005 07:28:04 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Koop Mast <kwm@rainbow-runner.nl> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: file(1) broken on sparc64 Message-ID: <20050215152803.GA11423@xor.obsecurity.org> In-Reply-To: <1108478248.30515.13.camel@heater.rainbow-runner.nl> References: <20050122213501.GA22882@xor.obsecurity.org> <1106501671.677.1.camel@heater.rainbow-runner.nl> <20050123200201.GA81234@xor.obsecurity.org> <1108478248.30515.13.camel@heater.rainbow-runner.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 15, 2005 at 03:37:28PM +0100, Koop Mast wrote: > >> # file /lib/libc.so.6 > >> /lib/libc.so.6: ELF 64-bit MSB shared object, SPARC V9, version 1 > >> (FreeBSD), stripped > > > >I wonder if the problem is with worlds cross-built from i386. > > > >Can you try a buildworld on i386 with TARGET_ARCH=3Dsparc64 and see if > >it still works? > > > >Kris >=20 > Sorry for the wait, I filed the mail in a wrong folder. >=20 > I did a cross buildworld on a i386 machine, and copied the resulting > file binary over to my sparc box. It works just like the native file > binary. I even replaced libc.so.6 with the one from the cross build. But > that also didn't change anything. The problem turns out to be a mis-compiled /usr/share/misc/magic.mgc. If you remove it (it is only used for runtime optimization), file(1) works fine. If you recreate it natively using file -C, it also works. AFAIK, the underlying reason hasn't been tracked down. Kris --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCEhUDWry0BWjoQKURAtZ6AJ9N2M4K2s8Nr6x5CywU7TAgGn79NACgzim5 dWnF8pWaKRw3dIOnSPFLWB4= =1gJW -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050215152803.GA11423>