Getting make errors while compiling in Ubuntu
-
I am getting these error could you please help to figure out![alt text](
In file included from /home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:5:
/home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp: In member function ‘QByteArray QOpcUaX509CertificateSigningRequestPrivate::createSelfSignedCertificate(const QOpcUaKeyPair&, int)’:
/home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:426:34: error: cannot convert ‘GENERAL_NAMES*’ {aka ‘stack_st_GENERAL_NAME*’} to ‘OPENSSL_STACK*’ {aka ‘stack_st*’}
426 | q_sk_GENERAL_NAME_push(akid->issuer, generalName);
/home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/openssl_symbols_p.h:433:60: note: in definition of macro ‘q_sk_GENERAL_NAME_push’
433 | #define q_sk_GENERAL_NAME_push(st, val) q_OPENSSL_sk_push((st), (val))
| ^~
In file included from /home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/openssl_symbols_p.h:211,
from /home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:5:
/home/dell/Qt/6.7.2/Src/qtopcua/src/opcua/x509/qsslsocket_openssl11_symbols_p.h:60:57: note: initializing argument 1 of ‘void q_OPENSSL_sk_push(OPENSSL_STACK*, void*)’ -
Hi,
Which Linux distribution are you using ?
Which version of OpenSSL do you have installed ? -
Qt 6.7 needs openssl 3
-
Thank you!
-
update for anyone else this affects: after installing openssl-3.3.1 form source, I also had to add /usr/local/lib64 to the ldconfig search path (
sudo ldconfig /usr/local/lib64
). This is the default openssl-3.3.1 install location and had not been used by anything else on my Debian 11.3 system