找回密码
 注册
查看: 7418|回复: 63

6.0-testing-20041003已完成,还有很多问题

[复制链接]
发表于 2004-10-7 16:06:58 | 显示全部楼层 |阅读模式
6.0-testing-20041003已完成,总共连续花了近18个小时
LFS ID is: 13994

http://www.linuxsir.org/bbs/showthread.php?s=&threadid=144938

安装zhcon到make时出错,不知道是什么问题?
[code:1]root@MagicLinux:/sources/zhcon-0.2.3# make
make  all-recursive
make[1]: Entering directory `/sources/zhcon-0.2.3'
Making all in src
make[2]: Entering directory `/sources/zhcon-0.2.3/src'
Making all in display
make[3]: Entering directory `/sources/zhcon-0.2.3/src/display'
source='fblinear24.cpp' object='fblinear24.o' libtool=no \
depfile='.deps/fblinear24.Po' tmpdepfile='.deps/fblinear24.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear24.o `test -f fblinear24.cpp || echo './'`fblinear24.cpp
fblinear24.cpp: In member function `virtual void FBLinear24::DrawChar(int, int, int, int, CharBitMap*)':
fblinear24.cpp:206: error: ISO C++ forbids cast to non-reference type used as lvalue
fblinear24.cpp:210: error: ISO C++ forbids cast to non-reference type used as lvalue
make[3]: *** [fblinear24.o] Error 1
make[3]: Leaving directory `/sources/zhcon-0.2.3/src/display'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/zhcon-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/zhcon-0.2.3'
make: *** [all] Error 2
root@MagicLinux:/sources/zhcon-0.2.3#[/code:1]
 楼主| 发表于 2004-10-7 16:08:33 | 显示全部楼层
内核模块在启动时如何自动加载?系统初始的PATH变量是在哪里设置的?

哪位兄弟指教一下
回复

使用道具 举报

发表于 2004-10-7 16:32:55 | 显示全部楼层
系统初始的变量我觉得可以看一下inittab里最先启动的那个rc脚本,在那里面export一下绝对可以,内核模块部分倒不是很清楚,一会看看再说,我的lfs5.1.1也快了
回复

使用道具 举报

 楼主| 发表于 2004-10-7 16:48:48 | 显示全部楼层
/etc/modprobe.conf  文件不知道是怎样才能起作用?
回复

使用道具 举报

发表于 2004-10-7 17:11:47 | 显示全部楼层
手动可以modprobe起来吧? :-)
回复

使用道具 举报

 楼主| 发表于 2004-10-7 17:13:46 | 显示全部楼层
手动当然可以,否则我就不会这么问了     
回复

使用道具 举报

发表于 2004-10-7 17:38:41 | 显示全部楼层
呵呵,那要在modules。conf中加上alias XXX XXX的
回复

使用道具 举报

发表于 2004-10-7 17:46:47 | 显示全部楼层

Re: 6.0-testing-20041003已经完成,还有很多问

[quote:7c284cff83="tyfrlj"]http://www.linuxsir.org/bbs/showthread.php?s=&threadid=144938

安装zhcon到make时出错,不知道是什么问题?
[code:1]root@MagicLinux:/sources/zhcon-0.2.3# make
make  all-recursive
make[1]: Entering directory `/sources/zhcon-0.2.3'
Making all in src
make[2]: Entering directory `/sources/zhcon-0.2.3/src'
Making all in display
make[3]: Entering directory `/sources/zhcon-0.2.3/src/display'
source='fblinear24.cpp' object='fblinear24.o' libtool=no \
depfile='.deps/fblinear24.Po' tmpdepfile='.deps/fblinear24.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear24.o `test -f fblinear24.cpp || echo './'`fblinear24.cpp
fblinear24.cpp: In member function `virtual void FBLinear24::DrawChar(int, int, int, int, CharBitMap*)':
fblinear24.cpp:206: error: ISO C++ forbids cast to non-reference type used as lvalue
fblinear24.cpp:210: error: ISO C++ forbids cast to non-reference type used as lvalue
make[3]: *** [fblinear24.o] Error 1
make[3]: Leaving directory `/sources/zhcon-0.2.3/src/display'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/zhcon-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/zhcon-0.2.3'
make: *** [all] Error 2
root@MagicLinux:/sources/zhcon-0.2.3#[/code:1][/quote]
补丁gentoo.linuxsir.org上有你可以试试。
回复

使用道具 举报

 楼主| 发表于 2004-10-7 18:24:05 | 显示全部楼层
sunmoon1998, 谢谢,我去看看。
linky_fan, 关键是我的/etc/modprobe.conf 文件现在还没有起作用啊 不知道怎样才能起作用。

我安装了dhcpcd后,eth0是ok了,不过我有两块网卡,eth1不知道要怎么弄。
有了dhcpcd,启动脚本里的network服务应该可以停用了吧?

系统初始的PATH变量应该是在/etc/rc.d/init.d/functions里设置的
回复

使用道具 举报

 楼主| 发表于 2004-10-7 18:57:13 | 显示全部楼层
zhcon的问题我这样解决
先下载zhcon-0.2.3.tar.gz和
http://gentoo.linuxsir.org/download/gentoo/portage/app-i18n/zhcon/files/zhcon-0.2.3-gcc34.patch
http://gentoo.linuxsir.org/download/gentoo/portage/app-i18n/zhcon/files/zhcon-0.2.3-config.h.in.patch
两个补丁,放在同一目录下,然后用下面命令打补丁并编译安装:
tar -xvzf zhcon-0.2.3.tar.gz &&
cd zhcon-0.2.3 &&
patch -Np1 -i ../zhcon-0.2.3-config.h.in.patch &&
patch -Np1 -i ../zhcon-0.2.3-gcc34.patch &&
./configure && make && make install
回复

使用道具 举报

发表于 2004-10-7 18:58:10 | 显示全部楼层
用过depmod -a没有。
eth1的要在/etc/sysconfig/network-devices/ifconfig.eth1设置一下的,可以参考eth0的嘛
我在linuxsir上看到好像gcc 3.4版本下有满多软件装了会报错的。
回复

使用道具 举报

 楼主| 发表于 2004-10-7 19:03:30 | 显示全部楼层
[quote:7283b12009="tyfrlj"][quote:7283b12009="linky_fan"]用过depmod -a没有。
eth1的要在/etc/sysconfig/network-devices/ifconfig.eth1设置一下的,可以参考eth0的嘛
我在linuxsir上看到好像gcc 3.4版本下有满多软件装了会报错的。[/quote]

我是在参考eth0的配置,不过还没有搞定 [/quote]

搞定 其实网络配置脚本早已经ok了,就是网卡驱动在启动时没有自动加载,现在已经配置好了,lfs默认是/etc/sysconfig/modules这个文件加载驱动的
回复

使用道具 举报

发表于 2004-10-7 20:13:25 | 显示全部楼层
恭喜恭喜
        
回复

使用道具 举报

 楼主| 发表于 2004-10-7 23:56:45 | 显示全部楼层
现在基本系统已经差不多了,准备blfs了 其实已经安装了blfs的一部分包了,后面主要安装X
回复

使用道具 举报

发表于 2004-10-8 07:16:30 | 显示全部楼层
俺也是,俺也是,一起讨论吧。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-16 06:18 , Processed in 0.029822 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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