gcc ../sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mcpu=v8 -pipe -I../include -I. -I/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/grp -I.. -I../libio -I/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere -I../sysdeps/sparc/sparc32/elf -I../linuxthreads/sysdeps/unix/sysv/linux/sparc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/sparc/sparc32 -I../linuxthreads/sysdeps/sparc -I../sysdeps/unix/sysv/linux/sparc/sparc32 -I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32/fpu -I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/sparc/sparc32/soft-fp -I../sysdeps/sparc/fpu -I../sysdeps/sparc -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I /lib/modules/2.4.20-pre10/build/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/grp/setgroups.o In file included from ../sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c:2: ../sysdeps/unix/sysv/linux/i386/setgroups.c: In function `setgroups': ../sysdeps/unix/sysv/linux/i386/setgroups.c:57: `__NR_setgroups32' undeclared (first use in this function) ../sysdeps/unix/sysv/linux/i386/setgroups.c:57: (Each undeclared identifier is reported only once ../sysdeps/unix/sysv/linux/i386/setgroups.c:57: for each function it appears in.) make[2]: *** [/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/grp/setgroups.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/grp' make[1]: *** [grp/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 154, Exitcode 2 !!! (no error message) Az, I'm running gcc-3.2-r3 btw, dunno if that makes a diff
Please read the whole thing for my statments to make sense ;) As reported by my system: make[2]: *** [/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/grp/setgroups.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/grp' make[1]: *** [grp/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 154, Exitcode 2 !!! (no error message) root@squeaky cd-tools # emerge -p autoconf These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild R ] sys-devel/autoconf-2.54 ##################Look Here############## http://sources.redhat.com/ml/libc-alpha/2002-10/msg00048.html snipet from above mentioned page ... I assume that this is relevant information: In case you are modifying the source files which will cause autoconf to run make sure you have autoconf 2.13 installed and *NOT* version 2.50 and up. These versions will not work. Support for the new autoconf will be enabled in upcoming releases.
Hiya Seemant ... sorry, havent seen this before. Is it only on the sparc ? And nope, should not be gcc-3.2-r3, as that is what im running as well. Rodney, you know of course that autoconf-2.13 runs by default except if the configure.in script, wants 2.5x, or if you export WANT_AUTOCONF_2_5=1 ?
I do know the fix for this, but am usure how to fix it in the ebuild, an extra configure flag fot the ./configure statement might do it. The fix is to remove the /lib/modules/2.4.XX/build symlinks so glibc uses the kernel headers in /usr/include/linux rather than those in the linux-source dir. Will try and find the ./configure option when I get home, atm I am away from home. Cretin
Seemant, if this is indeed the case, then you can change in src_compile(): ---------------------------------------------- use build \ && myconf="${myconf} --with-header=${ROOT}usr/include" ---------------------------------------------- To: ---------------------------------------------- ( use build || use sparc || use sparc64 ) \ && myconf="${myconf} --with-header=${ROOT}usr/include" ---------------------------------------------- Btw, do you only get it on the sparc ? And is it a sparc or sparc64 ? Can any of the other sparc guys test this ?
Azarah, this is a sparc64 -- and trance had the exact same error on his sparc64. After talking with cretin earlier (before you replied in the above comment), I added the --with-header line in the ebuild locally to try. it is in progress, and I will update you when it's done.. I am not sure if it happens on a regular sparc though I would tend to doubt it..
I have added the change to glibc-2.3.1-r2, and all is OK again so closing bug Cretin