Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.

[9fans] Plan9port file(1) fails to detect OS X binaries

Skip to first unread message

Aram Hăvărneanu

Aug 22, 2013, 3:19:33 PM8/22/13
P9p file(1) fails to recognise 64-bit Mach-O binaries (thus breaking
things like src(1) and friends). I don't know if it ever worked right.

: iridium:aram; uname -a
Darwin iridium 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1
17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
: iridium:aram;
: iridium:aram; gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with:
--disable-checking --enable-werror
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
: iridium:aram;
: iridium:aram; which sam
: iridium:aram;
: iridium:aram; 9 file /Users/aram/plan9/bin/sam
/Users/aram/plan9/bin/sam: as program
: iridium:aram; file /Users/aram/plan9/bin/sam
/Users/aram/plan9/bin/sam: Mach-O 64-bit executable x86_64
: iridium:aram;

Aram Hăvărneanu

Anthony Sorace

Aug 22, 2013, 3:57:05 PM8/22/13
FWIW, file on Plan 9 knows about these well enough to at least
distinguish (386 | amd64 | 32-bit power) Mach-O executables.
The plan9 and p9p versions have diverged more than I'd have
expected, but it should be easy to import.

0 new messages