I've been wanting to do a LFS, and have been having problems with compiling glibc, no matter what I do.
I was doing LFS 6.1, and had the same problem as I am now, and now I'm doing the experimental version of LFS. This is what seems to be the error I keep getting:
Code:
../sysdeps/unix/sysv/linux/i386/setgroups.c: In function `setgroups':
../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: `__NR_setgroups32' undeclared (first use in this function)
../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: (Each undeclared identifier is reported only once
../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: for each function it appears in.)
make[2]: *** [/mnt/lfs/sources/glibc-build/grp/setgroups.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5/grp'
make[1]: *** [grp/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5'
make: *** [all] Error 2
Oh, BTW, I'm building it in a folder beside the actual source folder called glibc-build. The sources are held in a folder that is ../glibc-2.3.5 from that folder.I'm using the following configure arugments:
Code:
../glibc-2.3.5/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
--without-selinux
I can't figure it out.... I'm using the x86_64 version of the linux-libc-headers-2.6.12 package. I run an Athlon 64 3200+, 512mb RAM. I've tried using the i386 headers.
I'm using the livecd of PCLinuxOS to do it, although I have tried it with the LFS livecd. Please help.. I'd really like to do this for some experience and satisfaction.