This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Problem compiling glibc-linuxthreads-2.3
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Saurabh Desai <sdesai at austin dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 10 Oct 2002 01:01:10 +0200
- Subject: Re: Problem compiling glibc-linuxthreads-2.3
- References: <3DA4B49E.BB60BCC9@austin.ibm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Oct 09, 2002 at 05:58:38PM -0500, Saurabh Desai wrote:
>
> I am trying to compile glibc-linuxthreads-2.3 on
> RedHat 8.0 with gcc-3.2-7, binutils-2.13.90.0.2-2
> and Linux kernel 2.5.41.
>
> ./configure --prefix=/usr --enable-add-ons=linuxthreads \
> --enable-kernel=2.5.41
In order to do that, you need to point glibc to 2.5.41 headers.
Ie. either put them into /usr/include, or add
--with-headers=/usr/src/linux-2.5.41/include or similar option
to glibc configure.
> The compilation is failing for pthread.c and manager.c:
>
> pthread.c: In function `__pthread_initialize_minimal':
> pthread.c:439: `__NR_set_thread_area' undeclared (first use in this function)
> pthread.c:439: (Each undeclared identifier is reported only once
> pthread.c:439: for each function it appears in.)
> pthread.c:439: output operand constraint lacks `='
> pthread.c:439: output operand constraint lacks `='
> pthread.c: In function `pthread_handle_sigcancel':
> pthread.c:992: `__NR_set_thread_area' undeclared (first use in this function)
> pthread.c:992: output operand constraint lacks `='
> pthread.c:992: output operand constraint lacks `='
>
> Same error comes for manager.c. I tried --without-tls and same failures.
Jakub