Subject: Re: magic.mgc not cross-buildable?
To: Dave Huang <email@example.com>
From: Gary Duzan <firstname.lastname@example.org>
Date: 09/24/2002 23:54:07
In Message <Pine.NEB.email@example.com> ,
Dave Huang <firstname.lastname@example.org> wrote:
=>I just cross-compiled a mac68k 1.6 release on an alpha and found that
=>file(1) doesn't work... it dies "invalid type 0 in mconvert()". Looks
=>like this is because the /usr/share/misc/magic*.mgc files made by
=>mkmagic have the endianness of the system they're built on... in my
=>case, they were little-endian while the m68k is expecting big-endian.
=>I did a quick search through the list archives and didn't see any
=>mention of this particular problem (did come across some stuff about
=>struct padding back in June), so I wanted to let y'all know :)
If so, then I think it must be fixed in current, since I'm
running 1.6H on a sparc which was build on an i386 and file(1)
seems to be working fine. In fact, a quick look at the CVS log
shows that there have been some host tool changes, but there are
still issues, and a PR was filed on it. You might want to look
through the bug database on the web site.
Gary D. Duzan