Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 248238

Summary: sys-libs/glibc-2.6.1 ldd miss clasifies a bash script as a linked file
Product: Gentoo Linux Reporter: Steen Eugen "Miravlix" Poulsen <sep>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: trivial CC: jer
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The notorius evil pwp script

Description Steen Eugen "Miravlix" Poulsen 2008-11-22 20:04:26 UTC
ldd /usr/bin/emerge
        not a dynamic executable

Thats the normal behavior, but I have one single file out of I don't know how many on my system where it does:

ldd pwp
lddlibc4: cannot read header from `./pwp'

pwp
#!/bin/sh

echo $PATH
-end pwp-


Reproducible: Always
Comment 1 Steen Eugen "Miravlix" Poulsen 2008-11-22 20:05:09 UTC
Created attachment 172891 [details]
The notorius evil pwp script
Comment 2 SpanKY gentoo-dev 2008-11-27 21:31:47 UTC
works fine for me:

$ cat foo.sh
#!/bin/sh

echo $PATH
$ chmod a+rx foo.sh
$ ldd ./foo.sh
        not a dynamic executable
Comment 3 Steen Eugen "Miravlix" Poulsen 2008-11-27 23:43:23 UTC
(In reply to comment #2)
> works fine for me:

Well, you didn't reproduce my test case but made a new one.

But even testing with the file renamed to foo.sh it still fails here.

Are you on a glibc-2.6.1 system (99% stable packages)?
Comment 4 SpanKY gentoo-dev 2008-11-28 04:50:11 UTC
the file name is irrelevant.  ldd doesnt care about that.

it may be a bug in glibc-2.6.1.  it works with glibc-2.8 however, and considering the trivialness of the bug and glibc-2.8 being tracker for stable ...