GnuPG 2.0,9 - Error when trying to compile in Linux.

Charly Avital shavital at mac.com
Wed Dec 3 17:02:27 CET 2008


>From ./configure:
configure: checking for libraries
checking for gpg-error-config... /usr/local/bin/gpg-error-config
checking for GPG Error - version >= 1.4... yes (1.7)
checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.2... yes (1.4.3)
checking LIBGCRYPT API version... okay
checking for libassuan-config... /usr/local/bin/libassuan-config
checking for LIBASSUAN - version >= 1.0.4... yes (1.0.5)
checking LIBASSUAN API version... okay
checking for libassuan-config...
(cached) /usr/local/bin/libassuan-config
checking for LIBASSUAN pth - version >= 1.0.4... yes (1.0.5)
checking LIBASSUAN pth API version... okay
checking for libassuan-config...
(cached) /usr/local/bin/libassuan-config
checking for LIBASSUAN - version >= 1.0.1... yes (1.0.5)
checking LIBASSUAN API version... okay
checking for ksba-config... /usr/local/bin/ksba-config
checking for KSBA - version >= 1.0.2... yes (1.0.4)
checking KSBA API version... okay
checking for usb_bulk_write in -lusb... no
checking for usb_create_match... no
checking for library containing dlopen... -ldl
checking for openpty in -lutil... yes
checking for shred... /usr/bin/shred
checking for pth-config... /usr/local/bin/pth-config
checking for PTH - version >= 1.3.7... yes
checking whether PTH installation is sane... yes

.....
 GnuPG v2.0.9 has been configured as follows:

        Platform:  GNU/Linux (x86_64-unknown-linux-gnu)

        OpenPGP:   yes
        S/MIME:    yes
        Agent:     yes
        Smartcard: yes (without internal CCID driver)

        Protect tool:      (default)
        Default agent:     (default)
        Default pinentry:  (default)
        Default scdaemon:  (default)
        Default dirmngr:   (default)

From: make

ess.Tpo -c -o compress.o compress.c
compress.c:34:18: error: zlib.h: No such file or directory
compress.c:59: error: expected declaration specifiers or ‘...’ before 
‘z_stream’
compress.c: In function ‘init_compress’:
compress.c:74: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in 
this function)
compress.c:74: error: (Each undeclared identifier is reported only once
compress.c:74: error: for each function it appears in.)
compress.c:80: warning: implicit declaration of function ‘deflateInit2’
compress.c:80: error: ‘zs’ undeclared (first use in this function)
compress.c:80: error: ‘Z_DEFLATED’ undeclared (first use in this
function)
compress.c:81: error: ‘Z_DEFAULT_STRATEGY’ undeclared (first use in
this 
function)
compress.c:82: warning: implicit declaration of function ‘deflateInit’
compress.c:83: error: ‘Z_OK’ undeclared (first use in this function)
compress.c:85: error: ‘Z_MEM_ERROR’ undeclared (first use in this
function)
compress.c:86: error: ‘Z_VERSION_ERROR’ undeclared (first use in this 
function)
compress.c: At top level:
compress.c:95: error: expected declaration specifiers or ‘...’ before 
‘z_stream’
compress.c: In function ‘do_compress’:
compress.c:102: error: ‘zs’ undeclared (first use in this function)
compress.c:107: warning: implicit declaration of function ‘deflate’
compress.c:108: error: ‘Z_STREAM_END’ undeclared (first use in this 
function)
compress.c:108: error: ‘Z_FINISH’ undeclared (first use in this
function)
compress.c:110: error: ‘Z_OK’ undeclared (first use in this function)
compress.c: At top level:
compress.c:132: error: expected declaration specifiers or ‘...’ before 
‘z_stream’
compress.c: In function ‘init_uncompress’:
compress.c:146: warning: implicit declaration of function ‘inflateInit2’
compress.c:146: error: ‘zs’ undeclared (first use in this function)
compress.c:147: warning: implicit declaration of function ‘inflateInit’
compress.c:147: error: ‘Z_OK’ undeclared (first use in this function)
compress.c:149: error: ‘Z_MEM_ERROR’ undeclared (first use in this
function)
compress.c:150: error: ‘Z_VERSION_ERROR’ undeclared (first use in this 
function)
compress.c: At top level:
compress.c:160: error: expected declaration specifiers or ‘...’ before 
‘z_stream’
compress.c: In function ‘do_uncompress’:
compress.c:167: error: ‘zs’ undeclared (first use in this function)
compress.c:196: warning: implicit declaration of function ‘inflate’
compress.c:196: error: ‘Z_SYNC_FLUSH’ undeclared (first use in this 
function)
compress.c:200: error: ‘Z_STREAM_END’ undeclared (first use in this 
function)
compress.c:202: error: ‘Z_OK’ undeclared (first use in this function)
compress.c:202: error: ‘Z_BUF_ERROR’ undeclared (first use in this
function)
compress.c: In function ‘compress_filter’:
compress.c:223: error: ‘z_stream’ undeclared (first use in this
function)
compress.c:223: error: ‘zs’ undeclared (first use in this function)
compress.c:229: error: too many arguments to function ‘init_uncompress’
compress.c:236: warning: passing argument 3 of ‘do_uncompress’ from 
incompatible pointer type
compress.c:236: error: too many arguments to function ‘do_uncompress’
compress.c:254: error: too many arguments to function ‘init_compress’
compress.c:260: error: ‘Z_NO_FLUSH’ undeclared (first use in this
function)
compress.c:260: error: too many arguments to function ‘do_compress’
compress.c:264: warning: implicit declaration of function ‘inflateEnd’
compress.c:272: error: ‘Z_FINISH’ undeclared (first use in this
function)
compress.c:272: error: too many arguments to function ‘do_compress’
compress.c:273: warning: implicit declaration of function ‘deflateEnd’
make[2]: *** [compress.o] Error 1

=========

It seems that zlib has not been installed? The distro came with gpg 
2.0.7, shows:
shavital at MacBookAL:~$ gpg2 --version
gpg (GnuPG) 2.0.7
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ELG
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
--------

Thanks in advance for your help.
Charly
Ubuntu 8.04 under virtual ware.
Macbook AL Unibody Late 2008 - OSX 10.5.5






More information about the Gnupg-users mailing list