|  | 
 
| 写在前面: 本人的机子上早在半年前就把MS WINDOWS给X了,现在用滴是Turoblinux,用它已经好久了,感觉linux就是好,想让自己用linux用得更好此,便做起了LFS,属第一次,没有经验,再者,本人也非计算机专业,很多东东还是搞不懂!特在此向大家请教!
 
 我不懂怎么说,就把基本上本人所做的都写出来吧!
 
 主系统:Turbolinux 10 Desktop (already update)
 硬盘分区情况:
 hda1 > /boot 100M
 hda2 > Ex
 
 hda5 > / (tl 10) 5000M
 hda6 > linux ext2 (lfs) 5000M
 hda7 > linux ext2 (music and backup) 4600M
 hda8 > swap 256M
 
 LSF 参考书:LFS 5。0 html chinese
 
 环境设置:
 本人为了每次重启后可减少设置,在/etc/bashrc中add
 # For make LFS
 export LFS="/mnt/lfs"
 
 用lfs login后
 # source ~/.bash_profile(此环境已按书中设好)
 
 其它滴完全按书中所说的做。
 
 安装包是从
 fdl兄的ftp地址是:ftp://linuxsir:[email protected]
 所下!本人在此表示感谢!
 
 
 (创建临时系统--第五章)
 安装过程:
 安装binutils-2.14第一遍
 
 # make LDFLAGS="-all-static"
 
 后看来很多错误:
 /mnt/lfs/sources/binutils-2.14/libiberty/regx.c:4548 warring:signed and unsig ned type in conditional expression (可能有十几个,只是4548不同)
 
 lex.yy.c:1910 warrying: no previous prototype for "yyget_leng"(也很多,只是最后面的所指也就是"yyget_leng"不同)
 
 到了最后:
 make [3] Leaving directory '/mnt/lfs/sources/binutils-build/gprof'
 make [1] Leaving directory '/mnt/lfs/sources/binutils-build/gprof'
 make [1] Leaving directory '/mnt/lfs/sources/binutils-build/gprof'
 make [1] Entering directory '/mnt/lfs/sources/binutils-build/etc'
 make [1] Nothing to be done for 'all'
 make [1] Leaving directory '/mnt/lfs/sources/binutils-build/etc'
 [lfs @localhost binutils-build]$
 
 应该没什么问题吧?只是看到那个make [1] Nothing to be done for 'all'感觉怪怪的!
 
 安装GCC 第一遍时,也是差不多,但到最后都没出现说
 make ERR n
 我也就不管,再接下去就是!
 
 安装linux-2.4.22头文件 正常
 
 安装Glibc-2.3.2
 
 在此就出现问题了,用cd command 进入glibc-2.3.2 目录后解压glibc-linuxthreads后
 
 #mkdir /tools/etc
 #touch /tools/etc/ld.so.conf
 
 用GCC 3。3。1编译时有问题,补订:
 # patch -Np1 -i ../glibc-2.3.2-sscanf-1.patch
 
 在这就跳出个对话来:
 
 Can't find filw to patch at input line 10
 Perhaps you used the wrong -p or --strip option?
 The Text leading up to this was:
 ----------------------------------------------------------
 | Submitted Byavid shut (www.shustring.com)
 | Date : 2003-08-15
 | Initial Package Version:2.3.2
 | Origin:glibc CVS changes performed by Roland McGrath
 | Descriptionatchs stdio-common/sscanf.c,libio/{swprintf.c,sescanf.c}
 | diff -Naur glibc-2.3.2/libio/swprintf.c,glibc-2.3.2-nes/libio/swprintf.c
 | ---glibc-2.3.2/libio/swprintf.c 2001-07-07 19:21:03 000000000 +0000
 | +++glibc-2.3.2-nes/libio/swprintf.c 2003-08-15 19:36:42 000000000 +0000
 -------------------------------------------------------
 File to patch:
 
 这时我该输入什么啊?
 
 PS:我输入:$LFS/sources/glibc-2.3.2/libio/swprintf.c
 后又跑出一样的东东来!
 
 然后的make就过不去,出现:
 sscanf.c:31:warring: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:warring:inlinling 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 [2]:Leaving directory '/mnt/lfs/sources/glibc-build/stdio-common'
 make [1]:***[stdio-common/subdir_lib]Error 2
 make [1]:Leaving directory '/mnt/lfs/sources/glibc-2.3.2'
 make:***[all]Error 2
 [lfs @localhost binutils-build]$
 
 再运行
 #make check
 则最后出现:
 make [2]:***No rule to make target '/mnt/lfs/sources/glibc-build/ecf/soinit.os',needed by '/mnt/lfs/sources/glibc-build/libc.so'.stop
 make [2]:Leaving directory '/mnt/lfs/sources/glibc-2.3.2/iconv'
 make [1]:***[iconv/tests]Error 2
 make [1]:Leaving directory 'mnt/lfs/sources/glibc-2.3.2'
 make:***[check]Error 2
 [lfs @localhost binutils-build]$
 
 我想:
 应是那个补订没打好吧?可要怎么打呢?
 
 按字面的意思 是:
 区别那两个文件!
 
 what can I do?
 
 新建../glibc-2.3.2-nes/libio/swprintf.c??????
 
 
 还望大家指点指点指点!在此先谢谢了!
 | 
 |