Problem building GnuPG 2.0.9 for Windows

Bill Foster bfoster at clearwire.net
Thu Oct 2 02:21:43 CEST 2008


Hello,

I am trying to build GnuPG 2.0.9 for Win32 (Windows XP).
I am using the Debian testing (Lenny) platform, with the MinGW 
cross-compiler.
I've installed the required libraries in their proper order:

libgpg-error-1.6
libgcrypt-1.4.3
libksba-1.0.4
w32pth-2.0.1
libassuan-1.0.5

And I've installed zlib-1.2.3, with the libz.a library file in the 
~/w32root/lib directory.
When trying to build GnuPG 2.0.9, I run './configure --build-w32'.
Then I run 'make'.
'make' ends with these lines:

Making all in g10
make[2]: Entering directory `~/gnupg-2.0.9/g10'
i586-mingw32msvc-gcc -I~/w32root/include -I~/w32root/include 
-I~/w32root/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes
-Wformat -Wno-format-y2k -Wformat-security -Wno-pointer-sign 
-Wpointer-arith   -o gpg2.exe gpg.o server.o build-packet.o compress.o  
free-packet.o
getkey.o keydb.o keyring.o seskey.o kbnode.o mainproc.o armor.o 
mdfilter.o textfilter.o progress.o misc.o openfile.o keyid.o 
parse-packet.o cpr.o
plaintext.o sig-check.o keylist.o pkglue.o pkclist.o skclist.o 
pubkey-enc.o passphrase.o seckey-cert.o encr-data.o cipher.o encode.o 
sign.o verify.o
revoke.o decrypt.o keyedit.o dearmor.o import.o export.o trustdb.o 
tdbdump.o tdbio.o delkey.o keygen.o helptext.o keyserver.o photoid.o 
call-agent.o
card-util.o exec.o ../common/libcommon.a ../jnlib/libjnlib.a 
../gl/libgnu.a  ../common/libgpgrl.a  -lws2_32 -L~/w32root/lib -lgcrypt 
-lgpg-error -L~/w32root/lib
-lassuan -lws2_32 -L~/w32root/lib -lgpg-error
compress.o: In function `do_compress':
~/gnupg-2.0.9/g10/compress.c:107: undefined reference to `_deflate'
compress.o: In function `do_uncompress':
~/gnupg-2.0.9/g10/compress.c:196: undefined reference to `_inflate'
compress.o: In function `init_compress':
~/gnupg-2.0.9/g10/compress.c:80: undefined reference to `_deflateInit_'
compress.o: In function `init_uncompress':
~/gnupg-2.0.9/g10/compress.c:146: undefined reference to `_inflateInit_'
compress.o: In function `init_compress':
~/gnupg-2.0.9/g10/compress.c:80: undefined reference to `_deflateInit2_'
compress.o: In function `init_uncompress':
~/gnupg-2.0.9/g10/compress.c:146: undefined reference to `_inflateInit2_'
compress.o: In function `compress_filter':
~/gnupg-2.0.9/g10/compress.c:264: undefined reference to `_inflateEnd'
~/gnupg-2.0.9/g10/compress.c:273: undefined reference to `_deflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [gpg2.exe] Error 1

I have tried learning how to build the zlib.dll file, and then using the 
'nm' command to create a zlib.def file, and then using the 'dlltool' command
to "custom build" an import library (zlib.a). But I still get the same 
error messages as above when I run 'make'.

I've reached the end of my rope.
Does anyone have any advice they can offer me ?
Please know it will be greatly appreciated.

Thank-you,
 Bill Foster

 




More information about the Gnupg-devel mailing list