This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc-2.3.6 build error


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]