I am trying to produce a glibc rpm by using a spec file based off of SLES-8 as my basis. However, I'm having problems building glibc from source by hand also. This is with glibc-2.3.2 and the linuxthreads addon. I know you're more concerned with glibc bugs then spec file problems, but I don't think it's a problem specifically in my spec file.
With the spec file glibc is reporting errors when configuring.
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking build system type... s390-ibm-linux-gnu
checking host system type... s390-ibm-linux-gnu
Note that I've got --built, --host, and --target all set to what I believe is a correct setting. I was previously using "s390-suse-linux" (assumed from SuSE' s spec file) but I changed it to exactly what configure finds and it still doesn't seem to work.
One concern I have is that it seems to be truncating my last argument to ../configure I have "s390-suse-linux" in the spec but rpm adds a ' ' there and doesn't seem to pass it.
Here's the glibc.spec file entry;
This is what seems to be holding me up.
I'm sure this has been built before so it's probably something with my environment but I have no idea what it might be.
I'm currently running a 2.4.21 kernel, and I have the following links in /usr/include;
linux -> /usr/src/linux/include/linux
asm -> /usr/src/linux/include/asm
asm-s390 -> /usr/src/linux/include/asm-s390
asm-s390x -> /usr/src/linux/include/asm-s390x
Where /usr/src/linux is the code that I built my currently running kernel from.
When building from hand I get the same error.
In file included from sys/ustat.h:30,
from ../sysdeps/unix/sysv/linux/ustat.c:21:
../sysdeps/generic/bits/ustat.h:26: redefinition of `struct ustat'
make[2]: *** [/usr/src/packages/BUILD/glibc-2.3.2/cc/misc/ustat.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2'
make: *** [all] Error 2
Hopefully you have an idea of what's going wrong. I apprecaite your help,
j
Jay Huie
address@hidden
zSeries Linux System Test
Phone: 845-435-8164