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

2008-12-04 Thread Kevin Hilton
I've composed a How-To for compiling GnuPG and GnuPG2.  I used Ubuntu 8.10
as my testing platform.  I have also verified the installation on cygwin,
although the process with cygwin was slightly more complicated, having to
download individual libraries rather than using a package management system.

Hopefully others may find these instructions useful:

http://ubuntuforums.org/showthread.php?t=649466
-- 
Kevin Hilton
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


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

2008-12-03 Thread Charly Avital
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: 

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

2008-12-03 Thread Robert J. Hansen
Charly Avital wrote:
 Thanks in advance for your help.

The problem is fairly simple, but I can't give a complete fix since I
don't have an Ubuntu 8.04 system handy.

The root of it is that you have the files zlib needs to run, but not the
files you need to compile applications which use zlib.  These are
probably going to be found in something named zlib-dev, or something
similar.  (E.g., on my Ubuntu 8.10 system I think it's actually named
zlib1g-dev.)

sudo apt-get install zlib1g-dev might be useful to you, assuming it's
named the same on an 8.04 system.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


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

2008-12-03 Thread David Shaw
On Wed, Dec 03, 2008 at 11:02:27AM -0500, Charly Avital wrote:
 From: make
 
 ess.Tpo -c -o compress.o compress.c
 compress.c:34:18: error: zlib.h: No such file or directory

You're missing the development files for zlib.  Most distros break
libraries into two main pieces: the library itself, and the
information needed to compile programs using that library.  This lets
people who aren't compiling stuff not install the second package.

 Ubuntu 8.04 under virtual ware.

I don't know offhand what Ubuntu calls it, but look for a package
called something like zlib-dev or zlib-devel.

David

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


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

2008-12-03 Thread Charly Avital

Robert J. Hansen wrote:
[...]


sudo apt-get install zlib1g-dev might be useful to you, assuming it's
named the same on an 8.04 system.


Thanks Robert, it worked impeccably.
--
~$ gpg2 --version
gpg (GnuPG) 2.0.9
Copyright (C) 2008 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
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB
Used libraries: gcrypt(1.4.3)
-

I had already upgraded to 8.10 (Intrepid Ibex), but had to downgrade to
8.04, because till now, neither Parallels nor VMware have released
builds that enable to install Tools (Parallel Tools, or VMware Tools)
on 8.10. Those tools make life much easier when in OSX one wants to
shuttle from host to guest and back.

Thanks again for your prompt answer.
Charly



___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users