Compilation error gnutls-3.1.1 with nettle-2.5 on cygwin

Dr. Volker Zell dr.volker.zell at oracle.com
Sun Sep 9 12:53:03 CEST 2012


>>>>> Volker Zell writes:

By the way, the following patches are needed to build and test succesfully on cygwin:

The guile patch is needed for a shared library build on cygwin.

Th srcdir patch is needed to build outside of the source tree.

All the tests run fine except the guile test which gives:

make  check-TESTS
make[3]: Entering directory `/misc/src/release/gnutls-3.1.1-1/build/guile/tests'
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: anonymous-auth.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: session-record-port.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: pkcs-import-export.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: errors.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: x509-certificates.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: x509-auth.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: priorities.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: openpgp-keys.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: openpgp-keyring.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: openpgp-auth.scm
ERROR: In procedure dynamic-func:
ERROR: No such process
FAIL: srp-base64.scm
===================================
11 of 11 tests failed
Please report to bug-gnutls at gnu.org
===================================

Ciao
  Volker
  
--- origsrc/gnutls-3.1.1/guile/src/Makefile.am	2012-08-11 15:00:04.000000000 +0200
+++ src/gnutls-3.1.1/guile/src/Makefile.am	2012-09-07 15:36:01.750000000 +0200
@@ -32,7 +32,7 @@ BUILT_SOURCES = enum-map.i.c smob-types.
 CLEANFILES = $(BUILT_SOURCES)
 
 guileextension_LTLIBRARIES  = guile-gnutls-v-2.la
-guile_gnutls_v_2_la_LDFLAGS = -module
+guile_gnutls_v_2_la_LDFLAGS = -module -avoid-version -no-undefined
 
 # Linking against GnuTLS.
 GNUTLS_CORE_LIBS  = $(top_builddir)/lib/libgnutls.la
--- origsrc/gnutls-3.1.1/tests/pkcs12-decode/pkcs12	2012-08-04 13:09:16.000000000 +0200
+++ src/gnutls-3.1.1/tests/pkcs12-decode/pkcs12	2012-09-07 17:15:03.687500000 +0200
@@ -49,7 +49,7 @@ for p12 in 'client.p12 foobar' noclient.
 done
 
 file=test-null.p12
-$CERTTOOL --p12-info --inder --null-password --infile $file >/dev/null 2>&1
+$CERTTOOL --p12-info --inder --null-password --infile $srcdir/$file >/dev/null 2>&1
 rc=$?
 if test $rc != 0; then
 	echo "PKCS12 FATAL $file"



>>>>> Ilya Tumaykin writes:
    >> Did that patch fixed the issue for you?

    > Yes, thanks. It builds fine now.
    
    >> wMNAF code has not yet been tested on Windows platform.

    >> Could you please tell me the versions of Windows itself, cygwin and gmp you 
    >> are trying to build gnutls against, so I can reproduce this error?


    > All the latest versions you can get with setup.exe from the cygwin site.
    
    > Ciao
    >   Volker
  

-- 
DR. VOLKER ZELL | Principal Training Consultant | +49 211 74839 414
Oracle University

Oracle Deutschland GmbH | Hamborner Str. 51 | 40472 Düsseldorf

ORACLE Deutschland GmbH, Hauptverwaltung: Riesstraße 25, D-80992 München
Geschäftsführer: Jürgen Kunz, Registergericht: Amtsgericht München, HRB 82775




More information about the Gnutls-devel mailing list