This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: glibc-2.3.6 build error
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Abhijeet Tripathi <abhijeet dot tripathy at yahoo dot co dot in>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>, "abhijeet dot tripathy at gmail dot com" <abhijeet dot tripathy at gmail dot com>
- Date: Mon, 30 Nov 2009 18:36:41 -0500
- Subject: Re: glibc-2.3.6 build error
- References: <df3832fc0911301035j13b2909fmd2f22420075f6744@mail.gmail.com> <op.u3750yn7ymescj@abhijeet-pc>
On Mon, Nov 30, 2009 at 3:32 PM, Abhijeet Tripathi
<abhijeet.tripathy@yahoo.co.in> wrote:
> ../sysdeps/unix/sysv/linux/i386/getrlimit.c: In function â__new_getrlimitâ:
> ../sysdeps/unix/sysv/linux/i386/getrlimit.c:65: error:
> â__NR_getrlimitâ undeclared (first use in this function)
> ../sysdeps/unix/sysv/linux/i386/getrlimit.c:65: error: (Each
> undeclared identifier is reported only once
> ../sysdeps/unix/sysv/linux/i386/getrlimit.c:65: error: for each
If I had to guess, your kernel headers are missing, broken, or don't
match what glibc expects.
The value of __NR_* should come from unistd.h from the sysroot headers
for your cross-compiler, which should come from a linux kernel `make
headers_install` that you did when building the cross-compiler.
Cheers,
Carlos.