dev-cpp/commoncpp2-1.8.1-r1 fails to build with net-libs/gnutls-3.4.11 Error message: libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=native -O2 -pipe -c ssl.cpp -fPIC -DPIC -o .libs/ssl.o libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=native -O2 -pipe -c mime.cpp -fPIC -DPIC -o .libs/mime.o libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=native -O2 -pipe -c applog.cpp -fPIC -DPIC -o .libs/applog.o In file included from ssl.cpp:51:0: ../inc/cc++/ssl.h:61:21: warning: ‘gnutls_session’ is deprecated (declared at /usr/include/gnutls/compat.h:78) [-Wdeprecated-declarations] gnutls_session session; ^ ../inc/cc++/ssl.h:62:36: warning: ‘gnutls_certificate_credentials’ is deprecated (declared at /usr/include/gnutls/compat.h:95) [-Wdeprecated-declarations] gnutls_certificate_credentials xcred; ^ ssl.cpp: In member function ‘bool ost::SSLStream::getSession()’: ssl.cpp:337:69: error: ‘gnutls_certificate_type_set_priority’ was not declared in this scope gnutls_certificate_type_set_priority(ssl->session, cert_priority); ^ ssl.cpp:339:45: warning: ‘gnutls_transport_ptr’ is deprecated (declared at /usr/include/gnutls/compat.h:113) [-Wdeprecated-declarations] gnutls_transport_set_ptr(ssl->session, (gnutls_transport_ptr)so); ^ ssl.cpp:339:66: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] gnutls_transport_set_ptr(ssl->session, (gnutls_transport_ptr)so); ^ Makefile:676: recipe for target 'ssl.lo' failed make[2]: *** [ssl.lo] Error 1
This bug is also present on my box. Coincident packages & configurations: * dev-cpp/commoncpp2-1.8.1-r1::gentoo[ +gnutls, +ipv6, +ssl], and * net-libs/gnutls-3.4.14:0/30::gentoo[+abi_x86_32, +abi_x86_64, +crywrap, +cxx, +dane, +linguas_en, +nls, +openssl, +tools, +zlib] The messages thrown by my box note the locations of the relevant depreciation declarations: ################################################################################ [...] In file included from ssl.cpp:51:0: ../inc/cc++/ssl.h:61:21: warning: ‘gnutls_session’ is deprecated [-Wdeprecated-declarations] gnutls_session session; ^ In file included from /usr/include/gnutls/gnutls.h:2594:0, from ../inc/cc++/ssl.h:59, from ssl.cpp:51: /usr/include/gnutls/compat.h:78:26: note: declared here typedef gnutls_session_t gnutls_session _GNUTLS_GCC_ATTR_DEPRECATED; ^ In file included from ssl.cpp:51:0: ../inc/cc++/ssl.h:62:36: warning: ‘gnutls_certificate_credentials’ is deprecated [-Wdeprecated-declarations] gnutls_certificate_credentials xcred; ^ In file included from /usr/include/gnutls/gnutls.h:2594:0, from ../inc/cc++/ssl.h:59, from ssl.cpp:51: /usr/include/gnutls/compat.h:95:5: note: declared here gnutls_certificate_credentials _GNUTLS_GCC_ATTR_DEPRECATED; ^ ssl.cpp: In member function ‘bool ost::SSLStream::getSession()’: ssl.cpp:337:69: error: ‘gnutls_certificate_type_set_priority’ was not declared in this scope gnutls_certificate_type_set_priority(ssl->session, cert_priority); ^ ssl.cpp:339:45: warning: ‘gnutls_transport_ptr’ is deprecated [-Wdeprecated-declarations] gnutls_transport_set_ptr(ssl->session, (gnutls_transport_ptr)so); ^ In file included from /usr/include/gnutls/gnutls.h:2594:0, from ../inc/cc++/ssl.h:59, from ssl.cpp:51: /usr/include/gnutls/compat.h:113:32: note: declared here typedef gnutls_transport_ptr_t gnutls_transport_ptr ^ ssl.cpp:339:66: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] gnutls_transport_set_ptr(ssl->session, (gnutls_transport_ptr)so); [...] ################################################################################ Will attach build.log.
Created attachment 441824 [details] Complete build log
Fixed in commoncpp2-1.8.1-r3, please check.