make distcheck failure in gnutls-guile 'ERROR: no code for module (gnutls)'

Simon Josefsson simon at josefsson.org
Wed Jan 18 11:58:22 CET 2012


ludo at gnu.org (Ludovic Courtès) writes:

> Hi,
>
> Simon Josefsson <simon at josefsson.org> skribis:
>
>> ludo at gnu.org (Ludovic Courtès) writes:
>>
>>> Hi Simon,
>>>
>>> Simon Josefsson <simon at josefsson.org> skribis:
>>>
>>>> I'm getting the error below on 'make distcheck'.  Any ideas?  There
>>>> haven't been any significant changes in the guile/ sub-directory for
>>>> quite a while, so I'm puzzled what triggered this.
>>>
>>> Can you try:
>>>
>>>   $ ./pre-inst-guile
>>>   guile> (use-modules (gnutls))
>>>
>>> Most likely guile-gnutls.so fails to be loaded for some reason–e.g.,
>>> unresolved symbols.
>>
>> That works fine.  It is only when I run 'make distcheck' the problem
>> happens.  'make check' works.  Is there any way to make the code print
>> some more debugging information to allow me to pin-point the problem?
>> Right now it says:
>>
>> ERROR: no code for module (gnutls)
>> FAIL: anonymous-auth.scm
>
> That’s another $(builddir) != $(srcdir) issue.  Can you check whether
> f02628b3c9577e9a5a1fcaa87bdd2759fbd7011c fixes the problem?

Now I get a different error message:

make[4]: Entering directory `/home/jas/src/gnutls/gnutls-3.0.11/_build/guile/tests'
ERROR: In procedure dynamic-link:
ERROR: file: "/home/jas/src/gnutls/gnutls-3.0.11/_build/../guile/src/guile-gnutls-v-2", message: "file not found"
FAIL: anonymous-auth.scm

With the patch below 'make distcheck' continues.  Reading gnutls.scm, it
seems like the right thing to me, but please confirm.

diff --git a/guile/pre-inst-guile.in b/guile/pre-inst-guile.in
index cd74e32..9dd409d 100644
--- a/guile/pre-inst-guile.in
+++ b/guile/pre-inst-guile.in
@@ -24,7 +24,7 @@ GUILE_LOAD_PATH="@abs_top_srcdir@/guile/modules:$GUILE_LOAD_PATH"
 GUILE_LOAD_PATH="@abs_top_builddir@/guile/modules:$GUILE_LOAD_PATH"
 export GUILE_LOAD_PATH
 
-GNUTLS_GUILE_EXTENSION_DIR="@abs_top_srcdir@/guile/src"
+GNUTLS_GUILE_EXTENSION_DIR="@abs_top_builddir@/guile/src"
 export GNUTLS_GUILE_EXTENSION_DIR
 
 exec @abs_top_builddir@/libtool --mode=execute		                    \

/Simon




More information about the Gnutls-devel mailing list