[SLE] `ldd' misleading diagnostic
Hello. I want to report a misleading diagnostic with `ldd'[1]. Doing: touch empty chmod +x empty ldd empty yields: lddlibc4: cannot read header from `./empty': No such file or directory I do not know how to interpret this `No such file of directory', given that `./empty' does exist. Applying `strace' on the command shows that `lddlibc4' was looked for along the PATH, and many `ENOENT' were raised before `lddlibc4' was successfully found in `/usr/bin'. Could the error be left over from the search? ---------- [1] While exploring another `ldd' problem... -- François Pinard http://www.iro.umontreal.ca/~pinard -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
* François Pinard (pinard@iro.umontreal.ca) [20000627 21:42]:
touch empty chmod +x empty ldd empty
yields:
lddlibc4: cannot read header from `./empty': No such file or directory
I do not know how to interpret this `No such file of directory', given that `./empty' does exist.
Ldd is for ELF programms only. My assumption is, that in your empty file, it doesn't find the ELF signature so it calls lddlibc4 (presumably a program for a.out and the old jump table libs). Seems like the ldd script is missing a check for file length. But as it's just a script, you can inspect /usr/bin/ldd directly. Philipp -- Philipp Thomas <pthomas@suse.de> Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany #define NINODE 50 /* number of in core inodes */ #define NPROC 30 /* max number of processes */ -- Version 7 UNIX for PDP 11, /usr/include/sys/param.h -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
pinard@iro.umontreal.ca
-
pthomas@suse.de