Problems 'make'ing glibc-2.3.2
I am attempting to build glibc 2.3.2 from source. I am running slack 9.1 (kernel 2.4.22). Before I explain my problem, let me go over what I did, in order to make certain that I did not misunderstand something that the instructions were telling me to do. The instructions I am talking about are at GNU's glibc site (Sorry - can't link directly to it due to my low # of posts here, but it's quite easy to find)
I first downloaded both the glibc and linuxthreads archives. I unzipped them and then moved the linuxthreads directory into the glibc-2.3.2 directory. I created a separate build directory as stated in the instructions. So the structure is now like this:
/home/jrtayloriv/
/home/jrtayloriv/glibcBUILD/ --> build directory
/home/jrtayloriv/glibc-2.3.2/ --> glibc source
/home/jrtayloriv/glibc-2.3.2/linuxthreads/ --> linuxthreads add-on source
I then set /home/jrtayloriv/glibc-2.3.2/ to the variable GLIBCSRCDIR
I then ran the following from /home/jrtayloriv/glibcBUILD/ without any error messages:
$GLIBCSRCDIR/configure --prefix /usr/local/lib/glibc-2.3.2 --enable-add-ons
(is the prefix acceptable? I wasn't so sure about that one, but the configure script ran wihtout any noticable problems)
The 'make' is where I encountered the error. I have pasted the entire output at the bottom of the post. Anyone encountered a similar problem? I would really appreciate any suggestions.
Thanks,
jrtayloriv
bash-2.05b# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C /home/jrtayloriv/glibc-2.3.2 objdir=`pwd` all
make[1]: Entering directory `/home/jrtayloriv/glibc-2.3.2'
make -C csu subdir_lib
make[2]: Entering directory `/home/jrtayloriv/glibc-2.3.2/csu'
gcc ../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/home/jrtayloriv/glibcBUILD/csu -I.. -I../libio -I/home/jrtayloriv/glibcBUILD -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -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/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I /lib/modules/2.4.22/build/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o /home/jrtayloriv/glibcBUILD/csu/init-first.o
In file included from ../linuxthreads/internals.h:29,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../linuxthreads/descr.h:43:40: linuxthreads_db/thread_dbP.h: No such file or directory
In file included from ../linuxthreads/internals.h:29,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../linuxthreads/descr.h:164: syntax error before "td_eventbuf_t"
../linuxthreads/descr.h:164: warning: no semicolon at end of struct or union
../linuxthreads/descr.h:184: syntax error before '}' token
../linuxthreads/descr.h:184: warning: empty declaration
../linuxthreads/descr.h: In function `thread_self':
../linuxthreads/descr.h:250: invalid use of undefined type `struct _pthread_descr_struct'
In file included from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../linuxthreads/internals.h: At top level:
../linuxthreads/internals.h:159: syntax error before "__pthread_threads_events"
../linuxthreads/internals.h:159: warning: type defaults to `int' in declaration of `__pthread_threads_events'
../linuxthreads/internals.h:159: warning: data definition has no type or storage class
../linuxthreads/internals.h: In function `invalid_handle':
../linuxthreads/internals.h:178: dereferencing pointer to incomplete type
../linuxthreads/internals.h:178: dereferencing pointer to incomplete type
../linuxthreads/internals.h: In function `nonexisting_handle':
../linuxthreads/internals.h:183: dereferencing pointer to incomplete type
make[2]: *** [/home/jrtayloriv/glibcBUILD/csu/init-first.o] Error 1
make[2]: Leaving directory `/home/jrtayloriv/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/jrtayloriv/glibc-2.3.2'
make: *** [all] Error 2
|