problem compiling 1.0.7 for win32

David R. Bergstein dbergstein@comcast.net
Wed Jul 10 01:21:01 2002


This is a multi-part message in MIME format.

--Boundary_(ID_yeOv3ezKLrCdJLNO/AKRfg)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To answer Brad's question, I was able to accomplish this and the
resulting win32 executable works without errors on my win2k system. 
However, the win32 cross-compile process for gnupg (1.07 or earlier
versions) is not as straightforward as one would like.  The patches I
used included the HKP keyserver patch from nullify.org, a configure
patch to use wsock32 instead of ws2_32 (this was not in the
win32api I used and did not work when it was added), and a patch to
eliminate compile conflicts with strgutil.c.

Comments are welcomed.

David R. Bergstein
Systems Engineer and Blues Musician -
http://mywebpages.comcast.net/dbergstein/
Heart of Blue - bookings on-line at http://www.heartofblue.com
OpenPGP Public Key 0xE1F138CA - For info see http://www.gnupg.org
Key fingerprint = C86E CA2A 4171 AC73 91D7  3DCE 8832 D764 E1F1 38CA 

> -----Original Message-----
> From: gnupg-users-admin@gnupg.org
[mailto:gnupg-users-admin@gnupg.org]On
> Behalf Of Brad Tarver
> Sent: Tuesday, July 09, 2002 2:50 PM
> To: gnupg-users@gnupg.org
> Subject: problem compiling 1.0.7 for win32
> 
> 
> Hi,
> 
> I'm an experienced linux user. I've been using it for 5 years. I've
> never compiled code on linux for windows 32 before tho.
> 
> I'm trying to compile gnupg 1.0.7 using the instructions from the
> README.W32 file from the win32 dist of gnupg 1.0.6.
> 
> I'm using mingw32-cpd-0.3.0, gcc-2.95.2, and binutils-2.9.1 on 
> Red Hat 7.2.
> 
> Mingw32 installed fine.
> 
> I put 'export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/btarver/lib/mingw32-cpd/lib' in
> my .bash_profile after installing mingw32. Yhen ran 'source
.bash_profile'
> 
> I ran 'scripts/autogen.sh --build-w32' from the gnupg-1.0.7 with 
> no errors.
> 
> I get no errors with these:
> make  all-recursive
> Making all in intl
> Making all in zlib
> Making all in util
> Making all in mpi
> Making all in cipher
> make  all-am
> 
> I run into errors when trying to compile in the tools sub dir:
> /home/btarver/lib/mingw32-cpd/i386--mingw32/bin/ld: cannot open
> -lws2_32: No such file or directory
> 
> ----SNIP-----
> Making all in tools
> make[2]: Entering directory `/home/btarver/gnupg-1.0.7/tools'
> /home/btarver/lib/mingw32-cpd/i386--mingw32/bin/gcc  -g -O2 -Wall   -o
> gpgsplit.exe  gpgsplit.o ../zlib/libzlib.a ../cipher/libcipher.a
> ../mpi/libmpi.a ../util/libutil.a  -lws2_32
> /home/btarver/lib/mingw32-cpd/i386--mingw32/bin/ld: cannot open
> -lws2_32: No such file or directory
> make[2]: *** [gpgsplit.exe] Error 1
> make[2]: Leaving directory `/home/btarver/gnupg-1.0.7/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/btarver/gnupg-1.0.7'
> make: *** [all] Error 2
> ----SNIP-----
> 
> What do i need to do to get this working?
> 
> Thanks,
> Brad
> 
> -- 
> Brad Tarver
> IT Director
> Rankin County Board of Supervisors
> 601 825 9633
> 601 824 2557 Fax
> 
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (MingW32) - GPGshell v2.30

iD8DBQE9K2+1iDLXZOHxOMoRAl13AKCYhfYUnlROw9bbog20I1V1L0byTgCeN+br
cRODbjYTWcuyvhlN7c+ISns=
=dV2X
-----END PGP SIGNATURE-----

--Boundary_(ID_yeOv3ezKLrCdJLNO/AKRfg)
Content-type: application/octet-stream; name=gnupg-w32-patches.tar.bz
Content-transfer-encoding: base64
Content-disposition: attachment; filename=gnupg-w32-patches.tar.bz

QlpoOTFBWSZTWbuGs/cAA6f/zO42AkB/f//+f///pP//3/4AgACAAASAGFAFXOY7OeY8HrB0Xajv
CVGqYENMTSng0mU3qYI00TyJ6jynoIPSZqaNqbUaep5I0a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+HoKQ1Fk2i3LFmJYxQAejCBUKWyussLC6Qerhg
cSLCNKdHci19ls8TBcIX3PhcPNn6csnjWoy+IXSZuymJoXGBOpS0ZZMuHj42FYKxEpPtViVuO5ki
dXbPFBPpRsWr8cTfXe3kobiJA6vxQqjC09LNpGG1S4FL8WZ1GPRMc1+dhNCJdGenDau3HtOXhMhi
8Wd4K3XOI80zq+xsLZPXXfVkiD745SuxK/0TwayEcl9cGSz1hnFTv2BdVYxnqMAwDgQ0GI6eTR7o
skSiDDDNMmkCG4CN0vDW1vBKpVLuJkTskRQUJpw0yzURLtsubEjhFK8iPKlgtNxxjMWhWyifgkwo
GGK6kPEhqygfQ75+4+vvFplly2FgouS3kkqTd0gbVTFd7hU2r6lMKdac72LsQIqlRi6w7j5eus+r
HCXIr6JPDlbMaGvaO0ow7o2U9LEVkrL4H9iUVJnEK6arG5StCpVooOG4x0faBwrkCIPfawQ36SoS
OEw3eLJFWFEaQYxoC9BKzEIy76FgK36C7gzByJ92KSkIBCBjKKUw46yCOqRDVj3zRWtXkohywGGg
9TIQ+7ofNEiKi1aVxOGOHJOoqQHCxFuwZXHHwsrpYe6kAP1Z7CvzCH4VVESPurUDQ2iBW44GSMso
NZ8TBLhy8JQIWhK1ch2NbfgiqlT7IBWjrDfHs46TuoMGH+uiUplG7STitzKiQUkBrgOmEyYk0vJZ
DKlGhcl5u9dsG8xyo5V5aIg+6hejROwG6GQqgzhirhK5VkQ64XlLxPK/L6mrB29kc6NuJH1TKkAW
2hPfPajIhfTcoAn/F3JFOFCQu4az9w==

--Boundary_(ID_yeOv3ezKLrCdJLNO/AKRfg)
Content-type: application/octet-stream; name=gnupg-w32-patches.tar.bz.sig
Content-transfer-encoding: base64
Content-disposition: attachment; filename=gnupg-w32-patches.tar.bz.sig

iD8DBQA9Fw0ziDLXZOHxOMoRAr2yAKDJ5X1q8qaGTT+bhaNO6Zs09JSTfgCgtIqcaDvaMUO2y5zi
7RNhgKg+bMs=

--Boundary_(ID_yeOv3ezKLrCdJLNO/AKRfg)--