QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1684|回复: 2

大家快来看看,给我指点下迷精!

[复制链接]
发表于 2004-10-21 23:15:05 | 显示全部楼层 |阅读模式
写在前面:
本人的机子上早在半年前就把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??????


还望大家指点指点指点!在此先谢谢了!
发表于 2004-10-23 17:55:47 | 显示全部楼层
后看来很多错误:
/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"不同)
不是“错误”,是“警告”(warning),可以不用理会,开发者的问题。

只是看到那个make [1] Nothing to be done for 'all'感觉怪怪的
这才是好东东,说明该 make 做的它都给你做完了。

后面的错误,也许是你的源码包不完整吧,检查过 md5sum 没有?
我没有装过 LFS 5.0, 不过记得装 3.x、 4.x 和 5.1 时 glibc 都是不用 patch 的。
回复

使用道具 举报

发表于 2004-10-23 20:58:14 | 显示全部楼层
5.0的官方手册上写着那个patch是第二遍编译glibc的时候才要的.第一遍不需要.
下面这个链接是我做lfs5.1的时候写的,和5.0有些不一样,不过看一下有些帮助.
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=87226

最近一直比较忙, 有空我再把它补全好了.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 06:32 , Processed in 0.040148 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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