⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

Qsslcertificate error with make

  • @g++ -c -include .pch/Qt5Network -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_USING_NAMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtNetwork -I../../include/QtNetwork/5.3.0 -I../../include/QtNetwork/5.3.0/QtNetwork -Ikernel -I../../include/QtCore/5.3.0 -I../../include/QtCore/5.3.0/QtCore -I../../include/QtCore -I.moc -o .obj/qsslcertificate.o ssl/qsslcertificate.cpp
    In file included from ssl/qsslcertificate.cpp:116:0:
    ssl/qsslsocket_openssl_symbols_p.h:437:1: error: 'EC_KEY' does not name a type
    ssl/qsslsocket_openssl_symbols_p.h:438:20: error: variable or field 'q_EC_KEY_free' declared void
    ssl/qsslsocket_openssl_symbols_p.h:438:20: error: 'EC_KEY' was not declared in this scope
    ssl/qsslsocket_openssl_symbols_p.h:438:28: error: 'ecdh' was not declared in this scope
    gmake[3]: *** [.obj/qsslcertificate.o] Error 1
    gmake[3]: Leaving directory /tmp/qt-everywhere-opensource-src-5.3.0/qtbase/src/network' gmake[2]: *** [sub-network-make_first] Error 2 gmake[2]: Leaving directory/tmp/qt-everywhere-opensource-src-5.3.0/qtbase/src'
    gmake[1]: *** [sub-src-make_first] Error 2
    gmake[1]: Leaving directory `/tmp/qt-everywhere-opensource-src-5.3.0/qtbase'
    gmake: *** [module-qtbase-make_first] Error 2
    I get this error when trying to build 5.3.0 from source.
    I have the latest version of openSSL installed on CentOS 6.4 (64-bit).

  • +1 same here (64bit Fedora 17)

  • the same on RHEL 6.4 x86_64

  • Lifetime Qt Champion


    From a quick search you might be missing ecdsa support in you OpenSSL versions.

    Hope it helps

  • Had same issue building Qt5.3 on CentOS 6.4.
    Updated the openssl and openssl-devel packages from version 1.0.0-27 to at least 1.0.1e-16. Qt builds OK!

  • I built openssl-1.0.1h source in a directory, set PATH, LD_LIBRARY_PATH and PKG_CONFIG_PATH to there, but it still fails.

    Running openssl ecparam -out ec_key.pem -name sect571r1 -genkey, for example, works fine.

  • To get this to work I had to edit ./qtbase/src/network/Makefile and add the new include dir to the INCPATH

  • joeborg, excuse me for this question, but could you be more specific?
    You said you added the new include directory to your INCPATH line in ./qtbase/src/network/Makefile. What include dir?

Log in to reply