我正在尝试安装本书附带的代码:https ://sites.google.com/site/cinterfacesimplementations/
按照作者在这里给出的说明:http: //cii.googlecode.com/svn/trunk/install.html
我的电脑在 32 位 i686 架构上安装了 ubuntu 11.04。按照作者对 32 位 linux 的说明进行操作,我尝试:
make CC='cc -DMAXALIGN=4' AS='cc -c -x assembler-with-cpp -traditional'
其中 cc 是 gcc 版本 4.5.2,它给出以下警告和错误:
makefile:138: warning: overriding commands for target `maxalign'
makefile:135: warning: ignoring old cc -DMAXALIGN=4 -g -Iinclude -c -o ap.o src/ap.c
In file included from src/thread.c:100:0:
/usr/include/i386-linux-gnu/asm/sigcontext.h:56:8: error: redefinition of ‘struct _fpreg’
/usr/include/bits/sigcontext.h:28:8: note: originally defined here
/usr/include/i386-linux-gnu/asm/sigcontext.h:61:8: error: redefinition of ‘struct _fpxreg’
/usr/include/bits/sigcontext.h:34:8: note: originally defined here
/usr/include/i386-linux-gnu/asm/sigcontext.h:67:8: error: redefinition of ‘struct _xmmreg’
/usr/include/bits/sigcontext.h:41:8: note: originally defined here
/usr/include/i386-linux-gnu/asm/sigcontext.h:71:8: error: redefinition of ‘struct _fpstate’
/usr/include/bits/sigcontext.h:50:8: note: originally defined here
/usr/include/i386-linux-gnu/asm/sigcontext.h:104:8: error: redefinition of ‘struct sigcontext’
/usr/include/bits/sigcontext.h:81:8: note: originally defined here
src/thread.c: In function ‘interrupt’:
src/thread.c:108:2: warning: ‘sigsetmask’ is deprecated (declared at /usr/include/signal.h:199)
make: *** [thread.o] Error 1
不知道在这里做什么。同样令人费解的是/usr/include/i386-linux-gnu。因为如果我这样做
uname -m
它打印 i686 而不是 i363。有什么想法吗?
干杯,吉姆