[PATCH] check kernel headers for thread library

Jakub Jelinek jakub@redhat.com
Fri Mar 14 00:40:00 GMT 2003


On Fri, Mar 14, 2003 at 11:05:14AM +1100, Ian Wienand wrote:
> Hello,
> 
> NPTL requires recent kernel versions to work properly.  Without
> checking the headers stupid people like me might occasionally forget
> the --with-headers flag and get silly errors like _exit not using
> exit_group & then wondering why their threads don't exit.

IMHO it is better to
#if !defined __NR_exit_group || !defined __NR_set_tid_address etc
# error Too old kernel headers to build NPTL
#endif
in one of the NPTL files or in NPTL configure.

We're running NPTL on 2.4.20 kernel (on IA-32 so far) just fine
(it has all the threading patches backported).

	Jakub



More information about the Libc-alpha mailing list