LinuxSir.cn,穿越时空的Linuxsir!

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

2006中装zhcon

[复制链接]
发表于 2006-3-21 13:01:31 | 显示全部楼层 |阅读模式
  1. In file included from /usr/include/linux/keyboard.h:14,
  2.                  from inputmanager.cpp:517:
  3. /usr/include/linux/wait.h: In function `int wait_on_bit(void*, int, int (*)(void*), unsigned int)':
  4. /usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const volatile long unsigned int*'
  5. /usr/include/linux/wait.h:376: error:   initializing argument 2 of `int constant_test_bit(int, const volatile long unsigned int*)'
  6. /usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const volatile long unsigned int*'
  7. /usr/include/linux/wait.h:376: error:   initializing argument 2 of `int variable_test_bit(int, const volatile long unsigned int*)'
  8. /usr/include/linux/wait.h: In function `int wait_on_bit_lock(void*, int, int (*)(void*), unsigned int)':
  9. /usr/include/linux/wait.h:400: error: invalid conversion from `void*' to `volatile long unsigned int*'
  10. /usr/include/linux/wait.h:400: error:   initializing argument 2 of `int test_and_set_bit(int, volatile long unsigned int*)'
  11. make[3]: *** [inputmanager.o] Error 1
复制代码
发表于 2006-3-21 16:10:19 | 显示全部楼层
cd /usr/include
mv linux linux.orig
mv asm asm.orig
ln -s /usr/src/linux/include/linux
ln -s /usr/src/linux/include/asm
回复 支持 反对

使用道具 举报

发表于 2006-4-16 20:47:39 | 显示全部楼层
楼上那招不行,也会出错,只是地方不一样而已……
回复 支持 反对

使用道具 举报

发表于 2006-4-16 21:16:41 | 显示全部楼层
在bugs.gentoo.org上有一个补丁.
但我不知道怎么用.
回复 支持 反对

使用道具 举报

发表于 2006-4-16 21:52:37 | 显示全部楼层
下载我附件里的文件,解开后为zhcon.diff
假设zhcon.diff放在/root中
#cd /usr/include/linux
#patch < /root/zhcon.diff
然后再emerge zhcon就没有问题了。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-4-16 22:45:55 | 显示全部楼层
missing header for unified diff at line 3 of patch
patching file wait.h
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line
回复 支持 反对

使用道具 举报

发表于 2006-4-16 23:10:53 | 显示全部楼层
Post by Freesnake
missing header for unified diff at line 3 of patch
patching file wait.h
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line


在我这里运行很好啊,我也不明白这是什么原因。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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