Saturday, 5 April 2014

Re: [gccsdk] GCC and GNUTLS - compiling problems

In message <36d6dcf253.Alex@bavariasound.chiemgau-net.de> you wrote:

> Hi all,
>
> I tried to include code from !LibGNUTLS using the commands
>
> gcc cert5.c -o cert5 -LLibGNUTLS: -lgnutls
>
> but it ends with
>
> LibGNUTLS:/libgnutls.a(gnutls_errors.o): In function `gnutls_perror':
> gnutls_errors.c:(.text+0xd8): undefined reference to `libintl_dgettext'
> gnutls_errors.c:(.text+0xf8): undefined reference to `libintl_dgettext'
>
> [a HUGE snip]
>
> LibGNUTLS:/libgnutls.a(sign.o): In function `_gnutls_x509_pkix_sign':
> sign.c:(.text+0x1a4): undefined reference to `asn1_copy_node'
> sign.c:(.text+0x294): undefined reference to `asn1_write_value'
> collect2: ld returned 1 exit status
> *
>
> At the moment I don't know what's going wrong. Any help is appreciated.
> Thanks.

The "LibGNUTLS:/libgnutls.a(..,)" tells you that the libgnutls.a library
is being used to find unresolved symbols. The second thing it tells
you that the object file between the round brackets (i.e. gnutls_errors.o
and sign.o in the quoted piece above) results in additional unresolved
symbols. You probably need to throw in more libraries on which libgnutls.a
is depending on. Didn't the LibGNUTLS package come with more than one
library ? If so, you might need to specify more -l options for each of
those. Library order is important, the search for unresolved symbols
happens according to the library order you're specifying.

I believe the libntl_dgettext unresolved symbol needs the gettext
(LibGetText-Dev) library but I don't know the other ones.

I see that Chris Gransden has packaged the libgnutls library so probably
he can help you further. Chris ?

John.
--
John Tytgat, in his comfy chair at home
John.Tytgat@aaug.net

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment