From owner-freebsd-questions Mon Jan 18 07:46:12 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA25729 for freebsd-questions-outgoing; Mon, 18 Jan 1999 07:46:12 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA25724 for ; Mon, 18 Jan 1999 07:46:11 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id KAA14193 for freebsd-questions@FreeBSD.ORG; Mon, 18 Jan 1999 10:47:30 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199901181547.KAA14193@cc942873-a.ewndsr1.nj.home.com> Subject: Linux Em. - 'ELF binary type not known' To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Mon, 18 Jan 1999 10:47:30 -0500 (EST) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am trying to run a Linux binary under FreeBSD, % uname -a FreeBSD pc252.scitec.com 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Dec 23 12:12:55 EST 1998 cjc@pc252.scitec.com:/usr/src/sys/compile/PC252 i386 However, I get the following error when I start the executable, % stk [1] 6595 ELF binary type not known [1] Abort trap /home/agi/STKv4/bin/bin.linux5.i386/stk Note that the 'stk' I am calling is a csh script that executes the binary producing the errror. I am, by no stretch of the imagination, any expert on Linux emulation, but I had a look at the begining of the Linux binary, 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF 000000 7F 45 4C 46 01 01 01 00 00 00 00 00 00 00 00 00 ^?ELF 000010 02 00 03 00 01 00 00 00 5C AD 04 08 34 00 00 00 \ 4 000020 24 45 7A 00 00 00 00 00 34 00 20 00 05 00 28 00 $Ez 4 ( 000030 16 00 15 00 06 00 00 00 34 00 00 00 34 80 04 08 4 4 000040 34 80 04 08 A0 00 00 00 A0 00 00 00 05 00 00 00 4 000050 04 00 00 00 03 00 00 00 D4 00 00 00 D4 80 04 08 000060 D4 80 04 08 13 00 00 00 13 00 00 00 04 00 00 00 000070 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08 000080 00 80 04 08 40 2E 75 00 40 2E 75 00 05 00 00 00 @.u @.u 000090 00 10 00 00 01 00 00 00 40 2E 75 00 40 BE 79 08 @.u @ y 0000A0 40 BE 79 08 30 15 04 00 04 54 0B 00 06 00 00 00 @ y 0 T 0000B0 00 10 00 00 02 00 00 00 D0 42 79 00 D0 D2 7D 08 By } 0000C0 D0 D2 7D 08 A0 00 00 00 A0 00 00 00 06 00 00 00 } 0000D0 04 00 00 00 2F 6C 69 62 2F 6C 64 2D 6C 69 6E 75 /lib/ld-linu 0000E0 78 2E 73 6F 2E 32 00 00 C5 00 00 00 CF 00 00 00 x.so.2 [snip] I noticed that I did not have a /compat/linux/lib/ld-linux.so.2 file, but rather 1.7.14. A few other libraries farther down in the binary were also one version up. I updated the Makefile in my 2.2.7 /usr/ports and got the latest linux_lib distribution in which the numbers match up. However, this has not changed anything. I still get the unknown ELF complaint. Do I need to update my Linux emulation module for the kernel? How would I do that? Would I be best off upgrading the whole kernel? Do I need to go to 2.2.8 (not too much of a problem from my 2.2.7 system)? Or would I need to go to 3.0 to run this Linux binary? Thanks for any help. BTW, should this move to the emulation list? I went here since this is not really a 'development' issue. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message