Linkowanie statyczne.

Jakub Bogusz qboosh at pld-linux.org
Wed Nov 3 20:22:18 CET 2004


On Wed, Nov 03, 2004 at 07:53:09PM +0100, Piotr Wawrzyniak wrote:
> Próbowałem ostatnio zlinkować coś statycznie no i mi się nie udało. Przykład:
> [piotr at timemachine ~/programowanie]$ cat static_linking.c
> int main()
> {
>         return 1;
> }
> 
> [piotr at timemachine ~/programowanie]$ gcc -static static_linking.c
> /usr/bin/ld: __libc_errno: TLS definition 
> in /usr/lib/gcc-lib/i686-pld-linux/3.3.5/../../../libc.a(errno.o) 
> section .tbss mismatches non-TLS reference 
> in /usr/lib/gcc-lib/i686-pld-linux/3.3.5/../../../libc.a(check_fds.o)
> /usr/lib/gcc-lib/i686-pld-linux/3.3.5/../../../libc.a: could not read symbols: 
> Bad value
> collect2: ld returned 1 exit status
> 
> Co może być nie tak?
[...]
> glibc-2.3.4-0.20040722.6+nptl

IIRC za stary snapshot, coś w tym rodzaju poprawiali niedawno.


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-pl mailing list