[i2c] i2c complier error

Jean Delvare khali at linux-fr.org
Thu Jul 12 19:41:36 CEST 2007


On Tue, 10 Jul 2007 18:00:45 +0800, ouyang wrote:
> i2c version: 2.10.2
> 
> /lib/modules/2.4.21-47.ELsmp/build/include/asm/uaccess.h:162: syntax error before numeric constant
> /lib/modules/2.4.21-47.ELsmp/build/include/asm/uaccess.h:162: `strlen_fromuser_size_R_ver_str' declared as function returning a function
> /lib/modules/2.4.21-47.ELsmp/build/include/asm/uaccess.h:166: invalid suffix on integer constant
> /lib/modules/2.4.21-47.ELsmp/build/include/asm/uaccess.h:166: syntax error before numeric constant
> /lib/modules/2.4.21-47.ELsmp/build/include/asm/uaccess.h:166: `zero_user_size_R_ver_str' declared as function returning a function
> kernel/i2c-core.c: In function `i2c_add_adapter':
> kernel/i2c-core.c:100: invalid suffix on integer constant
> kernel/i2c-core.c:100: warning: null format string
> kernel/i2c-core.c:100: warning: null format string
> kernel/i2c-core.c:102: called object is not a function
> kernel/i2c-core.c:129: invalid suffix on integer constant
> kernel/i2c-core.c:129: warning: null format string
> kernel/i2c-core.c:129: warning: null format string
> kernel/i2c-core.c:129: called object is not a function
> kernel/i2c-core.c: In function `i2c_del_adapter':
> kernel/i2c-core.c:145: invalid suffix on integer constant
> kernel/i2c-core.c:145: warning: null format string
> kernel/i2c-core.c:145: warning: null format string
> kernel/i2c-core.c:146: called object is not a function
> kernel/i2c-core.c:159: invalid suffix on integer constant
> kernel/i2c-core.c:159: warning: null format string
> kernel/i2c-core.c:159: warning: null format string
> kernel/i2c-core.c:161: called object is not a function
> kernel/i2c-core.c:175: invalid suffix on integer constant
> kernel/i2c-core.c:175: warning: null format string
> kernel/i2c-core.c:175: warning: null format string
> kernel/i2c-core.c:178: called object is not a function
> kernel/i2c-core.c:188: invalid suffix on integer constant
> kernel/i2c-core.c:188: warning: null format string
> 
> I try to complier old version,but error yet,please help!

I just tried compiling i2c-2.10.2 against a vanilla 2.4.21 kernel tree,
using gcc 3.2.3, and it worked fine. Your kernel headers appear to be
broken or incompatible with your compiler. If you look closely, the
errors start even before i2c-core.c starts being compiled! Either way,
this seems to be a Red Hat specific problem, so if you need more help,
better post to Red Hat lists/forums.

-- 
Jean Delvare



More information about the i2c mailing list