|
在编译一个叫lipe的软件时,遇到错误:
common.c:30: error: expected declaration specifiers or '...' before '_llseek'
common.c:30: error: expected declaration specifiers or '...' before 'fd'
common.c:30: error: expected declaration specifiers or '...' before 'hi'
common.c:30: error: expected declaration specifiers or '...' before 'lo'
common.c:30: error: expected declaration specifiers or '...' before 'res'
common.c:30: error: expected declaration specifiers or '...' before 'wh'
common.c:34: warning: return type defaults to 'int'
common.c: In function '_syscall5':
common.c:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:128: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:134: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:171: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:192: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:210: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:228: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
common.c:30: error: parameter name omitted
common.c:30: error: parameter name omitted
common.c:30: error: parameter name omitted
common.c:30: error: parameter name omitted
common.c:30: error: parameter name omitted
common.c:30: error: parameter name omitted
common.c的第30行是:
extern _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh)
是不是现在不能这样做系统调用了,如何修改呢? |
|