今天想在3.4.1的编译器上编译一个mkdosfs工具,但是从网上下载源码之后出现一个这样的问题:
[root@localhost dosfstools-2.11]# make
make -C mkdosfs all
make[1]: Entering directory `/root/dosfstools-2.11/mkdosfs'
arm-linux-gcc -O2 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -Wall -c mkdosfs.c -o mkdosfs.o
In file included from mkdosfs.c:55:
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/fd.h:342: error: variable or field `__user' declared void
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/fd.h:342: error: parse error before '*' token
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/fd.h:360: error: parse error before '}' token
make[1]: *** [mkdosfs.o] 错误 1
make[1]: Leaving directory `/root/dosfstools-2.11/mkdosfs'
make: *** [all] 错误 2
对于这个问题感到有些莫名其妙,感觉是编译器不认识__user修饰。果断去掉。
虽然用起来会有点小问题,但是不影响
阅读(3385) | 评论(0) | 转发(0) |