|
../glibc-2.3.2/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--with-headers=/tools/include \
--with-binutils=/tools/bin \
--without-gd
后,出错如下:
running configure fragment for ../glibc-2.3.2/sysdeps/i386/elf
running configure fragment for ../glibc-2.3.2/sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on. Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.
明明是有--enable-add-ons 啊,为什么还有这个错误呢?
不管三七二十一,先加上`--disable-sanity-checks',configure 通过,可是
在make的时候,出现error,错误如下:
gcc -B/tools/bin/ ../sysdeps/unix/sysv/linux/i386/system.c -c -std=gnu99 -O2 -Wo
In file included from ../sysdeps/unix/sysv/linux/i386/system.c:50:
../sysdeps/posix/system.c: In function `do_system':
../sysdeps/posix/system.c:78: warning: statement with no effect
../sysdeps/posix/system.c:84: warning: statement with no effect
../sysdeps/unix/sysv/linux/i386/system.c: In function `cancel_handler':
../sysdeps/unix/sysv/linux/i386/system.c:68: error: `quit' undeclared (first us)
../sysdeps/unix/sysv/linux/i386/system.c:68: error: (Each undeclared identifiere
../sysdeps/unix/sysv/linux/i386/system.c:68: error: for each function it appear)
../sysdeps/unix/sysv/linux/i386/system.c:69: error: `intr' undeclared (first us)
make[2]: *** [/mnt/lfs/sources/glibc-bulid/stdlib/system.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
make: *** [all] Error 2
请问是什么原因呢? |
|