|
|
发表于 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);
}
还是不行
- inputmanager.cpp: In member function `bool InputManager::LoadImm(ImmInfo&)':
- inputmanager.cpp:398: warning: unused variable `bool r'
- 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: invalid conversion from `void*' to `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*'
- make[3]: *** [inputmanager.o] Error 1
- make[3]: *** Waiting for unfinished jobs....
- make[3]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3/src '
- make[2]: *** [all-recursive] Error 1
- make[2]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3/src '
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/var/tmp/portage/zhcon-0.2.3-r1/work/zhcon-0.2.3'
- make: *** [all] Error 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.
复制代码 |
|