From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29463 invoked from network); 18 Mar 2000 05:08:13 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Mar 2000 05:08:13 -0000 Received: from terran.org (root@earth.terran.org [216.39.144.215]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA26673 for ; Sat, 18 Mar 2000 00:08:12 -0500 Received: from neptune.terran (IDENT:root@neptune.terran [192.168.2.8]) by terran.org (8.9.3/8.9.3) with ESMTP id VAA06440 for ; Fri, 17 Mar 2000 21:08:12 -0800 Received: from localhost (bryan@localhost) by neptune.terran (8.9.3/8.9.4) with ESMTP id VAA02691 for ; Fri, 17 Mar 2000 21:08:11 -0800 X-Authentication-Warning: neptune.terran: bryan owned process doing -bs Date: Fri, 17 Mar 2000 21:08:11 -0800 (PST) From: "B. James Phillippe" Sender: bryan@terran.org To: axp-list@redhat.com Subject: Re: Anyone try XF86-4.0 yet? In-Reply-To: <38D2FAE4.191D0DD0@paralleldata.com> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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