在执行到make时,出现了以下错误:
linux-lewph:/home/lewph/Projects/System/build_rootfs/build_jffs2/mtd-utils-1.2.0 # make
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o ftl_format.o ftl_format.c -g -Wp,-MD,./.ftl_format.c.dep
gcc -O2 -g -Wall -g -o ftl_format ftl_format.o
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o flash_erase.o flash_erase.c -g -Wp,-MD,./.flash_erase.c.dep
gcc -O2 -g -Wall -g -o flash_erase flash_erase.o
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o crc32.o crc32.c -g -Wp,-MD,./.crc32.c.dep
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o flash_eraseall.o flash_eraseall.c -g -Wp,-MD,./.flash_eraseall.c.dep
gcc -o flash_eraseall crc32.o flash_eraseall.o
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o nanddump.o nanddump.c -g -Wp,-MD,./.nanddump.c.dep
gcc -O2 -g -Wall -g -o nanddump nanddump.o
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o doc_loadbios.o doc_loadbios.c -g -Wp,-MD,./.doc_loadbios.c.dep
gcc -O2 -g -Wall -g -o doc_loadbios doc_loadbios.o
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o ftl_check.o ftl_check.c -g -Wp,-MD,./.ftl_check.c.dep
gcc -O2 -g -Wall -g -o ftl_check ftl_check.o
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o compr_rtime.o compr_rtime.c -g -Wp,-MD,./.compr_rtime.c.dep
mkdir -p .
gcc -I./include -O2 -g -Wall -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,./.mkfs.jffs2.c.dep
mkfs.jffs2.c:69:21: error: sys/acl.h: No such file or directory
mkfs.jffs2.c: In function ‘formalize_posix_acl’:
mkfs.jffs2.c:1118: error: ‘ACL_USER_OBJ’ undeclared (first use in this function)
mkfs.jffs2.c:1118: error: (Each undeclared identifier is reported only once
mkfs.jffs2.c:1118: error: for each function it appears in.)
mkfs.jffs2.c:1119: error: ‘ACL_GROUP_OBJ’ undeclared (first use in this function)
mkfs.jffs2.c:1120: error: ‘ACL_MASK’ undeclared (first use in this function)
mkfs.jffs2.c:1121: error: ‘ACL_OTHER’ undeclared (first use in this function)
mkfs.jffs2.c:1127: error: ‘ACL_USER’ undeclared (first use in this function)
mkfs.jffs2.c:1128: error: ‘ACL_GROUP’ undeclared (first use in this function)
make: *** [mkfs.jffs2.o] Error 1
rm doc_loadbios.o ftl_check.o flash_erase.o ftl_format.o nanddump.o
从错误上可以看出:
1.找不到sys/acl.h:mkfs.jffs2.c:69:21: error: sys/acl.h: No such file or directory
解决方法:安装这个包,zypper install libacl-dev
2.如果还出现这样的问题:compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or director
解决方法:那是因为没有安装lzo-2.03.tar.gz,可以下载这个源码,打上,或者zypper install liblzo-dev;
3,如果还出现这样的问题:uuid/uuid.h: No such file or directory
解决方法也一样:打上对应的包,zypper install uuid-dev
阅读(1700) | 评论(0) | 转发(0) |