我用的是ubuntu11.10,编译android4.03
make
出现了这个错误,怎么解决啊
external/zlib/zutil.h:164: error: expected declaration specifiers or '...' before 'off_t'
external/zlib/zutil.h:165: error: expected declaration specifiers or '...' before 'off_t'
external/zlib/adler32.c:12: error: expected declaration specifiers or '...' before 'off_t'
external/zlib/adler32.c: In function 'adler32_combine_':
external/zlib/adler32.c:134: error: expected declaration specifiers before 'off_t'
external/zlib/adler32.c:131: warning: type of 'len2' defaults to 'int'
external/zlib/adler32.c:135: error: number of arguments doesn't match prototype
external/zlib/adler32.c:12: error: prototype declaration
external/zlib/adler32.c: In function 'adler32_combine':
external/zlib/adler32.c:158: error: expected declaration specifiers before 'off_t'
external/zlib/adler32.c:155: warning: type of 'len2' defaults to 'int'
external/zlib/adler32.c:159: error: number of arguments doesn't match prototype
external/zlib/zlib.h:1594: error: prototype declaration
external/zlib/adler32.c:160: error: too many arguments to function 'adler32_combine_'
external/zlib/adler32.c: In function 'adler32_combine64':
external/zlib/adler32.c:166: error: expected declaration specifiers before 'off_t'
external/zlib/adler32.c:163: warning: type of 'len2' defaults to 'int'
external/zlib/adler32.c:167: error: number of arguments doesn't match prototype
external/zlib/zutil.h:164: error: prototype declaration
external/zlib/adler32.c:168: error: too many arguments to function 'adler32_combine_'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/adler32.o] 错误
请各位赐教,很急啊,该怎样解决
我也遇到同样的问题,编译环境为ubuntu 11.10 64bit gcc 4.6.1.请问楼主问题解决了没有?
没有,我没搞4.03了,我编译了2.3,很正常,没遇到问题
@452615625: 是源码有问题,后来重新同步了一下4.0的源码就可以了。