Daily Notes 1

为当前最终发行版之前的所有版本提供支持
回复
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
送出感谢: 0
接收感谢: 3 次
联系:

Daily Notes 1

#1

帖子 leal » 2006-05-12 19:07

1. SDL 1.2.9 与 gcc v4.0.0 20050519

编译SDL 1.2.9 正式版会出现如下错误:
[...snip...]

-I../../src/thread -MT SDL_blit_N.lo -MD -MP -MF .deps/SDL_blit_N.Tpo -c SDL_blit_N.c -fPIC -DPIC -o .libs/SDL_blit_N.o
../../src/hermes/HeadMMX.h:53: error: 'ConvertMMX' aliased to undefined symbol '_ConvertMMX'
../../src/hermes/HeadMMX.h:63: error: 'ConvertMMXpII32_24RGB888' aliased to undefined symbol '_ConvertMMXpII32_24RGB888'
../../src/hermes/HeadMMX.h:64: error: 'ConvertMMXpII32_16RGB565' aliased to undefined symbol '_ConvertMMXpII32_16RGB565'
../../src/hermes/HeadMMX.h:65: error: 'ConvertMMXpII32_16BGR565' aliased to undefined symbol '_ConvertMMXpII32_16BGR565'
../../src/hermes/HeadMMX.h:66: error: 'ConvertMMXpII32_16RGB555' aliased to undefined symbol '_ConvertMMXpII32_16RGB555'
../../src/hermes/HeadMMX.h:67: error: 'ConvertMMXpII32_16BGR555' aliased to undefined symbol '_ConvertMMXpII32_16BGR555'
../../src/hermes/HeadX86.h:82: error: 'Hermes_X86_CPU' aliased to undefined symbol '_Hermes_X86_CPU'
../../src/hermes/HeadX86.h:84: error: 'ConvertX86' aliased to undefined symbol '_ConvertX86'
../../src/hermes/HeadX86.h:93: error: 'ConvertX86p32_32BGR888' aliased to undefined symbol '_ConvertX86p32_32BGR888'
../../src/hermes/HeadX86.h:94: error: 'ConvertX86p32_32RGBA888' aliased to undefined symbol '_ConvertX86p32_32RGBA888'
../../src/hermes/HeadX86.h:95: error: 'ConvertX86p32_32BGRA888' aliased to undefined symbol '_ConvertX86p32_32BGRA888'
../../src/hermes/HeadX86.h:96: error: 'ConvertX86p32_24RGB888' aliased to undefined symbol '_ConvertX86p32_24RGB888'
../../src/hermes/HeadX86.h:97: error: 'ConvertX86p32_24BGR888' aliased to undefined symbol '_ConvertX86p32_24BGR888'
../../src/hermes/HeadX86.h:98: error: 'ConvertX86p32_16RGB565' aliased to undefined symbol '_ConvertX86p32_16RGB565'
../../src/hermes/HeadX86.h:99: error: 'ConvertX86p32_16BGR565' aliased to undefined symbol '_ConvertX86p32_16BGR565'
../../src/hermes/HeadX86.h:100: error: 'ConvertX86p32_16RGB555' aliased to undefined symbol '_ConvertX86p32_16RGB555'
../../src/hermes/HeadX86.h:101: error: 'ConvertX86p32_16BGR555' aliased to undefined symbol '_ConvertX86p32_16BGR555'
../../src/hermes/HeadX86.h:102: error: 'ConvertX86p32_8RGB332' aliased to undefined symbol '_ConvertX86p32_8RGB332'
../../src/hermes/HeadX86.h:112: error: 'ConvertX86p16_16BGR565' aliased to undefined symbol '_ConvertX86p16_16BGR565'
../../src/hermes/HeadX86.h:113: error: 'ConvertX86p16_16RGB555' aliased to undefined symbol '_ConvertX86p16_16RGB555'
../../src/hermes/HeadX86.h:114: error: 'ConvertX86p16_16BGR555' aliased to undefined symbol '_ConvertX86p16_16BGR555'
../../src/hermes/HeadX86.h:115: error: 'ConvertX86p16_8RGB332' aliased to undefined symbol '_ConvertX86p16_8RGB332'
make[3]: *** [SDL_blit_N.lo] 错误 1
make[3]: Leaving directory `/home/leal/src/SDL-1.2.9/src/video'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/leal/src/SDL-1.2.9/src/video'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/leal/src/SDL-1.2.9/src'
make: *** [all-recursive] 错误 1


通过svn取得最新版本的 SDL 源码或下载 snapshot:

svn checkout svn://libsdl.org/trunk/SDL


2. Linux-2.6.11-1 内核与 gcc v4.0.0 20050519

会有四五个错误,根据出错提示进行搜索,然后修改相应的代码。比如 链接1 链接2  链接3

3. If 当前根分区使用 ext3 文件系统,则编译内核时,必须将 ext3 文件系统模块以 builtin 方式编译进内核?


4. FC4 和 自己编译的内核

如果当前使用的是 FC4 ,然后自己编译了一份内核,启动中途却出错,提示如下:

Enforcing mode requested but no policy loaded. Halting now.
Kernel panic: attempted to kill init!

这是 SELinux 在作怪,参见 链接,相关部分内容摘抄如下:

有關SELINUX-若您是使用Fedora Core 2或是之後的版本,建議不要開啟selinux。Fedora Core 2預設是disable的,但是Fedora Core 3 (含)以後的版本,預設是開啟的。如果您在Fedora Core 3或是之後的版本常常莫名其妙地遇到"Permission denied"的問題,或是Client出現"Enforcing mode requested, but no policy loaded.Halting now. Kernel pan ic not syncing. Attempted to kill init.",建議關閉selinux,也就是在這台server的/etc/sysconfig/selinux中,設定SELINUX= disabled,然後重新開機即可。

第二种解决方法是在 Grub 的 kernel /boot/... 一行最后加上 enforcing=0 (未测试)。
用心×恒 | 豆瓣 | 门户 | Blog
回复

回到 “老旧版本支持”