GnuPG 2.0.1 compile error

Zach Himsel z.himsel at gmail.com
Thu Dec 7 22:22:53 CET 2006


Yes, I know there has been a lot of compiling error going around on
gnupg-users recently but I have tried to find the problem, but cannot.

My './configure' works fine, but I get the following error part-way
through 'make':

================================
compress.c:36:18: error: zlib.h: No such file or directory
compress.c:61: error: expected declaration specifiers or '...' before 'z_stream'
compress.c: In function 'init_compress':
compress.c:76: error: 'Z_DEFAULT_COMPRESSION' undeclared (first use in
this function)
compress.c:76: error: (Each undeclared identifier is reported only once
compress.c:76: error: for each function it appears in.)
compress.c:82: warning: implicit declaration of function 'deflateInit2'
compress.c:82: error: 'zs' undeclared (first use in this function)
compress.c:82: error: 'Z_DEFLATED' undeclared (first use in this function)
compress.c:83: error: 'Z_DEFAULT_STRATEGY' undeclared (first use in
this function)
compress.c:84: warning: implicit declaration of function 'deflateInit'
compress.c:85: error: 'Z_OK' undeclared (first use in this function)
compress.c:87: error: 'Z_MEM_ERROR' undeclared (first use in this function)
compress.c:88: error: 'Z_VERSION_ERROR' undeclared (first use in this function)
compress.c: At top level:
compress.c:97: error: expected declaration specifiers or '...' before 'z_stream'
compress.c: In function 'do_compress':
compress.c:104: error: 'zs' undeclared (first use in this function)
compress.c:109: warning: implicit declaration of function 'deflate'
compress.c:110: error: 'Z_STREAM_END' undeclared (first use in this function)
compress.c:110: error: 'Z_FINISH' undeclared (first use in this function)
compress.c:112: error: 'Z_OK' undeclared (first use in this function)
compress.c: At top level:
compress.c:134: error: expected declaration specifiers or '...' before
'z_stream'
compress.c: In function 'init_uncompress':
compress.c:148: warning: implicit declaration of function 'inflateInit2'
compress.c:148: error: 'zs' undeclared (first use in this function)
compress.c:149: warning: implicit declaration of function 'inflateInit'
compress.c:149: error: 'Z_OK' undeclared (first use in this function)
compress.c:151: error: 'Z_MEM_ERROR' undeclared (first use in this function)
compress.c:152: error: 'Z_VERSION_ERROR' undeclared (first use in this function)
compress.c: At top level:
compress.c:162: error: expected declaration specifiers or '...' before
'z_stream'
compress.c: In function 'do_uncompress':
compress.c:169: error: 'zs' undeclared (first use in this function)
compress.c:198: warning: implicit declaration of function 'inflate'
compress.c:198: error: 'Z_SYNC_FLUSH' undeclared (first use in this function)
compress.c:202: error: 'Z_STREAM_END' undeclared (first use in this function)
compress.c:204: error: 'Z_OK' undeclared (first use in this function)
compress.c:204: error: 'Z_BUF_ERROR' undeclared (first use in this function)
compress.c: In function 'compress_filter':
compress.c:225: error: 'z_stream' undeclared (first use in this function)
compress.c:225: error: 'zs' undeclared (first use in this function)
compress.c:231: error: too many arguments to function 'init_uncompress'
compress.c:238: warning: passing argument 3 of 'do_uncompress' from
incompatible pointer type
compress.c:238: error: too many arguments to function 'do_uncompress'
compress.c:256: error: too many arguments to function 'init_compress'
compress.c:262: error: 'Z_NO_FLUSH' undeclared (first use in this function)
compress.c:262: error: too many arguments to function 'do_compress'
compress.c:266: warning: implicit declaration of function 'inflateEnd'
compress.c:274: error: 'Z_FINISH' undeclared (first use in this function)
compress.c:274: error: too many arguments to function 'do_compress'
compress.c:275: warning: implicit declaration of function 'deflateEnd'
make[2]: *** [compress.o] Error 1
make[2]: Leaving directory `/root/gnupg-2.0.1/g10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gnupg-2.0.1'
make: *** [all] Error 2
===============================

-- 
Zach Himsel <z.himsel[at]gmail.com>
======= http://tinyurl.com/yjxo8s =======
|_|0|_| ------- OpenPGP Key: 0x9A1DFCAC -------
|_|_|0| () **ASCII Ribbon Campaign** -- against
|0|0|0| /\  html mail & proprietary attachments



More information about the Gnupg-users mailing list