c++ -o build/release/libdcpp/CryptoManager.o -c -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -fomit-frame-pointer -pthread -DLIBICONV_PLUG -DHAVE_IFADDRS_H -DHAVE_LIBNOTIFY -DHAVE_LIBNOTIFY_0_7 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DNDEBUG -D_DATADIR='"/usr/local/share"' -DBUILDING_DCPP -I. dcpp/CryptoManager.cpp dcpp/CryptoManager.cpp:51:34: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] clientContext.reset(SSL_CTX_new(TLSv1_client_method())); ^ /usr/include/openssl/ssl.h:1866:1: note: 'TLSv1_client_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) ^ /usr/include/openssl/opensslconf.h:147:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:110:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ dcpp/CryptoManager.cpp:52:37: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] clientVerContext.reset(SSL_CTX_new(TLSv1_client_method())); ^ /usr/include/openssl/ssl.h:1866:1: note: 'TLSv1_client_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) ^ /usr/include/openssl/opensslconf.h:147:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:110:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ dcpp/CryptoManager.cpp:53:34: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] serverContext.reset(SSL_CTX_new(TLSv1_server_method())); ^ /usr/include/openssl/ssl.h:1865:1: note: 'TLSv1_server_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) ^ /usr/include/openssl/opensslconf.h:147:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:110:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ dcpp/CryptoManager.cpp:54:37: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] serverVerContext.reset(SSL_CTX_new(TLSv1_server_method())); ^ /usr/include/openssl/ssl.h:1865:1: note: 'TLSv1_server_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) ^ /usr/include/openssl/opensslconf.h:147:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:110:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ dcpp/CryptoManager.cpp:110:6: error: member access into incomplete type 'dh_st' dh->p = BN_bin2bn(dh4096_p, sizeof(dh4096_p), 0); ^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'dh_st' typedef struct dh_st DH; ^ dcpp/CryptoManager.cpp:111:6: error: member access into incomplete type 'dh_st' dh->g = BN_bin2bn(dh4096_g, sizeof(dh4096_g), 0); ^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'dh_st' typedef struct dh_st DH; ^ dcpp/CryptoManager.cpp:113:11: error: member access into incomplete type 'dh_st' if (!dh->p || !dh->g) { ^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'dh_st' typedef struct dh_st DH; ^ 4 warnings and 3 errors generated. scons: *** [build/release/libdcpp/CryptoManager.o] Error 1 scons: building terminated because of errors. *** Error code 1 Stop. make: stopped in /usr/ports/net-p2p/linuxdcpp =>> Cleaning up wrkdir ===> Cleaning for linuxdcpp-1.1.0_13 build of net-p2p/linuxdcpp | linuxdcpp-1.1.0_13 ended at Thu Dec 13 07:16:53 CET 2018 build time: 00:01:21 !!! build failure encountered !!!