Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qtopcua 5.14 openssl errors after uptate



  • Hello,

    I'm currently using module "qtopcua" in version 5.12. After update to version 5.14 there is a lot of openssl errors when I'm trying to build module. Could somebody, please give a hint what's happening?

    In file included from C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\openssl_symbols_p.h:248:0,
                     from C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qopcuax509certificatesigningrequest.cpp:38:
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:89:40: error: 'OPENSSL_STACK' was not declared in this scope
     Q_AUTOTEST_EXPORT int q_OPENSSL_sk_num(OPENSSL_STACK *a);
                                            ^~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:89:40: note: suggested alternative: 'OPENSSL_BLOCK'
     Q_AUTOTEST_EXPORT int q_OPENSSL_sk_num(OPENSSL_STACK *a);
                                            ^~~~~~~~~~~~~
                                            OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:89:55: error: 'a' was not declared in this scope
     Q_AUTOTEST_EXPORT int q_OPENSSL_sk_num(OPENSSL_STACK *a);
                                                           ^
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:90:46: error: variable or field 'q_OPENSSL_sk_pop_free' declared void
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_pop_free(OPENSSL_STACK *a, void (*b)(void *));
                                                  ^~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:90:46: error: 'OPENSSL_STACK' was not declared in this scope
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:90:46: note: suggested alternative: 'OPENSSL_BLOCK'
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_pop_free(OPENSSL_STACK *a, void (*b)(void *));
                                                  ^~~~~~~~~~~~~
                                                  OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:90:61: error: 'a' was not declared in this scope
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_pop_free(OPENSSL_STACK *a, void (*b)(void *));
                                                                 ^
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:90:71: error: 'b' was not declared in this scope
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_pop_free(OPENSSL_STACK *a, void (*b)(void *));
                                                                           ^
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:90:74: error: expected primary-expression before 'void'
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_pop_free(OPENSSL_STACK *a, void (*b)(void *));
                                                                              ^~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:91:19: error: 'OPENSSL_STACK' does not name a type; did you mean 'OPENSSL_BLOCK'?
     Q_AUTOTEST_EXPORT OPENSSL_STACK *q_OPENSSL_sk_new_null();
                       ^~~~~~~~~~~~~
                       OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:92:42: error: variable or field 'q_OPENSSL_sk_push' declared void
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data);
                                              ^~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:92:42: error: 'OPENSSL_STACK' was not declared in this scope
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:92:42: note: suggested alternative: 'OPENSSL_BLOCK'
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data);
                                              ^~~~~~~~~~~~~
                                              OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:92:57: error: 'st' was not declared in this scope
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data);
                                                             ^~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:92:61: error: expected primary-expression before 'void'
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data);
                                                                 ^~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:93:42: error: variable or field 'q_OPENSSL_sk_free' declared void
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_free(OPENSSL_STACK *a);
                                              ^~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:93:42: error: 'OPENSSL_STACK' was not declared in this scope
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:93:42: note: suggested alternative: 'OPENSSL_BLOCK'
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_free(OPENSSL_STACK *a);
                                              ^~~~~~~~~~~~~
                                              OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:93:57: error: 'a' was not declared in this scope
     Q_AUTOTEST_EXPORT void q_OPENSSL_sk_free(OPENSSL_STACK *a);
                                                             ^
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:94:45: error: 'OPENSSL_STACK' was not declared in this scope
     Q_AUTOTEST_EXPORT void * q_OPENSSL_sk_value(OPENSSL_STACK *a, int b);
                                                 ^~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:94:45: note: suggested alternative: 'OPENSSL_BLOCK'
     Q_AUTOTEST_EXPORT void * q_OPENSSL_sk_value(OPENSSL_STACK *a, int b);
                                                 ^~~~~~~~~~~~~
                                                 OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:94:60: error: 'a' was not declared in this scope
     Q_AUTOTEST_EXPORT void * q_OPENSSL_sk_value(OPENSSL_STACK *a, int b);
                                                                ^
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:94:63: error: expected primary-expression before 'int'
     Q_AUTOTEST_EXPORT void * q_OPENSSL_sk_value(OPENSSL_STACK *a, int b);
                                                                   ^~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:94:68: error: expression list treated as compound expression in initializer [-fpermissive]
     Q_AUTOTEST_EXPORT void * q_OPENSSL_sk_value(OPENSSL_STACK *a, int b);
                                                                        ^
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:97:45: error: 'OPENSSL_INIT_SETTINGS' does not name a type; did you mean 'OPENSSL_CSTRING'?
     int q_OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
                                                 ^~~~~~~~~~~~~~~~~~~~~
                                                 OPENSSL_CSTRING
    In file included from C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\openssl_symbols_p.h:248:0,
                     from C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qopcuax509certificatesigningrequest.cpp:38:
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:110:50: error: 'X509_STORE_CTX_verify_cb' has not been declared
     void q_X509_STORE_set_verify_cb(X509_STORE *ctx, X509_STORE_CTX_verify_cb verify_cb);
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:129:1: error: 'OPENSSL_STACK' does not name a type; did you mean 'OPENSSL_BLOCK'?
     OPENSSL_STACK *q_sk_new_null();
     ^~~~~~~~~~~~~
     OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:134:16: error: variable or field 'q_sk_push' declared void
     void q_sk_push(OPENSSL_STACK *st, void *data);
                    ^~~~~~~~~~~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:134:16: error: 'OPENSSL_STACK' was not declared in this scope
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:134:16: note: suggested alternative: 'OPENSSL_BLOCK'
     void q_sk_push(OPENSSL_STACK *st, void *data);
                    ^~~~~~~~~~~~~
                    OPENSSL_BLOCK
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:134:31: error: 'st' was not declared in this scope
     void q_sk_push(OPENSSL_STACK *st, void *data);
                                   ^~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:134:35: error: expected primary-expression before 'void'
     void q_sk_push(OPENSSL_STACK *st, void *data);
                                       ^~~~
    C:\Qt\5.14.1\msvc2017_64\qtopcua\src\opcua\x509\qsslsocket_openssl11_symbols_p.h:142:48: error: 'OPENSSL_INIT_SETTINGS' does not name a type; did you mean 'OPENSSL_CSTRING'?
     int q_OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
                                                    ^~~~~~~~~~~~~~~~~~~~~
                                                    OPENSSL_CSTRING
    mingw32-make[3]: *** [Makefile.Release:6378: .obj/release/qopcuax509certificatesigningrequest.o] Error 1
    mingw32-make[3]: Leaving directory 'C:/Qt/5.14.1/msvc2017_64/qtopcua/build/src/opcua'
    mingw32-make[2]: *** [Makefile:45: release] Error 2
    mingw32-make[2]: Leaving directory 'C:/Qt/5.14.1/msvc2017_64/qtopcua/build/src/opcua'
    mingw32-make[1]: *** [Makefile:52: sub-opcua-make_first] Error 2
    mingw32-make[1]: Leaving directory 'C:/Qt/5.14.1/msvc2017_64/qtopcua/build/src'
    mingw32-make: *** [Makefile:53: sub-src-make_first] Error 2
    

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you have OpenSSL available on your machine ?
    If so, which version ?
    How are you building that module ?


Log in to reply