Bug#317674: libc6: can't link a program with -static
Package: libc6
Version: 2.3.5-1
Severity: important
Hi,
I'm trying to build Valgrind 3 on x86_64 but it's not possible to build
with -static:
usr/bin/ld: __libc_errno: TLS definition in
/usr/lib/gcc/x86_64-linux-gnu/4.0.1/../../../../lib64/libc.a(errno.o)
section .tbss mismatches non-TLS reference in
/usr/lib/gcc/x86_64-linux-gnu/4.0.1/../../../../lib64/libc.a(check_fds.o)
/usr/lib/gcc/x86_64-linux-gnu/4.0.1/../../../../lib64/libc.a: could not
read symbols: Bad value
If you need a testcase then try
#include <stdio.h>
int main()
{
printf("test");
return 0;
}
with gcc -o bla -static bla.c.
Cheers,
Andre
-- 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.11-9-amd64-k8
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages libc6 depends on:
ii libdb1-compat 2.1.3-7 The Berkeley database routines [gl
libc6 recommends no packages.
-- no debconf information
Reply to: