Re: How to detect NPTL at compile time

Ulrich Drepper <[email protected]>
Newsgroups gmane.comp.lib.phil
Organization Red Hat, Inc.
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hui Huang wrote:

> As pointed out by another email today, apparently confstr()
> doesn't work correctly on RH-9. It always returns "NPTL 0.29"
> even I'm running with LinuxThreads. Any workaround for that?

Running with LinuxThreads?  If you run

  getconf GNU_LIBPTHREAD_VERSION

you'll get NPTL x.y.  If you run

  LD_ASSUME_KERNEL=2.4.1 getconf GNU_LIBPTHREAD_VERSION

you'll get linuxthread-0.10.

The information comes from the libc.so which is used.  The libc.so and
libpthread.so must always match.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+jhLu2ijCOnn/RHQRAo0bAJ48xryEKe/J/FkHxKE3wwMUEuJHagCdHnRi
xZnxrw27pijKuhssVu9GTzk=
=3wvQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.