gnutls 2.99.2
Roman Bogorodskiy
novel at FreeBSD.org
Mon May 30 12:27:26 CEST 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls_local_includes.diff
Type: text/x-diff
Size: 623 bytes
Desc: not available
URL: </pipermail/attachments/20110530/dc524b0a/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls_missing_include.diff
Type: text/x-diff
Size: 476 bytes
Desc: not available
URL: </pipermail/attachments/20110530/dc524b0a/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: </pipermail/attachments/20110530/dc524b0a/attachment.pgp>
More information about the Gnutls-devel
mailing list