Some errors when building under Ubuntu-Mate 16.04

424 views
Skip to first unread message

Alain Aupeix

unread,
Jun 2, 2018, 8:39:37 AM6/2/18
to harbour-dev
hbssl failed to build, and makin deb fails too because ssl.

Perhaps as for my problem with hwgui ?
A link with libgtk+ version (see libgtk+ versions in my previous post) ?

A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 & Xu.buntu 16.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev
(2018-03-016 17:10) | Hw.Gui (2642)
------------------------------------------------------------------------
hbssl_error.txt

Alain Aupeix

unread,
Jun 2, 2018, 4:09:07 PM6/2/18
to harbour-dev
I tried to use harbour and hwguin built under Ubuntu 12.04 (installed
using my debs).

Trying to build with this installation, I have errors.
Error-with-old-deb.txt

Alain Aupeix

unread,
Jun 2, 2018, 4:09:36 PM6/2/18
to harbour-dev
I tried to use harbour and hwguin built under Ubuntu 12.04 (installed
using my debs).

Trying to build with this installation, I have errors.

Can it help to solve the problem ?
Error-with-old-deb.txt

Alain Aupeix

unread,
Jun 4, 2018, 6:50:38 AM6/4/18
to harbour-dev
Le 02/06/2018 à 14:39, Alain Aupeix a écrit :
> hbssl failed to build, and making deb fails too because ssl.
> A+

No idea about the problems when building harbour under Linux ?

Thanks

Bruno Luciani

unread,
Jun 20, 2018, 9:41:59 AM6/20/18
to harbou...@googlegroups.com
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$


--
You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Bruno Luciani
Area Ingenieria
Brawnius Tecnologia y Servicios 
BWS Central de Monitoreo
San Francisco Javier 1066
Ramallo - 03407-422178/422185
www.brawnius.com.ar
www.bwsalarmas.com.ar

Phil Krylov

unread,
Jun 20, 2018, 10:03:31 AM6/20/18
to harbou...@googlegroups.com
These distros have unstable version of OpenSSL, 1.1.x. Support for OpenSSL 1.1.x is in vszakats's Harbour fork, "3.4". Viktor has also dropped support for some older platforms and versions of OpenSSL so straight porting of his code to  "3.2" is not possible without thorough testing and fixing compatibility with older platforms. You may have better luck building Viktor's code on these distros.
С уважением,
Филипп Крылов.

Bruno Luciani

unread,
Jun 20, 2018, 11:09:34 AM6/20/18
to harbou...@googlegroups.com
Yes it work , but the problem is that we are the Linux Mantainers of Harbour Package in Harbour Sourceforge

What we do ?  upload the DEb package constructed using Vzakats fork ?

Bruno

Alain Aupeix

unread,
Jun 20, 2018, 12:08:59 PM6/20/18
to harbou...@googlegroups.com
Le 20/06/2018 à 17:09, Bruno Luciani a écrit :
> Yes it work , but the problem is that we are the Linux Mantainers of
> Harbour Package in Harbour Sourceforge
>
> What we do ? upload the DEb package constructed using Vzakats fork ?
>
> Bruno
>
> 2018-06-20 11:03 GMT-03:00 Phil Krylov <phil....@gmail.com
> <mailto:phil....@gmail.com>>:
>
> These distros have unstable version of OpenSSL, 1.1.x. Support for
> OpenSSL 1.1.x is in vszakats's Harbour fork, "3.4". Viktor has
> also dropped support for some older platforms and versions of
> OpenSSL so straight porting of his code to "3.2" is not possible
> without thorough testing and fixing compatibility with older
> platforms. You may have better luck building Viktor's code on
> these distros.
>

I correct what I said first, it was not with mate 16.04 but Mate 18.04
that I had problems, and I think all the 18.04, and also probably debian
9 which have the problem.

I personnaly don't want to change for 3.4, and I hope that somebody can
found the solution for 3.2

The only problem I have with harbour and xubuntu 16.04, is the
impossibility to build gtqtc, as libqt5-dev doesn't exist. I have tried
installing qtbase5-dev-tools and qt5-default and setting HB_QTPATH, but
it doesn't help

With 18.04, I had problems with hbcurl, hbssl and gtqtc

Bruno Luciani

unread,
Jun 20, 2018, 6:06:49 PM6/20/18
to harbou...@googlegroups.com
In debian 9 , hbcurl not compiles , it seems that is a missconfiguration in hbcurl.HBP in relation to debian paths or library name

Bruno

--
You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alain Aupeix

unread,
Jun 21, 2018, 3:14:51 AM6/21/18
to harbou...@googlegroups.com
Le 21/06/2018 à 00:06, Bruno Luciani a écrit :
> In debian 9 , hbcurl not compiles , it seems that is a
> missconfiguration in hbcurl.HBP in relation to debian paths or library
> name
>
> Bruno

Hum... I don't know if it's a debian specific problem, but for ubuntu,
the same hbp is ok for 16.04, and ko for 18.04.

So, it seems that the problem is not about hbp file, but because perhaps
about name and/or location of libraries under Ubuntu 18.04 or Debian 9.
Reply all
Reply to author
Forward
0 new messages