[Help-gnutls] examples won't compile

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu Oct 30 19:11:45 CET 2008


Martin Knappe wrote:
> Hi
> 
> I'm new to gnutls and I've tried to compile the "Echo server with SRP
> authentication" which can be found under *
> http://www.gnu.org/software/gnutls/manual/html_node/Echo-Server-with-SRP-authentication.html#Echo-Server-with-SRP-authentication
> .
> Compiling with
> 
> martin at martin-desktop:~/development/examples/srp_server$ gcc main.c
> `libgnutls-config --cflags --libs`
> 
> gives me:
> 
> /tmp/cc2WjvhH.o: In function `initialize_tls_session':
> main.c:(.text+0x30): undefined reference to `gnutls_priority_set_direct'
> /tmp/cc2WjvhH.o: In function `main':
> main.c:(.text+0xd2): undefined reference to `gnutls_global_init_extra'
> collect2: ld gab 1 als Ende-Status zurück
> 
> I reckon this is because I am using an older version of gnutls (2.0.4).

Either download gnutls 2.0.4 and use the included manual or download the
manual from your distributor (in debian it is in gnutls-doc).

regards,
Nikos





More information about the Gnutls-help mailing list