with 2.4.21-r1 linux-headers I get the following error: gcc ../sysdeps/generic/strtol.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-protot ypes -Wwrite-strings -freorder-blocks -pipe -I../include -I. -I/var/tmp/por tage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/stdlib -I.. -I../libio -I/var/tm p/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere -I../sysdeps/s390/s390-32/el f -I../linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32 -I../linuxthreads/sysde ps/unix/sysv/linux/s390 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthre ads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I. ./linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/s390/s390-32 -I../linuxthr eads/sysdeps/s390 -I../sysdeps/unix/sysv/linux/s390/s390-32 -I../sysdeps/unix/sy sv/linux/s390 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/co mmon -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../s ysdeps/unix -I../sysdeps/posix -I../sysdeps/s390/s390-32 -I../sysdeps/wordsize-3 2 -I../sysdeps/ieee754 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 - I../sysdeps/s390/fpu -I../sysdeps/s390 -I../sysdeps/generic/elf -I../sysdeps/gen eric -nostdinc -isystem /usr/lib/gcc-lib/s390-ibm-linux-gnu/3.3.3/include -isyst em /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /v ar/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/stdlib/strtol.o -MD -MP -MF /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/stdlib/strtol.o. dt ../sysdeps/generic/strtol.c: In function `__strtol_internal': ../sysdeps/generic/strtol.c:513: error: `ERANGE' undeclared (first use in this f unction) ../sysdeps/generic/strtol.c:513: error: (Each undeclared identifier is reported only once ../sysdeps/generic/strtol.c:513: error: for each function it appears in.) make[2]: *** [/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/stdlib/ strtol.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/std lib' make[1]: *** [stdlib/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.2-r9 failed. !!! Function src_compile, Line 498, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r5 (default-s390-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.4.21) ================================================================= System uname: 2.4.21 s390 unknown Gentoo Base System version 1.4.6 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="s390 ~s390" AUTOCLEAN="yes" CFLAGS="-m31 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" CHOST="s390-ibm-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-m31 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox strict userpriv" GENTOO_MIRRORS="ftp://dsse.con.can.ibm.com/gentoo" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb crypt cups fbcon foomaticdb gdbm imlib libwww mad mikmod motif mpeg ncurses nls pam perl png python readline s390 slang snmp spell ssl tcpd truetype zlib"
hupsi... glib*c* - i guess gnome is the wrong contact here
Created attachment 29180 [details, diff] Patch to change the default s390 profile If fixes that problem with glibc but then we get this error that still needs to be fixed in the ebuild http://sources.redhat.com/ml/bug-glibc/2003-08/msg00020.html
that would be #47415 If you want to fix this bug by updating the profile, I think it should be >=linux-headers-2.4.22 However, I think we should track down what actually triggers this bug
The function ERANGE isn't definied in the 2.4.21 Linux Kernel Headers is what triggers this bug.
Updated the s390 Profile to use the 2.4.22 Headers