DSL Ideas and Suggestions :: libc NPTL/TLS & Wine



Quote (Juanito @ Oct. 14 2007,19:00)
Did you add TLS to the base glibc binary from somewhere - i.e. in the same way as adding from glibc-linuxthreads-2.3.2.tar.bz2?

glibc-linuxthreads-2.3.6 had to be manually added, but NPTL/TLS is already included in glibc-2.3.6.

I had another go at this:
Code Sample
$ patch -p1 -d /usr/src/glibc-2.3.2 < /mnt/sdb1/source/build/glibc-2.3.2-sscanf-1.patch
patching file libio/swprintf.c
patching file libio/swscanf.c
patching file stdio-common/sscanf.c
$ ../glibc-2.3.2/configure --prefix=/opt/build --enable-shared --enable-add-ons --enable-kernel=2.4.26 --with-tls
...
$ /opt/build/lib/libc.so.6
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
...
Compiled by GNU CC version 3.3.5 (Debian 1:3.3.5-13).
Compiled on a Linux 2.6.0-test7 system on 2007-10-17.
Available extensions:
       GNU libio by Per Bothner
       crypt add-on version 2.1 by Michael Glad and others
       linuxthreads-0.10 by Xavier Leroy
       BIND-8.2.3-T5B
       libthread_db work sponsored by Alpha Processor Inc
       NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.

Seems to have worked, no? [BTW this was built on dsl-3.4.4, I don't know why it says 2.6.0-test7]

:0 Why your gcc is 3.3.5? DSL has 3.3.4...
I guess dsl doesn't have gcc at all and, from the 2.4.26 docs, gcc-2.95 is recommended - but good point.

I used a compile environment from debian sarge in order to be closest to libc6-2.3.2 and so gcc_3.3.5-3_i386.deb (sarge) seemed to be the path of least resistance (and I seem to recall reading somewhere that gcc >3 had to be used for libc6-2.3.2 but I could be mistaken).

I could try again with a different version of gcc or maybe somebody could try libc6_2.3.2.ds1-22sarge5_i386.deb or the version I compiled with wine and see if it works?

Why not try on DSL?

By "DSL has" I meant the gcc extensions have 3.3.4 ('cept for 2.95 extension of course)

Next Page...
original here.