Compile GnuPG 1.4 under cygwin?

Jeroen Budts jeroen at lightyear.be
Tue Dec 28 10:01:11 CET 2004


David Shaw wrote:
> On Tue, Dec 28, 2004 at 12:34:00AM +0100, Jeroen Budts wrote:
> 
>> In file included from http.c:46:
>> srv.h:28:26: arpa/nameser.h: No such file or directory
>> srv.h:29:20: resolv.h: No such file or directory
> 
> troubles me a little.  Can you check if there is a resolv.h in your
> cygwin install?  I was under the impression (possibly incorrect) that
> resolv.h existed.
> 
I can't find any resolv.h in my cygwin directory.. Do i need to download 
any sources of cygwin to get it?
I did find a message [1] on the devel-list about the same problem. When 
i apply the patch to srv.h make works a bit longer, however after a 
while it still gives an error, but now a different one.

I'll try compiling GnuPG using MingW.

Thanks!
Jeroen

[1] http://lists.gnupg.org/pipermail/gnupg-devel/2004-December/021593.html

the error in case it is useful:
...
make[1]: Entering directory `/d/gnupg-1.4.0/g10'
gcc -DGNUPG_LIBEXECDIR="\"/usr/local/libexec/gnupg\"" -g -O2 -Wall   -o 
gpg.exe  g10.o build-packet.o compress.o compress-bz2.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 comment.o status.o plaintext.o sig-check.o keylist.o 
signal.o cardglue.o tlv.o card-util.o app-openpgp.o iso7816.o apdu.o 
ccid-driver.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 pipemode.o helptext.o keyserver.o photoid.o 
exec.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a -liconv 
-lintl  -lz -lbz2     -lreadline
passphrase.o(.text+0x232): In function `writen':
/d/gnupg-1.4.0/g10/passphrase.c:204: undefined reference to `_w32_strerror'
passphrase.o(.text+0x2e5): In function `readn':
/d/gnupg-1.4.0/g10/passphrase.c:252: undefined reference to `_w32_strerror'
Info: resolving _rl_catch_signals by linking to __imp__rl_catch_signals 
(auto-import)
Info: resolving _rl_outstream by linking to __imp__rl_outstream 
(auto-import)
Info: resolving _rl_instream by linking to __imp__rl_instream (auto-import)
collect2: ld returned 1 exit status
make[1]: *** [gpg.exe] Error 1
make[1]: Leaving directory `/d/gnupg-1.4.0/g10'
make: *** [check-recursive] Error 1




More information about the Gnupg-users mailing list