I ' ve just tried on Debian 9 and I think that i have the same errors
hbmk2: 'cd' to: ../lib/linux/gcc/.hbmk/hbssl
hbmk2: C/C++ compiler command:
gcc -c -O3 -DHBMK_HAS_OPENSSL -DOPENSSL_NO_IDEA -W -Wall -pipe -I../../../../../include -I/usr/include ../../../../../contrib/hbssl/evpciph.c ../../../../../contrib/hbssl/evpenc.c ../../../../../contrib/hbssl/ssl.c
../../../../../contrib/hbssl/evpciph.c: In function ‘HB_FUN_HB_EVP_CIPHER_CTX_CREATE’:
../../../../../contrib/hbssl/evpciph.c:481:66: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}’
EVP_CIPHER_CTX * ctx = ( EVP_CIPHER_CTX * ) hb_xgrab( sizeof( EVP_CIPHER_CTX ) );
^~~~~~~~~~~~~~
../../../../../contrib/hbssl/evpenc.c: In function ‘HB_FUN_HB_EVP_ENCODE_CTX_CREATE’:
../../../../../contrib/hbssl/evpenc.c:92:66: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_ENCODE_CTX {aka struct evp_Encode_Ctx_st}’
EVP_ENCODE_CTX * ctx = ( EVP_ENCODE_CTX * ) hb_xgrab( sizeof( EVP_ENCODE_CTX ) );
^~~~~~~~~~~~~~
../../../../../contrib/hbssl/ssl.c: In function ‘HB_FUN_SSL_STATE’:
../../../../../contrib/hbssl/ssl.c:228:20: warning: implicit declaration of function ‘SSL_state’; did you mean ‘SSL_write’? [-Wimplicit-function-declaration]
hb_retni( SSL_state( ssl ) );
^~~~~~~~~
SSL_write
../../../../../contrib/hbssl/ssl.c: In function ‘HB_FUN_SSL_GET_SSL_METHOD’:
../../../../../contrib/hbssl/ssl.c:628:24: warning: implicit declaration of function ‘SSLv3_method’; did you mean ‘SSLv23_method’? [-Wimplicit-function-declaration]
if( p == SSLv3_method() ) n = HB_SSL_CTX_NEW_METHOD_SSLV3;
^~~~~~~~~~~~
SSLv23_method
../../../../../contrib/hbssl/ssl.c:628:21: warning: comparison between pointer and integer
if( p == SSLv3_method() ) n = HB_SSL_CTX_NEW_METHOD_SSLV3;
^~
../../../../../contrib/hbssl/ssl.c:629:24: warning: implicit declaration of function ‘SSLv3_server_method’; did you mean ‘SSLv23_server_method’? [-Wimplicit-function-declaration]
else if( p == SSLv3_server_method() ) n = HB_SSL_CTX_NEW_METHOD_SSLV3_SERVER;
^~~~~~~~~~~~~~~~~~~
SSLv23_server_method
../../../../../contrib/hbssl/ssl.c:629:21: warning: comparison between pointer and integer
else if( p == SSLv3_server_method() ) n = HB_SSL_CTX_NEW_METHOD_SSLV3_SERVER;
^~
../../../../../contrib/hbssl/ssl.c:630:24: warning: implicit declaration of function ‘SSLv3_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
else if( p == SSLv3_client_method() ) n = HB_SSL_CTX_NEW_METHOD_SSLV3_CLIENT;
^~~~~~~~~~~~~~~~~~~
SSLv23_client_method
../../../../../contrib/hbssl/ssl.c:630:21: warning: comparison between pointer and integer
else if( p == SSLv3_client_method() ) n = HB_SSL_CTX_NEW_METHOD_SSLV3_CLIENT;
^~
../../../../../contrib/hbssl/ssl.c:636:10: warning: ‘TLSv1_method’ is deprecated [-Wdeprecated-declarations]
else if( p == TLSv1_method() ) n = HB_SSL_CTX_NEW_METHOD_TLSV1;
^~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from ../../../../../contrib/hbssl/hbssl.h:59,
from ../../../../../contrib/hbssl/ssl.c:66:
/usr/include/openssl/ssl.h:1627:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
^
../../../../../contrib/hbssl/ssl.c:637:10: warning: ‘TLSv1_server_method’ is deprecated [-Wdeprecated-declarations]
else if( p == TLSv1_server_method() ) n = HB_SSL_CTX_NEW_METHOD_TLSV1_SERVER;
^~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from ../../../../../contrib/hbssl/hbssl.h:59,
from ../../../../../contrib/hbssl/ssl.c:66:
/usr/include/openssl/ssl.h:1628:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */
^
../../../../../contrib/hbssl/ssl.c:638:10: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
else if( p == TLSv1_client_method() ) n = HB_SSL_CTX_NEW_METHOD_TLSV1_CLIENT;
^~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from ../../../../../contrib/hbssl/hbssl.h:59,
from ../../../../../contrib/hbssl/ssl.c:66:
/usr/include/openssl/ssl.h:1629:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
^
../../../../../contrib/hbssl/ssl.c: In function ‘HB_FUN_SSL_GET_CIPHERS’:
../../../../../contrib/hbssl/ssl.c:1415:49: warning: passing argument 3 of ‘hb_arraySetPtr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
hb_arraySetPtr( pArray, tmp + 1, sk_SSL_CIPHER_value( stack, tmp ) );
^~~~~~~~~~~~~~~~~~~
In file included from ../../../../../contrib/hbssl/ssl.c:56:0:
../../../../../include/hbapi.h:851:31: note: expected ‘void *’ but argument is of type ‘const SSL_CIPHER * {aka const struct ssl_cipher_st *}’
extern HB_EXPORT HB_BOOL hb_arraySetPtr( PHB_ITEM pArray, HB_SIZE nIndex, void * pValue );
^~~~~~~~~~~~~~
../../../../../contrib/hbssl/ssl.c: In function ‘HB_FUN_SSL_SET_MSG_CALLBACK’:
../../../../../contrib/hbssl/ssl.c:1580:45: error: dereferencing pointer to incomplete type ‘SSL {aka struct ssl_st}’
hb_itemRelease( ( PHB_ITEM ) ssl->msg_callback_arg );
^~
hbmk2[hbssl]: Error: Running C/C++ compiler. 1
gcc -c -O3 -DHBMK_HAS_OPENSSL -DOPENSSL_NO_IDEA -W -Wall -pipe -I../../../../../include -I/usr/include ../../../../../contrib/hbssl/evpciph.c ../../../../../contrib/hbssl/evpenc.c ../../../../../contrib/hbssl/ssl.c
hbmk2: 'cd' back.
hbmk2[hbssl]: Exit status: 6: failed in compilation (Harbour, C compiler, Resource compiler)
! Finished package build...
make[2]: *** [Makefile:8: first] Error 6
make[2]: se sale del directorio '/home/bruno/Descargas/core-master/contrib'
make[1]: *** [config/
dir.mk:71: contrib] Error 2
make[1]: se sale del directorio '/home/bruno/Descargas/core-master'
make: *** [debian/rules:40: build-stamp] Error 2
bruno@cx:~/Descargas/core-master$