Chinaunix首页 | 论坛 | 博客
  • 博客访问: 63445
  • 博文数量: 16
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 140
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-29 08:51
文章分类

全部博文(16)

文章存档

2011年(8)

2010年(8)

我的朋友

分类: LINUX

2010-12-28 11:30:23

在编译dosfstools-3.0.11时出现如下报错信息:

arm-linux-gcc -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g    -c -o dosfsck.o src/dosfsck.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-linux-gcc -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g    -c -o boot.o src/boot.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-linux-gcc -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g    -c -o check.o src/check.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
src/check.c: In function `path_name':
src/check.c:202: `PATH_MAX' undeclared (first use in this function)
src/check.c:202: (Each undeclared identifier is reported only once
src/check.c:202: for each function it appears in.)
src/check.c:202: size of array `path' has non-integer type
src/check.c: In function `lfn_remove':
src/check.c:316: warning: unused variable `i'
src/check.c: In function `auto_rename':
src/check.c:372: warning: int format, long int arg (arg 3)
src/check.c: In function `check_file':
src/check.c:595: warning: long unsigned int format, different type arg (arg 5)
make: *** [check.o] Error 1

在makefile中添加如下一行问题解决:
...
PATHFLAGS = -L/usr/local/arm/2.95.3/arm-linux/lib -I/usr/local/arm/2.95.3/arm-linux/include
CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS) $(PATHFLAGS)
...

另在编译dosfstools for UTU2440时出现该问题:
In file included from src/io.c:42:
/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: *** [io.o] 错误
解决办法:修改/usr/local/arm/3.4.1/arm-linux/sys-include/linux中的fd.h
添加#include

阅读(982) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~