|
|
安装按说明书办事,LFS 5.0中译本。
后面按LFS5.1英文本改了configure中的--enable-add-ons=linuxthreads
默认是这样的
../glibc-2.3.2/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--libexecdir=/usr/bin --with-headers=/usr/include
而前面的安装到/tools中的glibc的configure是这样的
../glibc-2.3.2/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--with-headers=/tools/include \
--with-binutils=/tools/bin \
--without-gd
仍旧错误,请高手查验。
root:/sources/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` all
make[1]: Entering directory `/sources/glibc-2.3.2'
make -C csu subdir_lib
make[2]: Entering directory `/sources/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/sources/glibc-build/csu -I.. -I../libio -I/sources/glibc-build -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 -nostdinc -isystem /tools/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o /sources/glibc-build/csu/init-first.o
In file included from ../sysdeps/unix/sysdep.h:21,
from ../sysdeps/unix/i386/sysdep.h:19,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:24,
from ../sysdeps/unix/sysv/linux/init-first.c:24:
../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: asm/unistd.h: No such file or directory
In file included from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../sysdeps/unix/sysv/linux/init-first.c:26:
/usr/include/linux/param.h:4:23: asm/param.h: No such file or directory
In file included from ../signal/signal.h:313,
from ../include/signal.h:5,
from ../linuxthreads/internals.h:23,
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:
../sysdeps/unix/sysv/linux/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory
In file included from ../include/signal.h:5,
from ../linuxthreads/internals.h:23,
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:
../signal/signal.h:316: warning: `struct sigcontext' declared inside parameter list
../signal/signal.h:316: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from ../linuxthreads/internals.h:23,
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:
../include/signal.h:38: warning: `struct sigcontext' declared inside parameter list
In file included from ../inet/netinet/in.h:212,
from ../include/netinet/in.h:3,
from ../resolv/resolv.h:57,
from ../include/resolv.h:11,
from ../linuxthreads/descr.h:19,
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:
../sysdeps/unix/sysv/linux/bits/socket.h:305:24: asm/socket.h: No such file or directory
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:108: warning: `struct sigcontext' declared inside parameter list
../linuxthreads/internals.h:108: warning: parameter has incomplete type
../linuxthreads/internals.h:449: warning: `struct sigcontext' declared inside parameter list
../linuxthreads/internals.h:449: warning: parameter has incomplete type
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../stdio-common/_itoa.h:76: warning: called from here
make[2]: *** [/sources/glibc-build/csu/init-first.o] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.2'
make: *** [all] Error 2
root:/sources/glibc-build# |
|