[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnutls 2.99.2
From: |
Roman Bogorodskiy |
Subject: |
Re: gnutls 2.99.2 |
Date: |
Mon, 30 May 2011 14:27:26 +0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Nikos Mavrogiannopoulos wrote:
> I've just released gnutls 2.99.2. It's main addition is the
> experimental support for Elliptic curves (ECDH and ECDSA).
Hi,
I had to make few minor changes to get this release compiled
successfully on FreeBSD:
- Add #include <netinet/in.h> to udp-serv.c for sockaddr_in.
Without it I had a failure like that:
udp-serv.c: In function 'udp_server':
udp-serv.c:27: error: storage size of 'cli_addr' isn't known
udp-serv.c: In function 'pull_timeout_func':
udp-serv.c:154: error: storage size of 'cli_addr' isn't known
udp-serv.c: In function 'pull_func':
udp-serv.c:194: error: storage size of 'cli_addr' isn't known
gmake[3]: *** [udp-serv.o] Error 1
gmake[3]: Leaving directory `/usr/home/novel/opt/gnutls/src'
- Move '-I$(srcdir)/includes' from AM_CXXFLAGS to
libgnutlsxx_la_CPPFLAGS to prevent including headers from
locally installed gnutls
Without this change I had:
/usr/local/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I.. -I../includes -I../includes -I/usr/local/include -I./includes -g -O2
-MT libgnutlsxx_la-gnutlsxx.lo -MD -MP -MF .deps/libgnutlsxx_la-gnutlsxx.Tpo -c
-o libgnutlsxx_la-gnutlsxx.lo `test -f 'gnutlsxx.cpp' || echo './'`gnutlsxx.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../includes -I../includes
-I/usr/local/include -I./includes -g -O2 -MT libgnutlsxx_la-gnutlsxx.lo -MD -MP
-MF .deps/libgnutlsxx_la-gnutlsxx.Tpo -c gnutlsxx.cpp -fPIC -DPIC -o
.libs/libgnutlsxx_la-gnutlsxx.o
In file included from /usr/local/include/gnutls/gnutlsxx.h:6,
from gnutlsxx.cpp:5:
/usr/local/include/gnutls/gnutls.h:767: error: expected ',' or '...' before '*'
token
/usr/local/include/gnutls/gnutls.h:768: error: ISO C++ forbids declaration of
'gnutls_datum' with no type
gnutlsxx.cpp:17: error: prototype for 'gnutls::session::session(unsigned int)'
does not match any in class 'gnutls::session'
/usr/local/include/gnutls/gnutlsxx.h:88: error: candidates are:
gnutls::session::session(const gnutls::session&)
/usr/local/include/gnutls/gnutlsxx.h:92: error:
gnutls::session::session(gnutls_connection_end_t)
gnutlsxx.cpp: In constructor 'gnutls::session::session(unsigned int)':
gnutlsxx.cpp:19: error: invalid conversion from 'unsigned int' to
'gnutls_connection_end_t'
gnutlsxx.cpp:19: error: initializing argument 2 of 'int
gnutls_init(gnutls_session_int**, gnutls_connection_end_t)'
gnutlsxx.cpp: At global scope:
gnutlsxx.cpp:681: error: variable or field 'set_retrieve_function' declared void
gnutlsxx.cpp:681: error: 'gnutls_certificate_retrieve_function' was not
declared in this scope
gnutlsxx.cpp:681: error: 'func' was not declared in this scope
*** Error code 1
Stop in /usr/home/novel/opt/gnutls/lib.
Both diffs attached.
Roman Bogorodskiy
gnutls_local_includes.diff
Description: Text Data
gnutls_missing_include.diff
Description: Text Data
pgp5cyyy4vtot.pgp
Description: PGP signature
Re: gnutls 2.99.2,
Roman Bogorodskiy <=