[General Questions and Answers] abhishek1988:
Hey guys

I am getting a lot of errors while compiling AOSP . I have not changed anything , just compiling the master branch which i downloaded before

4.3 was released few weeks back and i am getting an error while doing make -j8. Following are the s/w versions i am using followed by the errors i keep getting in terminal.

Development machine :-

ubuntu 10.04 64 bit

Development Environment :-

JAVA Version --> jdk 1.6.0_21

GCC Version --> gcc4.4.3

Python Version --> Python 2.6.5

Git Version --> Git 1.8.2.3

Error Trace :-

:583: error: 'gz_state' has no member named 'have'

external/zlib/gzread.c:583: error: 'gz_state' has no member named 'have'

external/zlib/gzread.c:584: warning: implicit declaration of function 'memchr'

external/zlib/gzread.c:584: warning: incompatible implicit declaration of built-in function 'memchr'

external/zlib/gzread.c:584: error: 'gz_state' has no member named 'next'

external/zlib/gzread.c:586: error: 'gz_state' has no member named 'next'

external/zlib/gzread.c:589: warning: incompatible implicit declaration of built-in function 'memcpy'

external/zlib/gzread.c:589: error: 'gz_state' has no member named 'next'

external/zlib/gzread.c:590: error: 'gz_state' has no member named 'have'

external/zlib/gzread.c:591: error: 'gz_state' has no member named 'next'

external/zlib/gzread.c:592: error: 'gz_state' has no member named 'pos'

external/zlib/gzread.c: In function 'gzdirect':

external/zlib/gzread.c:619: error: 'gz_state' has no member named 'how'

external/zlib/gzread.c:619: error: 'gz_state' has no member named 'have'

external/zlib/gzread.c:623: error: 'gz_state' has no member named 'direct'

external/zlib/crc32.c: In function 'crc32_combine_':

external/zlib/crc32.c:375: error: expected declaration specifiers before 'off_t'

external/zlib/gzwrite.c:157: error: 'gz_state' has no member named 'strm'

external/zlib/gzlib.c:509: warning: incompatible implicit declaration of built-in function 'malloc'

external/zlib/crc32.c:372: warning: type of 'len2' defaults to 'int'

external/zlib/gzlib.c:509: warning: incompatible implicit declaration of built-in function 'strlen'

external/zlib/crc32.c:376: error: number of arguments doesn't match prototype

external/zlib/crc32.c:71: error: prototype declaration

external/zlib/gzwrite.c:160: error: 'gz_state' has no member named 'err'

external/zlib/gzlib.c:510: error: 'gz_state' has no member named 'err'

external/zlib/gzlib.c:511: error: 'gz_state' has no member named 'msg'

external/zlib/gzlib.c:514: warning: incompatible implicit declaration of built-in function 'strcpy'external/zlib/gzwrite.c:175: error: 'gz_state' has no member named 'size'

external/zlib/gzlib.c:514: error: 'gz_state' has no member named 'msg'

external/zlib/gzlib.c:515: warning: implicit declaration of function 'strcat'external/zlib/gzwrite.c:179: error: 'gz_state' has no member named 'seek'

external/zlib/gzlib.c:515: warning: incompatible implicit declaration of built-in function 'strcat'external/zlib/gzwrite.c:180: error: 'gz_state' has no member named 'seek'

external/zlib/gzlib.c:515: error: 'gz_state' has no member named 'msg'

external/zlib/gzwrite.c:181: error: 'gz_state' has no member named 'skip'

external/zlib/gzwrite.c:181: error: too many arguments to function 'gz_zero'

external/zlib/gzlib.c:516: error: 'gz_state' has no member named 'msg'

external/zlib/gzwrite.c:186: error: 'gz_state' has no member named 'size'

external/zlib/gzwrite.c:189: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:190: error: 'z_stream' has no member named 'next_in'

external/zlib/gzwrite.c:190: error: 'gz_state' has no member named 'in'

external/zlib/gzwrite.c:191: error: 'gz_state' has no member named 'size'

external/zlib/gzwrite.c:191: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:194: warning: implicit declaration of function 'memcpy'

external/zlib/gzwrite.c:194: warning: incompatible implicit declaration of built-in function 'memcpy'

external/zlib/gzwrite.c:194: error: 'z_stream' has no member named 'next_in'

external/zlib/gzwrite.c:194: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:195: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:196: error: 'gz_state' has no member named 'pos'

external/zlib/crc32.c: In function 'crc32_combine':

external/zlib/crc32.c:431: error: expected declaration specifiers before 'off_t'

external/zlib/crc32.c:428: warning: type of 'len2' defaults to 'int'

external/zlib/crc32.c:432: error: number of arguments doesn't match prototype

external/zlib/zlib.h:1595: error: prototype declaration

external/zlib/crc32.c:433: error: too many arguments to function 'crc32_combine_'

external/zlib/gzwrite.c:205: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:209: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:210: error: 'z_stream' has no member named 'next_in'

external/zlib/gzwrite.c:211: error: 'gz_state' has no member named 'pos'external/zlib/crc32.c: In function 'crc32_combine64':

external/zlib/crc32.c:439: error: expected declaration specifiers before 'off_t'

external/zlib/crc32.c:436: warning: type of 'len2' defaults to 'int'

external/zlib/crc32.c:440: error: number of arguments doesn't match prototype

external/zlib/zutil.h:165: error: prototype declaration

external/zlib/crc32.c:441: error: too many arguments to function 'crc32_combine_'

external/zlib/gzwrite.c: In function 'gzputc':

external/zlib/gzwrite.c:233: error: 'gz_state' has no member named 'strm'

external/zlib/gzwrite.c:236: error: 'gz_state' has no member named 'err'

external/zlib/gzwrite.c:240: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:241: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:242: error: 'gz_state' has no member named 'skip'

external/zlib/gzwrite.c:242: error: too many arguments to function 'gz_zero'

external/zlib/gzwrite.c:248: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:248: error: 'gz_state' has no member named 'size'

external/zlib/gzwrite.c:249: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:250: error: 'z_stream' has no member named 'next_in'

external/zlib/gzwrite.c:250: error: 'gz_state' has no member named 'in'

external/zlib/gzwrite.c:251: error: 'z_stream' has no member named 'next_in'

external/zlib/gzwrite.c:251: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:252: error: 'gz_state' has no member named 'pos'

external/zlib/gzwrite.c: In function 'gzputs':

external/zlib/gzwrite.c:272: warning: implicit declaration of function 'strlen'

external/zlib/gzwrite.c:272: warning: incompatible implicit declaration of built-in function 'strlen'

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/gzlib.o] Error 1

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/crc32.o] Error 1

external/zlib/gzread.c: In function 'gzclose_r':

external/zlib/gzread.c:643: error: 'gz_state' has no member named 'size'

external/zlib/gzread.c:644: error: 'gz_state' has no member named 'strm'

external/zlib/gzread.c:645: warning: incompatible implicit declaration of built-in function 'free'

external/zlib/gzread.c:645: error: 'gz_state' has no member named 'out'

external/zlib/gzread.c:646: error: 'gz_state' has no member named 'in'

external/zlib/gzread.c:649: warning: incompatible implicit declaration of built-in function 'free'

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/gzread.o] Error 1

external/zlib/gzwrite.c: In function 'gzprintf':

external/zlib/gzwrite.c:292: error: 'gz_state' has no member named 'strm'

external/zlib/gzwrite.c:295: error: 'gz_state' has no member named 'err'

external/zlib/gzwrite.c:299: error: 'gz_state' has no member named 'size'

external/zlib/gzwrite.c:303: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:304: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:305: error: 'gz_state' has no member named 'skip'

external/zlib/gzwrite.c:305: error: too many arguments to function 'gz_zero'

external/zlib/gzwrite.c:310: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:314: error: 'gz_state' has no member named 'size'

external/zlib/gzwrite.c:315: error: 'gz_state' has no member named 'in'

external/zlib/gzwrite.c:333: warning: implicit declaration of function 'vsnprintf'

external/zlib/gzwrite.c:333: error: 'gz_state' has no member named 'in'

external/zlib/gzwrite.c:339: error: 'gz_state' has no member named 'in'

external/zlib/gzwrite.c:343: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:344: error: 'z_stream' has no member named 'next_in'

external/zlib/gzwrite.c:344: error: 'gz_state' has no member named 'in'

external/zlib/gzwrite.c:345: error: 'gz_state' has no member named 'pos'

external/zlib/gzwrite.c: In function 'gzflush':

external/zlib/gzwrite.c:438: error: 'gz_state' has no member named 'err'

external/zlib/gzwrite.c:446: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:447: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:448: error: 'gz_state' has no member named 'skip'

external/zlib/gzwrite.c:448: error: too many arguments to function 'gz_zero'

external/zlib/gzwrite.c:454: error: 'gz_state' has no member named 'err'

external/zlib/gzwrite.c: In function 'gzsetparams':

external/zlib/gzwrite.c:470: error: 'gz_state' has no member named 'strm'

external/zlib/gzwrite.c:473: error: 'gz_state' has no member named 'err'

external/zlib/gzwrite.c:477: error: 'gz_state' has no member named 'level'

external/zlib/gzwrite.c:477: error: 'gz_state' has no member named 'strategy'

external/zlib/gzwrite.c:481: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:482: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:483: error: 'gz_state' has no member named 'skip'

external/zlib/gzwrite.c:483: error: too many arguments to function 'gz_zero'

external/zlib/gzwrite.c:488: error: 'gz_state' has no member named 'size'

external/zlib/gzwrite.c:490: error: 'z_stream' has no member named 'avail_in'

external/zlib/gzwrite.c:491: error: 'gz_state' has no member named 'err'

external/zlib/gzwrite.c:494: error: 'gz_state' has no member named 'level'

external/zlib/gzwrite.c:495: error: 'gz_state' has no member named 'strategy'

external/zlib/gzwrite.c: In function 'gzclose_w':

external/zlib/gzwrite.c:516: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:517: error: 'gz_state' has no member named 'seek'

external/zlib/gzwrite.c:518: error: 'gz_state' has no member named 'skip'

external/zlib/gzwrite.c:518: error: too many arguments to function 'gz_zero'

external/zlib/gzwrite.c:523: error: 'gz_state' has no member named 'strm'

external/zlib/gzwrite.c:524: warning: incompatible implicit declaration of built-in function 'free'

external/zlib/gzwrite.c:524: error: 'gz_state' has no member named 'out'

external/zlib/gzwrite.c:525: error: 'gz_state' has no member named 'in'

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/gz