LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 649|回复: 5

i have some problem at install glibc-2.3.2

[复制链接]
发表于 2004-3-4 21:05:28 | 显示全部楼层 |阅读模式
host os :rh9   Linux From Scratch: 版本 CVS-20040109
    i have tar the glibc-linuxthreads-2.3.2.tar.bz2 in the dir /mnt/lfssources/glibc-2.3.2   and then run
lfs:/mnt/lfs/sources/glibc-2.3.2$ patch -Np1 -i ../glibc-2.3.2-sscanf-1.patch >>/tmp/lfs.txt
patch: **** Only garbage was found in the patch input.
mkdir ../glibc-build
cd ../glibc-build
lfs:/mnt/lfs/sources/glibc-build$ ../glibc-2.3.2/configure --prefix=/tools \
>     --disable-profile --enable-add-ons \
>     --with-headers=/tools/include \
>     --with-binutils=/tools/bin \
>     --without-gd >>/tmp/lfs.txt
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking sysdep dirs... sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux/i386 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386/i686 linuxthreads/sysdeps/i386 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 3.3.2, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.79.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.11.4, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.3, ok
checking for sed... sed
checking version of sed... 4.0.5, ok
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether /tools/bin/as is GNU as... yes
checking whether /tools/bin/ld is GNU ld... yes
checking for /tools/bin/as... /tools/bin/as
checking version of /tools/bin/as... 2.14, ok
checking for /tools/bin/ld... /tools/bin/ld
checking version of /tools/bin/ld... 2.14, ok
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/sh
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /sbin/install-info
checking for old Debian install-info... no
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for assembler .type directive prefix... @
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -Bgroup option... yes
checking for -z combreloc... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... no_registry_needed
checking for __builtin_expect... yes
checking for __builtin_memset... no
checking for local label subtraction... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... 12
running configure fragment for ../glibc-2.3.2/sysdeps/i386/elf
running configure fragment for ../glibc-2.3.2/sysdeps/pthread
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
checking for symlinks in /tools/include... ok
running configure fragment for ../glibc-2.3.2/sysdeps/unix/common
running configure fragment for ../glibc-2.3.2/sysdeps/unix
running configure fragment for ../glibc-2.3.2/sysdeps/generic
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating glibcbug
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
configure: configuring in linuxthreads
configure: running /bin/sh '../../glibc-2.3.2/linuxthreads/configure' --prefix=/tools  '--prefix=/tools' '--disable-profile' '--enable-add-ons' '--with-headers=/tools/include' '--with-binutils=/tools/bin' '--without-gd' --cache-file=/dev/null --srcdir=../../glibc-2.3.2/linuxthreads
lfs:/mnt/lfs/sources/glibc-build$make
.
.
.
sscanf.c:31: warning: conflicting types for built-in function `sscanf'
sscanf.c: In function `sscanf':
sscanf.c:37: error: `va_start' used in function with fixed args
../stdio-common/_itoa.h: At top level:
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../stdio-common/_itoa.h:76: warning: called from here
make[2]: *** [/mnt/lfs/sources/glibc-build/stdio-common/sscanf.o] Error 1
make[1]: *** [stdio-common/subdir_lib] Error 2
make: *** [all] Error 2
lfs:/mnt/lfs/sources/glibc-build$make check
.
.
.
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` check
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.2'
make  -C csu tests
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.2/csu'
gcc -B/tools/bin/ -M -MP ../sysdeps/unix/sysv/linux/i386/sysdep.S   -I../include -I. -I/mnt/lfs/sources/glibc-build/csu -I.. -I../libio  -I/mnt/lfs/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.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -DASSEMBLER  -I/mnt/lfs/sources/glibc-build/csu/. -DGAS_SYNTAX | sed -e 's,sysdep\.o,/mnt/lfs/sources/glibc-build/csu/sysdep.o /mnt/lfs/sources/glibc-build/csu/sysdep.os /mnt/lfs/sources/glibc-build/csu/sysdep.op /mnt/lfs/sources/glibc-build/csu/sysdep.og /mnt/lfs/sources/glibc-build/csu/sysdep.ob /mnt/lfs/sources/glibc-build/csu/sysdep.oS /mnt/lfs/sources/glibc-build/csu/sysdep.d,' -e 's@ /mnt/lfs/sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/mnt/lfs/sources/glibc-build/@$(common-objpfx)@g' > /mnt/lfs/sources/glibc-build/csu/sysdep.T
mv -f /mnt/lfs/sources/glibc-build/csu/sysdep.T /mnt/lfs/sources/glibc-build/csu/sysdep.d
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/csu'
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.2/csu'
make[2]: Nothing to be done for `tests'.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/csu'
make  -C iconv tests
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.2/iconv'
gcc -B/tools/bin/ tst-iconv1.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include -I. -I/mnt/lfs/sources/glibc-build/iconv -I.. -I../libio  -I/mnt/lfs/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.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1    -o /mnt/lfs/sources/glibc-build/iconv/tst-iconv1.o
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/iconv'
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
lfs:/mnt/lfs/sources/glibc-build$mkdir /tools/etc
lfs:/mnt/lfs/sources/glibc-build$touch /tools/etc/ld.so.conf
lfs:/mnt/lfs/sources/glibc-build$make install
.
.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/signal'
make  -C stdlib subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.2/stdlib'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/stdlib'
make  -C stdio-common subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.3.2/stdio-common'
gcc -B/tools/bin/ sscanf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include -I. -I/mnt/lfs/sources/glibc-build/stdio-common -I.. -I../libio  -I/mnt/lfs/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.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO -o /mnt/lfs/sources/glibc-build/stdio-common/sscanf.o
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/stdio-common'
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
lfs:/mnt/lfs/sources/glibc-build$make localedata/install-locales

all done
i check the dir /mnt/lfs//tools/lib/locale   it have nothing

what can i do now?
发表于 2004-3-4 22:14:57 | 显示全部楼层
sscanf.c:31: warning: conflicting types for built-in function `sscanf'
sscanf.c: In function `sscanf':
sscanf.c:37: error: `va_start' used in function with fixed args
../stdio-common/_itoa.h: At top level:
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../stdio-common/_itoa.h:76: warning: called from here
make[2]: *** [/mnt/lfs/sources/glibc-build/stdio-common/sscanf.o] Error 1
make[1]: *** [stdio-common/subdir_lib] Error 2
make: *** [all] Error 2
这都error了,还check什么?
发表于 2004-3-4 22:15:37 | 显示全部楼层
lfs:/mnt/lfs/sources/glibc-2.3.2$ patch -Np1 -i ../glibc-2.3.2-sscanf-1.patch >>/tmp/lfs.txt
patch: **** Only garbage was found in the patch input.
patch就出错了。
 楼主| 发表于 2004-3-5 10:02:35 | 显示全部楼层
thx
   i del all source files and redo now
   why do i patch false?
   my command copy from the guid, it's wrong?
发表于 2004-3-5 22:14:26 | 显示全部楼层
你的patch文件不对。肯定是你不小心改掉了。
 楼主| 发表于 2004-3-5 22:32:46 | 显示全部楼层
thx
  i think i wested the bbs sources. if  i have any question of  installing the LFS ,i will use"安装 GCC-3.2.3 - 第二遍 make出错"


  thank you so much my lord tram !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表