Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583110 - dev-cpp/commoncpp2-1.8.1-r1 with >=net-libs/gnutls-3.4.0: ssl.cpp:337:69: error: ‘gnutls_certificate_type_set_priority’ was not declared in this scope
Summary: dev-cpp/commoncpp2-1.8.1-r1 with >=net-libs/gnutls-3.4.0: ssl.cpp:337:69: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnutls-3.5-breakage
  Show dependency tree
 
Reported: 2016-05-15 18:32 UTC by PhobosK
Modified: 2017-03-03 23:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (build.log,49.02 KB, text/plain)
2016-07-28 16:55 UTC, jeremiah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PhobosK 2016-05-15 18:32:09 UTC
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
Comment 1 jeremiah 2016-07-28 16:53:22 UTC
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.
Comment 2 jeremiah 2016-07-28 16:55:21 UTC
Created attachment 441824 [details]
Complete build log
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2017-03-03 23:49:15 UTC
Fixed in commoncpp2-1.8.1-r3, please check.