Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 16:29:18 -0700
From:      Mike Hunter <mhunter@ack.Berkeley.EDU>
To:        freebsd-emulation@freebsd.org
Subject:   "cannot execute binary file" and libpthread issues linux+FBSD4.10
Message-ID:  <20040928232918.GB14378@ack.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040928232918.GB14378>