[gnutls-devel] Guile bindings for GnuTLS don't build as shared library on MinGW

Eli Zaretskii eliz at gnu.org
Tue Dec 9 18:31:42 CET 2014


I've built GnuTLS 3.3.10 on MinGW, and noticed that the
guile-gnutls-v-2 library is built only as a static library, even when
--disable-static is given at configure time (and the rest of GnuTLS
libraries do build as DLLs).  The "librarynames" field in
guile-gnutls-v-2.la is empty.

I couldn't understand why that happens, the only clue is that the
libtool command uses the -module option, with which I'm not familiar
(why is it needed here?).  Also, there's this cryptic message from
libtool:

     make[4]: Entering directory `/d/usr/eli/utils/gnutls-3.3.10.with-guile/guile/src'
       CC       guile_gnutls_v_2_la-core.lo
       CC       guile_gnutls_v_2_la-errors.lo
       CC       guile_gnutls_v_2_la-utils.lo
       CCLD     guile-gnutls-v-2.la
     libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     make[4]: Leaving directory `/d/usr/eli/utils/gnutls-3.3.10.with-guile/guile/src'

But I think this message is harmless, and is related to the -undefined
option to libtool, or some such.

Any ideas where to look for the culprit?

TIA



More information about the Gnutls-devel mailing list