From: "B. James Phillippe" <bryan@terran.org>
To: axp-list@redhat.com
Subject: Re: Anyone try XF86-4.0 yet?
Date: Fri, 17 Mar 2000 21:08:11 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.10.10003172053340.2521-100000@neptune.terran> (raw)
In-Reply-To: <38D2FAE4.191D0DD0@paralleldata.com>
On Fri, 17 Mar 2000, W Bauske wrote:
> > > Try "ldd binary_name" on it. Probably missing some shared lib.
> >
> > It was included in my post. I've used nm and objdump to see that this
...
> Your initial post though shows you pointed ldd at a non-existent file.
> That's what the error message says anyway. You have to use the full path
> name.
That was not the problem in my case. ldd will also report "No such file or
directory" on an application where the loader cannot be found. So will
strace. After developing code on Linux for many years, I have learned this
well. Here is some proof:
(bryan/bryan.1@neptune) ~/tmp % vl extract*
-rwxr-xr-x 2 bryan bryan 187824 Mar 17 17:50 extract*
-rwxr-xr-x 1 bryan bryan 219664 Mar 16 02:39 extract.bad*
(bryan/bryan.1@neptune) ~/tmp % file !$
file extract*
extract: ELF 64-bit LSB executable, Alpha (unofficial), version 1,
dynamically linked (uses shared libs), stripped
extract.bad: ELF 64-bit LSB executable, Alpha (unofficial), version 1,
dynamically linked (uses shared libs), stripped
(bryan/bryan.1@neptune) ~/tmp % ldd !$
ldd extract*
extract:
libc.so.6.1 => /lib/libc.so.6.1 (0x000002000011e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020000000000)
extract.bad:
/usr/bin/ldd: ./extract.bad: No such file or directory
(bryan/bryan.1@neptune) ~/tmp % strace ./extract.bad
execve("./extract.bad", ["./extract.bad"], [/* 26 vars */]) = 0
strace: exec: No such file or directory
(bryan/bryan.1@neptune) ~/tmp % strace ./extract|&head -n 5
execve("./extract", ["./extract"], [/* 26 vars */]) = 0
brk(0) = 0x12012fb20
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=953355579, ...}) = 0
Here is the problem in the first binary:
(bryan/bryan.1@neptune) ~/tmp % strings extract|head -n2
/lib/ld-linux.so.2
libc.so.6.1
(bryan/bryan.1@neptune) ~/tmp % ^act^act.bad
strings extract.bad | head -n2
/lib/ld.so.1
__libc_init_first
-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan
prev parent reply other threads:[~2000-03-18 5:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-17 18:05 Anyone try XF86-4.0 yet? B. James Phillippe
2000-03-17 23:57 ` Chris Kloiber
2000-03-18 1:26 ` B. James Phillippe
2000-03-18 1:46 ` W Bauske
2000-03-18 1:52 ` B. James Phillippe
2000-03-18 3:41 ` W Bauske
2000-03-18 4:59 ` W Bauske
2000-03-18 5:13 ` B. James Phillippe
2000-03-18 23:32 ` Serial console boot messages J. Pedro Sousa do Amaral
2000-03-19 13:00 ` Rich Payne
2000-03-18 5:08 ` B. James Phillippe [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox