Bug#502189: libc6: ldd on a static prog: unknown exit code (126)
Package: libc6
Version: 2.7-14
Severity: minor
Hi,
Let us consider "helloworld.c"
- 8< --------
#include <stdlib.h>
#include <stdio.h>
int main() {
printf("Hello World!\n");
exit(0);
}
- 8< --------
Then, compile it with: gcc -static helloworld.c -o helloworld
And finally try a: ldd helloworld
The resilt with ldd from "libc6 2.7-14" is:
ldd: exited with unknown exit code (126)
IMHO, this is a curious answer (an not very helpfull)...
As a comparison, ldd from "libc6 2.3.6.ds1-13" provides a better answer:
not a dynamic executable
Regards,
Christophe
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libc6 depends on:
ii libgcc1 1:4.3.2-1 GCC support library
libc6 recommends no packages.
Versions of packages libc6 suggests:
pn glibc-doc <none> (no description available)
pn libc6-i686 <none> (no description available)
ii locales 2.7-14 GNU C Library: National Language (
-- debconf information:
glibc/upgrade: true
glibc/restart-failed:
glibc/restart-services:
Reply to: