- 论坛徽章:
- 0
|
一模一样的程序,一模一样的命令,师兄说他那里没问题
结果在我机器上就会出现下面的错误
#gcc -g -D_KERNEL -DSVR4 -DSOL2 -DOEBUG -O2 -c flkm.c
In file included from /usr/include/sys/reg.h:13,
from /usr/include/sys/pcb.h:11,
from /usr/include/sys/klwp.h:16,
from /usr/include/sys/thread.h:13,
from /usr/include/sys/copyops.h:12,
from /usr/include/sys/watchpoint.h:13,
from /usr/include/vm/as.h:37,
from /usr/include/sys/devops.h:16,
from /usr/include/sys/sunddi.h:18,
from flkm.c:19:
/usr/include/ia32/sys/reg.h:300: error: parse error before "upad128_t"
/usr/include/ia32/sys/reg.h:302: error: parse error before '}' token
/usr/include/ia32/sys/reg.h:309: error: field `kfpu_fx' has incomplete type
/usr/include/ia32/sys/reg.h:331: error: parse error before "upad128_t"
/usr/include/ia32/sys/reg.h:338: error: parse error before '}' token
/usr/include/ia32/sys/reg.h:339: error: parse error before '}' token
/usr/include/ia32/sys/reg.h:376: error: parse error before "fpregset_t"
In file included from /usr/include/sys/klwp.h:19,
from /usr/include/sys/thread.h:13,
from /usr/include/sys/copyops.h:12,
from /usr/include/sys/watchpoint.h:13,
from /usr/include/vm/as.h:37,
from /usr/include/sys/devops.h:16,
from /usr/include/sys/sunddi.h:18,
from flkm.c:19:
/usr/include/sys/ucontext.h:69: error: parse error before "mcontext_t"
/usr/include/sys/ucontext.h:71: error: parse error before '}' token |
|