Bug#386924: libc6: README.Debian Q6 does not work under x86_64
Package: libc6
Version: 2.3.6.ds1-4
Severity: wishlist
README.Debian Q6[2] does not work under x86_64, please mention this.
after setting LD_ASSUME_KERNEL to 2.4.1, I got error when run ls and other programs[1]
[1]
$ ls
ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
[2]
Q6: I get this message when I run a program:
ld.so: Incorrectly built binary which accesses errno or h_errno directly.
ld.so: See /usr/share/doc/libc6/FAQ.gz.
A6:
The program is broken. It probably says "extern int errno" somewhere,
instead of including <errno.h>. Errno in recent glibc versions is a macro,
which calls the function __errno_location; when glibc is built with
thread-local storage enabled, there is no extern int variable named errno.
In addition, "extern int errno" is not thread-safe.
The application should continue to run for now, but when the warning message
is printed use of the NPTL threading library, and other new kernel-2.6
features, it's worth trying to set environment variable LD_ASSUME_KERNEL=2.4.1
(switch to LinuxThreads instead of NPTL).
Please file a bug if the workaround doesn't work.
NOTE: Currently this error message is suppressed, for the benefit of some
truly buggy programs which redirect stderr into something important, like a
network socket.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libc6 depends on:
ii tzdata 2006k-1 Time Zone and Daylight Saving Time
libc6 recommends no packages.
-- debconf-show failed
Reply to: