From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 28 23:29:18 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B64B016A4CE for ; Tue, 28 Sep 2004 23:29:18 +0000 (GMT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id A548C43D1F for ; Tue, 28 Sep 2004 23:29:18 +0000 (GMT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i8SNTIp15001 for freebsd-emulation@freebsd.org; Tue, 28 Sep 2004 16:29:18 -0700 (PDT) Date: Tue, 28 Sep 2004 16:29:18 -0700 From: Mike Hunter To: freebsd-emulation@freebsd.org Message-ID: <20040928232918.GB14378@ack.Berkeley.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: "cannot execute binary file" and libpthread issues linux+FBSD4.10 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 23:29:18 -0000 Hi, I'm trying to get a pre-built linux binary working on fbsd 4.10. I get the following crapola when I try to use the library in question: Shared object "libpthread.so.0" not found, required by "libodbc.so" I tried hitting libodbc.so with ldd, but fbsd's ldd doesn't like the linux binary. /compat/linux/usr/bin/ldd give me this fiddle-faddle: /compat/linux/usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file /compat/linux/usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file ldd: /lib/ld-linux.so.2 exited with unknown exit code (126) Two URLs that talk about this but don't lead me to solutions are: http://lists.freebsd.org/pipermail/freebsd-questions/2004-April/045349.html http://docs.freebsd.org/cgi/getmsg.cgi?fetch=23819+0+archive/2001/freebsd-emulation/20010520.freebsd-emulation In what is a probably unrelated issue, I noticed that linux ls is also dumping core: gdb /compat/linux/bin/ls GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... (no debugging symbols found)... (gdb) core ls.core Core was generated by `ls'. Program terminated with signal 12, Bad system call. /lib/libtermcap.so.2: No such file or directory. #0 0x8814fc09 in ?? () (gdb) bt #0 0x8814fc09 in ?? () #1 0x804eb63 in strcpy () #2 0x804c013 in strcpy () #3 0x804b65f in strcpy () #4 0x804a1af in strcpy () #5 0x8808e54d in ?? () I have linux_base-8 installed...any help? Save me from having to actually install linux! :) Thanks, Mike