Hi guys,
I was trying to compile Xorg-6.8.1 sources on my Debian stable machine. After giving the command Make World, the compilation starts for sometime and then starts giving the following error messages:
Code:
In file included from lbx_zlib.c:67:
lbx_zlib.h:55:18: zlib.h: No such file or directory
In file included from lbx_zlib.c:67:
lbx_zlib.h:59: error: syntax error before "z_stream"
lbx_zlib.h:59: warning: no semicolon at end of struct or union
lbx_zlib.h:81: error: syntax error before '}' token
lbx_zlib.h:81: warning: ISO C does not allow extra `;' outside of a function
lbx_zlib.c:83: error: field `compress_state' has incomplete type
lbx_zlib.c:84: error: field `decompress_state' has incomplete type
lbx_zlib.c: In function `init_compress':
lbx_zlib.c:97: error: dereferencing pointer to incomplete type
lbx_zlib.c:99: error: dereferencing pointer to incomplete type
lbx_zlib.c:100: error: dereferencing pointer to incomplete type
lbx_zlib.c:101: error: dereferencing pointer to incomplete type
lbx_zlib.c:101: error: dereferencing pointer to incomplete type
lbx_zlib.c:102: error: dereferencing pointer to incomplete type
lbx_zlib.c:104: error: dereferencing pointer to incomplete type
lbx_zlib.c:104: error: `alloc_func' undeclared (first use in this function)
lbx_zlib.c:104: error: (Each undeclared identifier is reported only once
lbx_zlib.c:104: error: for each function it appears in.)
lbx_zlib.c:104: error: syntax error before numeric constant
lbx_zlib.c:105: error: dereferencing pointer to incomplete type
lbx_zlib.c:105: error: `free_func' undeclared (first use in this function)
lbx_zlib.c:105: error: syntax error before numeric constant
lbx_zlib.c:106: error: dereferencing pointer to incomplete type
lbx_zlib.c:107: error: dereferencing pointer to incomplete type
lbx_zlib.c:108: error: dereferencing pointer to incomplete type
lbx_zlib.c:108: error: dereferencing pointer to incomplete type
lbx_zlib.c:110: error: dereferencing pointer to incomplete type
lbx_zlib.c:110: warning: implicit declaration of function `deflateInit'
lbx_zlib.c:110: error: dereferencing pointer to incomplete type
lbx_zlib.c:112: error: dereferencing pointer to incomplete type
lbx_zlib.c:112: error: dereferencing pointer to incomplete type
lbx_zlib.c:112: error: `Z_OK' undeclared (first use in this function)
lbx_zlib.c: In function `init_decompress':
lbx_zlib.c:118: error: dereferencing pointer to incomplete type
lbx_zlib.c:120: error: dereferencing pointer to incomplete type
lbx_zlib.c:121: error: dereferencing pointer to incomplete type
lbx_zlib.c:122: error: dereferencing pointer to incomplete type
lbx_zlib.c:122: error: dereferencing pointer to incomplete type
lbx_zlib.c:123: error: dereferencing pointer to incomplete type
lbx_zlib.c:125: error: dereferencing pointer to incomplete type
lbx_zlib.c:125: error: `alloc_func' undeclared (first use in this function)
lbx_zlib.c:125: error: syntax error before numeric constant
lbx_zlib.c:126: error: dereferencing pointer to incomplete type
lbx_zlib.c:126: error: `free_func' undeclared (first use in this function)
lbx_zlib.c:126: error: syntax error before numeric constant
lbx_zlib.c:127: error: dereferencing pointer to incomplete type
lbx_zlib.c:128: error: dereferencing pointer to incomplete type
lbx_zlib.c:129: error: dereferencing pointer to incomplete type
lbx_zlib.c:129: error: dereferencing pointer to incomplete type
lbx_zlib.c:131: error: dereferencing pointer to incomplete type
lbx_zlib.c:133: error: dereferencing pointer to incomplete type
lbx_zlib.c:133: warning: implicit declaration of function `inflateInit'
lbx_zlib.c:133: error: dereferencing pointer to incomplete type
lbx_zlib.c:142: error: dereferencing pointer to incomplete type
lbx_zlib.c:142: error: dereferencing pointer to incomplete type
lbx_zlib.c:142: error: `Z_OK' undeclared (first use in this function)
lbx_zlib.c: In function `do_compress':
lbx_zlib.c:151: error: dereferencing pointer to incomplete type
lbx_zlib.c:151: error: dereferencing pointer to incomplete type
lbx_zlib.c:152: error: dereferencing pointer to incomplete type
lbx_zlib.c:152: error: dereferencing pointer to incomplete type
lbx_zlib.c:152: error: dereferencing pointer to incomplete type
lbx_zlib.c:154: error: dereferencing pointer to incomplete type
lbx_zlib.c:154: error: dereferencing pointer to incomplete type
lbx_zlib.c:155: error: dereferencing pointer to incomplete type
lbx_zlib.c:155: error: dereferencing pointer to incomplete type
lbx_zlib.c:155: error: dereferencing pointer to incomplete type
lbx_zlib.c:157: error: dereferencing pointer to incomplete type
lbx_zlib.c:157: warning: implicit declaration of function `deflate'
lbx_zlib.c:157: error: dereferencing pointer to incomplete type
lbx_zlib.c:159: error: dereferencing pointer to incomplete type
lbx_zlib.c:159: error: dereferencing pointer to incomplete type
lbx_zlib.c:160: error: dereferencing pointer to incomplete type
lbx_zlib.c:160: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `do_decompress':
lbx_zlib.c:168: error: dereferencing pointer to incomplete type
lbx_zlib.c:168: error: dereferencing pointer to incomplete type
lbx_zlib.c:169: error: dereferencing pointer to incomplete type
lbx_zlib.c:169: error: dereferencing pointer to incomplete type
lbx_zlib.c:169: error: dereferencing pointer to incomplete type
lbx_zlib.c:171: error: dereferencing pointer to incomplete type
lbx_zlib.c:171: error: dereferencing pointer to incomplete type
lbx_zlib.c:172: error: dereferencing pointer to incomplete type
lbx_zlib.c:172: error: dereferencing pointer to incomplete type
lbx_zlib.c:172: error: dereferencing pointer to incomplete type
lbx_zlib.c:174: error: dereferencing pointer to incomplete type
lbx_zlib.c:174: warning: implicit declaration of function `inflate'
lbx_zlib.c:174: error: dereferencing pointer to incomplete type
lbx_zlib.c:174: error: `Z_PARTIAL_FLUSH' undeclared (first use in this function)
lbx_zlib.c:176: error: dereferencing pointer to incomplete type
lbx_zlib.c:176: error: dereferencing pointer to incomplete type
lbx_zlib.c:178: error: dereferencing pointer to incomplete type
lbx_zlib.c:178: error: dereferencing pointer to incomplete type
lbx_zlib.c:179: error: dereferencing pointer to incomplete type
lbx_zlib.c:179: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `GetNewPacket':
lbx_zlib.c:189: error: dereferencing pointer to incomplete type
lbx_zlib.c:191: error: dereferencing pointer to incomplete type
lbx_zlib.c:191: error: dereferencing pointer to incomplete type
lbx_zlib.c:192: error: dereferencing pointer to incomplete type
lbx_zlib.c:198: error: dereferencing pointer to incomplete type
lbx_zlib.c:200: error: dereferencing pointer to incomplete type
lbx_zlib.c:200: error: dereferencing pointer to incomplete type
lbx_zlib.c:204: error: dereferencing pointer to incomplete type
lbx_zlib.c:205: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `NewPacketAvail':
lbx_zlib.c:219: error: dereferencing pointer to incomplete type
lbx_zlib.c:221: error: dereferencing pointer to incomplete type
lbx_zlib.c:221: error: dereferencing pointer to incomplete type
lbx_zlib.c:222: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibFree':
lbx_zlib.c:334: warning: implicit declaration of function `deflateEnd'
lbx_zlib.c:336: warning: implicit declaration of function `inflateEnd'
lbx_zlib.c: In function `ZlibFlush':
lbx_zlib.c:347: error: dereferencing pointer to incomplete type
lbx_zlib.c:349: error: `Z_PARTIAL_FLUSH' undeclared (first use in this function)
lbx_zlib.c:350: error: dereferencing pointer to incomplete type
lbx_zlib.c:350: error: dereferencing pointer to incomplete type
lbx_zlib.c:351: error: dereferencing pointer to incomplete type
lbx_zlib.c:351: error: dereferencing pointer to incomplete type
lbx_zlib.c:355: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibWrite':
lbx_zlib.c:426: error: dereferencing pointer to incomplete type
lbx_zlib.c:427: error: dereferencing pointer to incomplete type
lbx_zlib.c:429: error: dereferencing pointer to incomplete type
lbx_zlib.c:433: error: dereferencing pointer to incomplete type
lbx_zlib.c:433: error: dereferencing pointer to incomplete type
lbx_zlib.c:434: error: dereferencing pointer to incomplete type
lbx_zlib.c:434: error: dereferencing pointer to incomplete type
lbx_zlib.c:437: error: dereferencing pointer to incomplete type
lbx_zlib.c:437: error: dereferencing pointer to incomplete type
lbx_zlib.c:440: error: dereferencing pointer to incomplete type
lbx_zlib.c:441: error: dereferencing pointer to incomplete type
lbx_zlib.c:442: error: `Z_NO_FLUSH' undeclared (first use in this function)
lbx_zlib.c:446: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibRead':
lbx_zlib.c:475: error: dereferencing pointer to incomplete type
lbx_zlib.c:477: error: dereferencing pointer to incomplete type
lbx_zlib.c:478: error: dereferencing pointer to incomplete type
lbx_zlib.c:482: error: dereferencing pointer to incomplete type
lbx_zlib.c:483: error: dereferencing pointer to incomplete type
lbx_zlib.c:491: error: dereferencing pointer to incomplete type
lbx_zlib.c:492: error: dereferencing pointer to incomplete type
lbx_zlib.c:493: error: dereferencing pointer to incomplete type
lbx_zlib.c:493: error: dereferencing pointer to incomplete type
lbx_zlib.c:494: error: dereferencing pointer to incomplete type
lbx_zlib.c:494: error: dereferencing pointer to incomplete type
lbx_zlib.c:497: error: dereferencing pointer to incomplete type
lbx_zlib.c:497: error: dereferencing pointer to incomplete type
lbx_zlib.c:498: error: dereferencing pointer to incomplete type
lbx_zlib.c:498: error: dereferencing pointer to incomplete type
lbx_zlib.c:499: error: dereferencing pointer to incomplete type
lbx_zlib.c:508: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:517: error: dereferencing pointer to incomplete type
lbx_zlib.c:519: error: dereferencing pointer to incomplete type
lbx_zlib.c:519: error: dereferencing pointer to incomplete type
lbx_zlib.c:520: error: dereferencing pointer to incomplete type
lbx_zlib.c:521: error: dereferencing pointer to incomplete type
lbx_zlib.c:525: error: dereferencing pointer to incomplete type
lbx_zlib.c: In function `ZlibInputAvail':
lbx_zlib.c:540: error: dereferencing pointer to incomplete type
lbx_zlib.c:541: error: dereferencing pointer to incomplete type
lbx_zlib.c:541: error: dereferencing pointer to incomplete type
make[5]: *** [lbx_zlib.o] Error 1
make[5]: Leaving directory `/root/xc/lib/lbxutil/lbx_zlib'
make[4]: *** [lbx_zlib] Error 2
make[4]: Leaving directory `/root/xc/lib/lbxutil'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/root/xc'
make: *** [World] Error 2
debian:~/xc#
On googling I found the following links but they weren't very helpful
http://www.rootboard.de/vb3/showthread.php?p=81536
http://www.linuxquestions.org/questi...hreadid=285074
Also, I have done the same procedure successfully on a Fedora 2 installation which had gcc version 3.xx and my current debian has gcc version 3.3.5. Even I think this could be a gcc compiler version issue. Has anyone tried this before?
Also are these error messsage by any chance related to host.def file which we copy in xc/config/cf directory?
I can't use binary version of Xorg available because I am compiling this for a specific purpose and I need help in this regards.
Thank you.