Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248238 - sys-libs/glibc-2.6.1 ldd miss clasifies a bash script as a linked file
Summary: sys-libs/glibc-2.6.1 ldd miss clasifies a bash script as a linked file
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-22 20:04 UTC by Steen Eugen "Miravlix" Poulsen
Modified: 2008-11-28 04:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The notorius evil pwp script (pwp,22 bytes, text/plain)
2008-11-22 20:05 UTC, Steen Eugen "Miravlix" Poulsen
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ...