LinuxSir.cn,穿越时空的Linuxsir!

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

6.0-testing-20041003已经完成,还有很多问题请大家帮忙

[复制链接]
发表于 2004-10-7 15:40:38 | 显示全部楼层 |阅读模式
6.0-testing-20041003已经完成,安装zhcon到make时出错,不知道是什么问题?

  1. root@MagicLinux:/sources/zhcon-0.2.3# make
  2. make  all-recursive
  3. make[1]: Entering directory `/sources/zhcon-0.2.3'
  4. Making all in src
  5. make[2]: Entering directory `/sources/zhcon-0.2.3/src'
  6. Making all in display
  7. make[3]: Entering directory `/sources/zhcon-0.2.3/src/display'
  8. source='fblinear24.cpp' object='fblinear24.o' libtool=no \
  9. depfile='.deps/fblinear24.Po' tmpdepfile='.deps/fblinear24.TPo' \
  10. depmode=gcc3 /bin/sh ../../depcomp \
  11. g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear24.o \
  12. `test -f fblinear24.cpp || echo './'`fblinear24.cpp
  13. fblinear24.cpp: In member function `virtual void FBLinear24:: DrawChar(int, int, int, int, CharBitMap*)':
  14. fblinear24.cpp:206: error: ISO C++ forbids cast to non-reference type used as lvalue
  15. fblinear24.cpp:210: error: ISO C++ forbids cast to non-reference type used as lvalue
  16. make[3]: *** [fblinear24.o] Error 1
  17. make[3]: Leaving directory `/sources/zhcon-0.2.3/src/display'
  18. make[2]: *** [all-recursive] Error 1
  19. make[2]: Leaving directory `/sources/zhcon-0.2.3/src'
  20. make[1]: *** [all-recursive] Error 1
  21. make[1]: Leaving directory `/sources/zhcon-0.2.3'
  22. make: *** [all] Error 2
  23. root@MagicLinux:/sources/zhcon-0.2.3#
复制代码
 楼主| 发表于 2004-10-7 15:52:17 | 显示全部楼层
内核模块在启动时如何自动加载?系统初始的PATH变量是在哪里设置的?

哪位兄弟指教一下
发表于 2004-10-7 18:15:26 | 显示全部楼层
加载内核模块的列表在/etc/sysconfig/modules文件里,由/etc/rc.d/init.d/modules脚本加载

PATH在/etc/profile里设
 楼主| 发表于 2004-10-7 18:32:03 | 显示全部楼层
系统初始的PATH变量应该是在/etc/rc.d/init.d/functions里设置的
 楼主| 发表于 2004-10-8 00:08:51 | 显示全部楼层
最初由 tyfrlj 发表
系统初始的PATH变量应该是在/etc/rc.d/init.d/functions里设置的


试了试,/etc/rc.d/init.d/functions好像没有起作用嘛(我没有启用该服务)
难道是bash默认就内置了PATH变量?
 楼主| 发表于 2004-10-10 12:00:59 | 显示全部楼层
不知道为什么/dev/下的设备点很少,我自己创建后才能使用光驱(hdc和hdd),但重启后/dev/目录又回复原样了,怎么回事情?
发表于 2004-10-10 12:10:07 | 显示全部楼层
好像是/etc/rc.d/init.d/udev,不确定,去看看吧
 楼主| 发表于 2004-10-10 23:57:31 | 显示全部楼层
LFS testing 是用 2.6.8.1 内核 + udev 的,可以自动在 /dev 下创建内核已经加载驱动模块的设备点。
但是很奇怪的是,我dmesg发现系统认出我的U盘在sda 并有 sda1分区,但是 /dev 下却没有自动创建 sd* ,光驱的驱动模块加载后,hdc、hdd 倒是有了
发表于 2004-10-13 00:13:49 | 显示全部楼层
如果还是不行,那么就/etc/sysconfig/createfile里边,加入相应内容。手动建立这个文件。

(一般来说,编译进kernel的,udev都会建立,modules的,也许就不一定了。。)
 楼主| 发表于 2004-10-15 21:10:25 | 显示全部楼层
原来是U盘的质量有问题,今天去电脑城换了一块,现在OK了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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