LinuxSir.cn,穿越时空的Linuxsir!

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

安装zhcon出错,相关的中文程序还有哪些比较好用?

[复制链接]
发表于 2005-5-12 12:56:17 | 显示全部楼层 |阅读模式
emerge zhcon后,错误信息是这样的;
In file included from /usr/include/linux/wait.h:21,
                 from /usr/include/linux/keyboard.h:14,
                 from inputmanager.cpp:517:
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:222: error: expected `,' or `...' before "new"
/usr/include/linux/list.h: In function `void list_replace_rcu(list_head*, list_head*)':
/usr/include/linux/list.h:223: error: expected identifier before '->' token
/usr/include/linux/list.h:223: error: expected `;' before '->' token
/usr/include/linux/list.h:224: error: expected identifier before '->' token
/usr/include/linux/list.h:224: error: expected `;' before '->' token
/usr/include/linux/list.h:226: error: expected identifier before '->' token
/usr/include/linux/list.h:226: error: expected `;' before '->' token
/usr/include/linux/list.h:227: error: expected identifier before '->' token
/usr/include/linux/list.h:227: error: expected `;' before '->' token
In file included from /usr/include/linux/keyboard.h:14,
                 from inputmanager.cpp:517:
/usr/include/linux/wait.h: In function `int wait_on_bit(void*, int, int (*)(void*), unsigned int)':
/usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const volatile long unsigned int*'
/usr/include/linux/wait.h:376: error:   initializing argument 2 of `int constant_test_bit(int, const volatile long unsigned int*)'
/usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const volatile long unsigned int*'
/usr/include/linux/wait.h:376: error:   initializing argument 2 of `int variable_test_bit(int, const volatile long unsigned int*)'
/usr/include/linux/wait.h: In function `int wait_on_bit_lock(void*, int, int (*)(void*), unsigned int)':
/usr/include/linux/wait.h:400: error: invalid conversion from `void*' to `volatile long unsigned int*'
/usr/include/linux/wait.h:400: error:   initializing argument 2 of `int test_and_set_bit(int, volatile long unsigned int*)'
make[3]: *** [inputmanager.o] 错误 1
make[3]: *** 正在等待未完成的任务....
make[3]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3'
make: *** [all] 错误 2

!!! ERROR: app-i18n/zhcon-0.2.3-r1 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


不知道还有哪些在控制台下用的中文程序,最好能不影响fb的.
发表于 2005-5-12 14:21:33 | 显示全部楼层
我emerge好像很正常的
回复 支持 反对

使用道具 举报

发表于 2005-5-12 15:49:36 | 显示全部楼层
我也有同样的问题,有人说是gcc的问题。安装jmcce 又报autoconf版本问题。
回复 支持 反对

使用道具 举报

发表于 2005-5-14 12:43:06 | 显示全部楼层
gcc版本?
回复 支持 反对

使用道具 举报

发表于 2005-5-14 17:51:36 | 显示全部楼层
我用gcc3.4.3也是這個錯誤~
回复 支持 反对

使用道具 举报

发表于 2005-5-14 18:10:01 | 显示全部楼层
gcc4编译时也通不过
回复 支持 反对

使用道具 举报

发表于 2005-8-16 18:27:45 | 显示全部楼层
我只遇到了第二个错误
改一下/usr/include/linux/wait.h就可以
--- /usr/include/linux/wait.h   2005-08-16 17:51:20.000000000 +0800
+++ /tmp/wait.h 2005-08-16 17:50:57.000000000 +0800
@@ -373,7 +373,7 @@
static inline int wait_on_bit(void *word, int bit,
                                int (*action)(void *), unsigned mode)
{
-       if (!test_bit(bit, word))
+       if (!test_bit(bit, (const volatile long unsigned int *)word))
                return 0;
        return out_of_line_wait_on_bit(word, bit, action, mode);
}
@@ -397,7 +397,7 @@
static inline int wait_on_bit_lock(void *word, int bit,
                                int (*action)(void *), unsigned mode)
{
-       if (!test_and_set_bit(bit, word))
+       if (!test_and_set_bit(bit, (volatile long unsigned int *)word))
                return 0;
        return out_of_line_wait_on_bit_lock(word, bit, action, mode);
}
回复 支持 反对

使用道具 举报

发表于 2005-8-16 20:20:35 | 显示全部楼层
试试换个linux-headers再装,装后再换回来就是了
回复 支持 反对

使用道具 举报

发表于 2005-8-22 01:24:51 | 显示全部楼层
Post by zhllg
我只遇到了第二个错误
改一下/usr/include/linux/wait.h就可以
--- /usr/include/linux/wait.h   2005-08-16 17:51:20.000000000 +0800
+++ /tmp/wait.h 2005-08-16 17:50:57.000000000 +0800
@@ -373,7 +373,7 @@
static inline int wait_on_bit(void *word, int bit,
                                int (*action)(void *), unsigned mode)
{
-       if (!test_bit(bit, word))
+       if (!test_bit(bit, (const volatile long unsigned int *)word))
                return 0;
        return out_of_line_wait_on_bit(word, bit, action, mode);
}
@@ -397,7 +397,7 @@
static inline int wait_on_bit_lock(void *word, int bit,
                                int (*action)(void *), unsigned mode)
{
-       if (!test_and_set_bit(bit, word))
+       if (!test_and_set_bit(bit, (volatile long unsigned int *)word))
                return 0;
        return out_of_line_wait_on_bit_lock(word, bit, action, mode);
}


还是不行
  1. inputmanager.cpp: In member function `bool InputManager::LoadImm(ImmInfo&)':
  2. inputmanager.cpp:398: warning: unused variable `bool r'
  3. In file included from /usr/include/linux/keyboard.h:14,
  4.                  from inputmanager.cpp:517:
  5. /usr/include/linux/wait.h: In function `int wait_on_bit(void*, int, int
  6.    (*)(void*), unsigned int)':
  7. /usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const
  8.    volatile long unsigned int*'
  9. /usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const
  10.    volatile long unsigned int*'
  11. /usr/include/linux/wait.h: In function `int wait_on_bit_lock(void*, int, int
  12.    (*)(void*), unsigned int)':
  13. /usr/include/linux/wait.h:400: error: invalid conversion from `void*' to `
  14.    volatile long unsigned int*'
  15. make[3]: *** [inputmanager.o] Error 1
  16. make[3]: *** Waiting for unfinished jobs....
  17. make[3]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3/src                                                                                             '
  18. make[2]: *** [all-recursive] Error 1
  19. make[2]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3/src                                                                                             '
  20. make[1]: *** [all-recursive] Error 1
  21. make[1]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3'
  22. make: *** [all] Error 2

  23. !!! ERROR: app-i18n/zhcon-0.2.3-r1 failed.
  24. !!! Function src_compile, Line 34, Exitcode 2
  25. !!! make failed
  26. !!! If you need support, post the topmost build error, NOT this status message.
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-8-22 01:25:33 | 显示全部楼层
Post by zxb
试试换个linux-headers再装,装后再换回来就是了

请问linux-headers怎么换啊?降级安装?
回复 支持 反对

使用道具 举报

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

本版积分规则

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