CRUX

Welcome to CRUX bug tracking.
Tasklist

FS#1770 - QT4 failed to build

Attached to Project: CRUX
Opened by Wawrzyniec Niewodniczanski (wawrzek) - Sunday, 15 September 2019, 15:22 GMT
Last edited by Fredrik Rinnestam (frinnst) - Sunday, 15 September 2019, 21:55 GMT
Task Type Bug Report
Category ports
Status Closed
Assigned To No-one
Operating System CRUX
Severity Low
Priority Normal
Reported Version 3.5
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Trying to build QT4 I get following error.

g++ -c -include .pch/release-shared/QtNetwork -O2 -march=x86-64 -pipe -std=gnu++98 -Wno-deprecated -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I.moc/release-shared -o .obj/release-shared/qsslcertificate.o ssl/qsslcertificate.cpp
ssl/qsslcertificate.cpp: In member function 'QByteArray QSslCertificate::version() const':
ssl/qsslcertificate.cpp:264:68: error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}
QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->version)) + 1);
^~
In file included from ../../include/QtNetwork/qsslcertificate.h:1,
from ../../include/QtNetwork/../../src/network/ssl/qsslerror.h:47,
from ../../include/QtNetwork/qsslerror.h:1,
from ssl/qsslsocket.h:50,
from ssl/qsslsocket_p.h:46,
from ssl/qsslsocket_openssl_p.h:57,
from ssl/qsslsocket_openssl_symbols_p.h:57,
from ssl/qsslcertificate.cpp:114:
../../include/QtNetwork/../../src/network/ssl/qsslcertificate.h:53:16: note: forward declaration of 'X509' {aka 'struct x509_st'}
typedef struct x509_st X509; // ### check if this works
^~~~~~~
ssl/qsslcertificate.cpp: In member function 'QByteArray QSslCertificate::serialNumber() const':
ssl/qsslcertificate.cpp:279:45: error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}
ASN1_INTEGER *serialNumber = d->x509->cert_info->serialNumber;
^~
In file included from ../../include/QtNetwork/qsslcertificate.h:1,
from ../../include/QtNetwork/../../src/network/ssl/qsslerror.h:47,
from ../../include/QtNetwork/qsslerror.h:1,
from ssl/qsslsocket.h:50,
from ssl/qsslsocket_p.h:46,
from ssl/qsslsocket_openssl_p.h:57,
from ssl/qsslsocket_openssl_symbols_p.h:57,
from ssl/qsslcertificate.cpp:114:
../../include/QtNetwork/../../src/network/ssl/qsslcertificate.h:53:16: note: forward declaration of 'X509' {aka 'struct x509_st'}
typedef struct x509_st X509; // ### check if this works
^~~~~~~
ssl/qsslcertificate.cpp: In member function 'QSslKey QSslCertificate::publicKey() const':
ssl/qsslcertificate.cpp:492:32: error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}
X509_PUBKEY *xkey = d->x509->cert_info->key;
^~
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../include/QtNetwork/qsslcertificate.h:1,
from ../../include/QtNetwork/../../src/network/ssl/qsslerror.h:47,
from ../../include/QtNetwork/qsslerror.h:1,
from ssl/qsslsocket.h:50,
from ssl/qsslsocket_p.h:46,
from ssl/qsslsocket_openssl_p.h:57,
from ssl/qsslsocket_openssl_symbols_p.h:57,
from ssl/qsslcertificate.cpp:114:
../../include/QtNetwork/../../src/network/ssl/qsslcertificate.h:53:16: note: forward declaration of 'X509' {aka 'struct x509_st'}
typedef struct x509_st X509; // ### check if this works
^~~~~~~
ssl/qsslcertificate.cpp:496:29: error: invalid use of incomplete type 'EVP_PKEY' {aka 'struct evp_pkey_st'}
if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_RSA) {
^~
In file included from /usr/include/openssl/crypto.h:25,
from /usr/include/openssl/bio.h:20,
from /usr/include/openssl/asn1.h:16,
from ssl/qsslsocket_openssl_p.h:66,
from ssl/qsslsocket_openssl_symbols_p.h:57,
from ssl/qsslcertificate.cpp:114:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY' {aka 'struct evp_pkey_st'}
typedef struct evp_pkey_st EVP_PKEY;
^~~~~~~~~~~
ssl/qsslcertificate.cpp:500:36: error: invalid use of incomplete type 'EVP_PKEY' {aka 'struct evp_pkey_st'}
} else if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_DSA) {
^~
In file included from /usr/include/openssl/crypto.h:25,
from /usr/include/openssl/bio.h:20,
from /usr/include/openssl/asn1.h:16,
from ssl/qsslsocket_openssl_p.h:66,
from ssl/qsslsocket_openssl_symbols_p.h:57,
from ssl/qsslcertificate.cpp:114:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY' {aka 'struct evp_pkey_st'}
typedef struct evp_pkey_st EVP_PKEY;
^~~~~~~~~~~
ssl/qsslcertificate.cpp:504:36: error: invalid use of incomplete type 'EVP_PKEY' {aka 'struct evp_pkey_st'}
} else if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_DH) {
^~
In file included from /usr/include/openssl/crypto.h:25,
from /usr/include/openssl/bio.h:20,
from /usr/include/openssl/asn1.h:16,
from ssl/qsslsocket_openssl_p.h:66,
from ssl/qsslsocket_openssl_symbols_p.h:57,
from ssl/qsslcertificate.cpp:114:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY' {aka 'struct evp_pkey_st'}
typedef struct evp_pkey_st EVP_PKEY;
^~~~~~~~~~~
make[1]: *** [Makefile:17096: .obj/release-shared/qsslcertificate.o] Error 1
make[1]: Leaving directory '/home/build/qt4/src/qt-everywhere-opensource-src-4.8.7/src/network'
make: *** [Makefile:279: sub-network-make_default-ordered] Error 2
=======> ERROR: Building '/usr/ports/opt/qt4/qt4#4.8.7-4.pkg.tar.gz' failed.
This task depends upon

Closed by  Fredrik Rinnestam (frinnst)
Sunday, 15 September 2019, 21:55 GMT
Reason for closing:  Invalid
Additional comments about closing:  Orphaned port dropped. Use qt5

Loading...