Hi,
Quick introduction- I've been running Linux as my main OS for several months by now and decided I wanted to get to know the operating system better. I use Ubuntu and loved tinkering around to get things to work the way I want them to, but then I reached point where everything worked and I said, "Great... Now what?" So, I decided to start working on a LFS system. Anyways, here is my issue.
When trying to compile glibc-2.3.6 (see chapter 5.6, LFS book version 6.2), gcc throws errors. I assume I am missing some kind of library, but couldn't find anything specifically mentioned in the prerequisites as described by the book. Here is the output from gcc:
Code:
lfs@lappiex86:/mnt/lfs/sources/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.6 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.6'
make -C csu subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.6/csu'
gcc -B/tools/bin/ version.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=4 -I../include -I. -I/mnt/lfs/sources/glibc-build/csu -I.. -I../libio -I../nptl -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/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../nptl/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 -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/include -isystem /tools/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o /mnt/lfs/sources/glibc-build/csu/version.o -MD -MP -MF /mnt/lfs/sources/glibc-build/csu/version.o.dt -MT /mnt/lfs/sources/glibc-build/csu/version.o
In file included from version.c:33:
/mnt/lfs/sources/glibc-build/csu/version-info.h:2: error: missing terminating " character
/mnt/lfs/sources/glibc-build/csu/version-info.h:3: error: missing terminating " character
version.c:40: error: syntax error before string constant
make[2]: *** [/mnt/lfs/sources/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6'
make: *** [all] Error 2
lfs@lappiex86:/mnt/lfs/sources/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.6 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.6'
make -C csu subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.6/csu'
gcc -B/tools/bin/ version.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=4 -I../include -I. -I/mnt/lfs/sources/glibc-build/csu -I.. -I../libio -I../nptl -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/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../nptl/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 -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/include -isystem /tools/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o /mnt/lfs/sources/glibc-build/csu/version.o -MD -MP -MF /mnt/lfs/sources/glibc-build/csu/version.o.dt -MT /mnt/lfs/sources/glibc-build/csu/version.o
In file included from version.c:33:
/mnt/lfs/sources/glibc-build/csu/version-info.h:2: error: missing terminating " character
/mnt/lfs/sources/glibc-build/csu/version-info.h:3: error: missing terminating " character
version.c:40: error: syntax error before string constant
make[2]: *** [/mnt/lfs/sources/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6'
make: *** [all] Error 2
Thank you for any help you may be able to provide.