From owner-freebsd-ports Tue Jul 4 16:19: 8 2000 Delivered-To: freebsd-ports@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 8C46137B952; Tue, 4 Jul 2000 16:18:39 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id IAA97287; Wed, 5 Jul 2000 08:48:20 +0930 (CST) (envelope-from grog) Date: Wed, 5 Jul 2000 08:48:20 +0930 From: Greg Lehey To: FUJISHIMA Satsuki Cc: imp@village.org, current@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: Help with Linux interpreter Message-ID: <20000705084820.J94351@wantadilla.lemis.com> References: <86hfa81m2f.wl@cheerful.com> <200007020325.VAA56324@harmony.village.org> <20000704110640.B94351@wantadilla.lemis.com> <86lmzhgc11.wl@cheerful.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <86lmzhgc11.wl@cheerful.com> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wednesday, 5 July 2000 at 0:17:46 +0900, FUJISHIMA Satsuki wrote: > Hmm, all that I can tell about the matter is described in the PR: > http://www.freebsd.org/cgi/query-pr.cgi?pr=18489 > > I'm not sure this is the case but it looks pretty similar for me. Hmm. $ brandelf -t Linux acroread $ hd acroread|head -1 00000000 7f 45 4c 46 01 01 01 03 46 72 65 65 42 53 44 00 |.ELF....FreeBSD.| On the other machine, I get: $ hd acroread|head -1 00000000 7f 45 4c 46 01 01 01 03 4c 69 6e 75 78 00 00 00 |.ELF....Linux...| $ brandelf -t FreeBSD acroread $ hd acroread|head -1 00000000 7f 45 4c 46 01 01 01 09 4c 69 6e 75 78 00 00 00 |.ELF....Linux...| Repeating this last brandelf invocation (-t FreeBSD) with ktrace, I see: 2586 brandelf NAMI "acroread" 2586 brandelf RET open 3 2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL sigprocmask(0x3,0x28060050,0) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL read(0x3,0xbfbfefe4,0x10) 2586 brandelf GIO fd 3 read 16 bytes "\^?ELF\^A\^A\^A Linux\0\0\0" 2586 brandelf RET read 16/0x10 2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL sigprocmask(0x3,0x28060050,0) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL sigprocmask(0x3,0x28060050,0) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL lseek(0x3,0,0,0,0) 2586 brandelf RET lseek 0 2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL sigprocmask(0x3,0x28060050,0) 2586 brandelf RET sigprocmask 0 2586 brandelf CALL write(0x3,0xbfbfefe4,0x10) 2586 brandelf GIO fd 3 wrote 16 bytes "\^?ELF\^A\^A\^A Linux\0\0\0" 2586 brandelf RET write 16/0x10 It looks as if brandelf is broke. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message