Hi John-Mark, On Sun, May 28, 2006 at 07:15:36AM +0000, John-Mark Gurney wrote: > jmg 2006-05-28 07:15:36 UTC > > FreeBSD src repository > > Modified files: > usr.bin/file magic.5 > Log: [...] > compiling mgc on a big endian system (specificly tested sparc64) breaks, > using one from a little endian system works > > Revision Changes Path > 1.24 +18 -0 src/usr.bin/file/magic.5 > I have another experience from cross-build research. Namely, only a native endianness format of *.mgc file works. Just confirmed this on a freshly installed 6.1-RELEASE:
: Script started on Mon May 29 13:01:57 2006 : sun# uname -sm : FreeBSD sparc64 : sun# file magic.mgc* : magic.mgc: magic binary file for file(1) cmd (version 2) (big endian) : magic.mgc_: magic binary file for file(1) cmd (version 2) (little endian) : sun# file /bin/sh : /bin/sh: ELF 64-bit MSB executable, SPARC V9, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped : sun# mv magic.mgc magic.mgc~ : sun# mv magic.mgc_ magic.mgc : sun# file /bin/sh : /bin/sh: data, dynamically linked (uses shared libs), stripped : sun# file magic.mgc* : magic.mgc: magic binary file for file(1) cmd (version 33554432) (big endian) : magic.mgc~: JPEG 2000 image : sun# exit : exit : : Script done on Mon May 29 13:02:49 2006 I.e., using a LE magic.mgc gives bullshit on a BE system. Can you please re-check? Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer
pgp8Ms2I0dtRv.pgp
Description: PGP signature
