help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error in compiling GnuTLS example


From: Nikos Mavrogiannopoulos
Subject: Re: error in compiling GnuTLS example
Date: Tue, 28 Feb 2012 09:31:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

On 02/27/2012 11:38 PM, Peter Penzov wrote:

> Hi, I use Centos with GnuTLS version gnutls-2.8.5-4.el6.x86_64. I
> trying to compile the example ex-serv-x509.c. When I try to compile
> it using this command: gcc -o server ex-serv-x509.c -lgnutls
> 
> I get this error: ex-serv-x509.c: In function ‘generate_dh_params’: 
> ex-serv-x509.c:57: error: ‘GNUTLS_PK_DH’ undeclared (first use in
> this function) ex-serv-x509.c:57: error: (Each undeclared identifier
> is reported only once ex-serv-x509.c:57: error: for each function it
> appears in.) ex-serv-x509.c:57: error: ‘GNUTLS_SEC_PARAM_LOW’
> undeclared (first use in this function) ex-serv-x509.c: In function
> ‘main’: ex-serv-x509.c:137: warning: cast to pointer from integer of
> different size How I can fix this error?


Most probably you are compiling one of the examples in the current
documentation using the "old" 2.8.5. This is not possible. Either use a
current version of gnutls or use the examples from the documentation in
your distribution.

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]