[Fwd: Re: Compiling GnuPG on Cygwin]

Joe Vender jvender at owensboro.net
Fri Nov 28 08:25:40 CET 2003


Hi!

please forward this to gnupg-devel at gnupg.org

Thanks,

    Werner

-- 
Werner Koch                                      <wk at gnupg.org>
The GnuPG Experts                                http://g10code.com
Free Software Foundation Europe                  http://fsfeurope.org

____

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hi Werner,
I've been able to build GnuPG 1.2.3 binaries for windows using the
current version of Cygwin, and everything seems to work on Windows 98.

I did ./configure --with-included-zlib --with-included-gettext
- --with-static-all --enable-sha512 --enable-m-guard

and then, after the configure process, I added " -lcygipc" to LIBS in
./tools/Makefile and ./g10/Makefile as per instructions at
http://lists.gnupg.org/pipermail/gnupg-devel/2001-February/016980.html

and it worked.

It passed all 25 tests when doing a make check. I got no errors during
the process. But I do have a few problems. My lack of knowledge no doubt.

How do I build the GnuPG 1.2.3 binary from the source so that the binary
doesn't need any cygwin DLLs to run? I've tried to use --with-static-all
in the ./configure step, but GnuPG still needs three cygwin DLLs to
work. If they're not located in the same folder as gpg.exe (or perhaps
in my system path), GnuPG won't run. Also, when I put the binary in the
C:\GnuPG directory (where the MinGW32 binary goes) and use it, it
doesn't use the keyrings or gpg.conf in that directory, but instead
creates a new keyring pair in C:\cygwin\home\My Computer Name\.gnupg
which Gygwin considers as my "Home" directory.

When GnuPG is run from the command line, it reports Home: ~.gnupg

What can I do so that the binary uses the C:\gnupg directory as its home
directory, or whatever directory I specify in the registry? I've tried
putting SET GNUPGHOME=C:\GnuPG in autoexec.bat, and this does make GnuPG
use C:\GnuPG keyrings and gpg.conf, but then every time I run it, it
gives me a warning about my home directory having unsafe file
permissions. What can I do when building GnuPG so that it will use the
registry entries to decide on its home directory, and so that it will
quit giving me that "unsafe file permissions" warning. I'm not sure what
purpose this has on windows.

I'm VERY new to this whole building stuff. I've only been at it for two
days so far, so forgive my ignorance.

Best,
Joe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/x1GcoC5mmdwbp38RA9EtAJ0RPwvsS/PjlXoBqxxLj9oWcSdXtQCdE2lv
s+IMdj4IhXBgCSlmuzNZiK8=
=4zpS
-----END PGP SIGNATURE-----







More information about the Gnupg-devel mailing list