Failed to build gnupg-1.2.4 on Windows with Cygwin and gcc 3.3.1

John Clizbe JPClizbe at comcast.net
Mon May 24 22:05:03 CEST 2004


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

Alex Chen wrote:

> I downloaded gnupg-1.2.4 and tried to build it on Windows under Cygwin.
> I did that under the bash shell.  I first ran 'configure', which took
> quite some time to finish.
> Then I ran 'make' from the top directory.  The compilation seemed to
> went smoothly until
> it came to linking.  Then I got the following error messages:
>
> gcc  -g -O2 -Wall   -o mpicalc.exe  mpicalc.o ../cipher/libcipher.a
> ../mpi/libmp
> i.a ../util/libutil.a ../intl/libintl.a
> ../mpi/libmpi.a(mpi-add.o)(.text+0x258): In function `mpi_add':
<snip>
> The list when on and on.  I suspect somehow the compiler was adding the
> leading '_' in referencing
> the functions.  But I do not know how to change the configuration.
>

./configure --disable-asm ?

re-run configure, make clean, then make

./configure && make works out-of-the box with MSys/MinGW without Cygwin's
cygwin1.dll dependency. http://www.mingw.org

The following patch to configure will enable LDAP support with the
keyserver helpers. If you're going to use MinGW stick with the 3.2 version
of the runtime.

- --- configure.ac.org	Sat May 22 10:14:16 2004
+++ configure.ac	Sat May 22 10:15:10 2004
@@ -541,7 +541,7 @@
 # LDAPLIBS="-Lfoo -lbar"

 if test "$try_ldap" = yes ; then
- -  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber"
"-lldap -llber -lresolv"; do
+  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber"
"-lldap -llber -lresolv" "-lwldap32"; do
     _ldap_save_libs=$LIBS
     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"

- --- configure.org	Sat May 22 10:13:57 2004
+++ configure	Sat May 22 10:20:12 2004
@@ -6263,7 +6263,7 @@
 # LDAPLIBS="-Lfoo -lbar"

 if test "$try_ldap" = yes ; then
- -  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber"
"-lldap -llber -lresolv"; do
+  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber"
"-lldap -llber -lresolv" "-lwldap32"; do
     _ldap_save_libs=$LIBS
     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"



- --
John P. Clizbe                   Inet:   JPClizbe(a)comcast DOT nyet
Golden Bear Networks             PGP/GPG KeyID: 0x608D2A10
  "Most men take the straight and narrow. A few take the road less
traveled.  I chose to cut through the woods."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.6 (Windows 2000 SP4)
Comment: Annoy John Asscraft -- Use Strong Encyption
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAslVuHQSsSmCNKhARAhNeAKCTzSewn6j6o/Ul4/RJJKpGRGFJBgCgq39o
h24+rMc2hSNrN2almZAO2mk=
=Tffa
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list