glibc-2.0.96 build problems
I just tried 2.0.96 on a
[root@xia01 glibc-2.0.96]# uname -a
Linux xia01 2.1.99 #1 Sat May 2 18:35:38 1998 sparc64 unknown
I found two problems, one easy to fix, one not so easy:
I had to change this in the makefile because for some reason make -C wasn't
working... it simply segfaulted make. Maybe you can ad a ./configure check
to see if make -C works, and if not, use this as an alternative?
# The action for each of those is to cd into the directory and make the
# target there.
$(all-subdirs-targets):
cd $(@D) && make $(PARALLELMFLAGS) $(@F)
# $(MAKE) $(PARALLELMFLAGS) -C $(@D) $(@F)
secondly:
This was the configuration used...
./configure --prefix=/usr --enable-add-ons=crypt,linuxthreads
--host=sparc-sun-linux
and during the pass on which it enters directories with make others this
error occurred:
make[1]: Leaving directory `/home/lohner/utils/glibc-2.0.96/rt'
cd debug && make others
make[1]: Entering directory `/home/lohner/utils/glibc-2.0.96/debug'
sed -e 's|@VERSION@|2.0.96|' -e 's|@SLIB@|/lib|' catchsegv.sh > catchsegv.new
chmod 555 catchsegv.new
mv -f catchsegv.new catchsegv
gcc ../sysdeps/generic/segfault.c -c -O -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g -fPIC -I../include -I. -I.. -I../libio
-I../sysdeps/sparc/sparc32/elf -I../crypt/sysdeps/unix
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/sparc/sparc32 -I../linuxthreads/sysdeps/pthread/no-
cmpxchg -I../linuxthreads/sysdeps/sparc -I../sysdeps/unix/sysv/linux/sparc/sp
arc32 -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/sparc/fpu
-I../sysdeps/sparc -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DPIC -o segfault.os
../sysdeps/generic/segfault.c: In function `install_handler':
../sysdeps/generic/segfault.c:179: `SA_ONSTACK' undeclared (first use in
this function)
../sysdeps/generic/segfault.c:179: (Each undeclared identifier is reported
only once
../sysdeps/generic/segfault.c:179: for each function it appears in.)
make[1]: *** [segfault.os] Error 1
make[1]: Leaving directory `/home/lohner/utils/glibc-2.0.96/debug'
make: *** [debug/others] Error 2
[root@xia01 glibc-2.0.96]# uname -a
Linux xia01.kachinatech.com 2.1.99 #1 Sat May 2 18:35:38 1998 sparc64 unknown
[root@xia01 glibc-2.0.96]# gcc --version
egcs-2.91.57
[root@xia01 glibc-2.0.96]#
Here's where I found it:
[root@xia01 glibc-2.0.96]# find . -name "*.[ch]" -exec grep -l SA_ONSTACK {}
\;
./sysdeps/generic/bits/sigaction.h
./sysdeps/generic/segfault.c
./sysdeps/generic/trampoline.c
./sysdeps/mach/hurd/i386/trampoline.c
./sysdeps/mach/hurd/mips/trampoline.c
./sysdeps/mach/hurd/alpha/trampoline.c
./sysdeps/mach/hurd/hppa/trampoline.c
./sysdeps/unix/bsd/osf/bits/sigaction.h
./sysdeps/unix/bsd/sun/m68k/sigtramp.c
./sysdeps/unix/bsd/sun/sparc/sigtramp.c
./sysdeps/unix/bsd/sigaction.c
./sysdeps/unix/sysv/linux/bits/sigaction.h
./sysdeps/unix/sysv/sysv4/bits/sigaction.h
./sysdeps/unix/sysv/minix/bits/sigaction.h
./sysdeps/posix/sigvec.c
so I renamed SA_ONSTACK in generic/segfault.c to SA_STACK (looked in
unix/sysv/linux/sparc/bits/sigaction.h)
After that it seemed to build just fine.
Thanks for the help.
Nils.
Reply to: