glibc-2.3.6 build error

Carlos O'Donell
Mon Nov 30 23:36:00 GMT 2009

On Mon, Nov 30, 2009 at 3:32 PM, Abhijeet Tripathi
<> 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.


More information about the Libc-help mailing list