Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to build Qt5.8 with openssl1.0.2p linked[MSVC2015]
QtWS25 Last Chance

Failed to build Qt5.8 with openssl1.0.2p linked[MSVC2015]

Scheduled Pinned Locked Moved Solved General and Desktop
qtnetworkopensslmsvc2015nmake
6 Posts 2 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • IMAN4KI Offline
    IMAN4KI Offline
    IMAN4K
    wrote on last edited by IMAN4K
    #1

    Hi every one.
    I'm trying to build qt via following options :

    configure -developer-build -debug-and-release -opensource -confirm-license -shared -mp -openssl-linked -IC:\OpenSSL-Win32\include -LC:\OpenSSL-Win32\lib -nomake examples -nomake tests -platform win32-msvc2015 -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtdeclarative -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtsensors -skip qtspeech -skip qtsvg -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtwebsockets -skip qtwayland -skip qtxmlpatterns
    

    But here's the compiler failure when building network part:

    .
    .
    .
    moc_qsslsocket_openssl_p.cpp
    Generating Code...
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.8 /MANIFEST:embed /OUT:....\lib\Qt5Networkd.dll @C:\Users\Iman\AppData\Local\Temp\nm2F86.tmp
    Creating library ....\lib\Qt5Networkd.lib and object ....\lib\Qt5Networkd.exp
    libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp____iob_func
    libeay32MDd.lib(ui_openssl.obj) : error LNK2001: unresolved external symbol __imp____iob_func
    ssleay32MDd.lib(t1_enc.obj) : error LNK2001: unresolved external symbol __imp____iob_func
    libeay32MDd.lib(cryptlib.obj) : error LNK2001: unresolved external symbol __imp____iob_func
    libeay32MDd.lib(txt_db.obj) : error LNK2001: unresolved external symbol __imp____iob_func
    libeay32MDd.lib(e_capi.obj) : error LNK2001: unresolved external symbol __imp____iob_func
    ssleay32MDd.lib(t1_enc.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _tls1_enc
    libeay32MDd.lib(txt_db.obj) : error LNK2001: unresolved external symbol __imp__fprintf
    libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp__fprintf
    libeay32MDd.lib(ui_openssl.obj) : error LNK2001: unresolved external symbol __imp__fprintf
    libeay32MDd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _OPENSSL_cpuid_setup
    libeay32MDd.lib(v3_utl.obj) : error LNK2001: unresolved external symbol __imp__sscanf
    libeay32MDd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp___vsnprintf referenced in function _OPENSSL_showfatal
    libeay32MDd.lib(pqueue.obj) : error LNK2019: unresolved external symbol __imp__printf referenced in function _pqueue_print
    libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp__printf
    libeay32MDd.lib(e_cswift.obj) : error LNK2019: unresolved external symbol __imp__sprintf referenced in function _cswift_dsa_sign
    libeay32MDd.lib(dso_win32.obj) : error LNK2001: unresolved external symbol __imp__sprintf
    ....\lib\Qt5Networkd.dll : fatal error LNK1120: 6 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    What's wrong ?

    IMAN4KI 1 Reply Last reply
    0
    • IMAN4KI IMAN4K

      Hi every one.
      I'm trying to build qt via following options :

      configure -developer-build -debug-and-release -opensource -confirm-license -shared -mp -openssl-linked -IC:\OpenSSL-Win32\include -LC:\OpenSSL-Win32\lib -nomake examples -nomake tests -platform win32-msvc2015 -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtdeclarative -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtsensors -skip qtspeech -skip qtsvg -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtwebsockets -skip qtwayland -skip qtxmlpatterns
      

      But here's the compiler failure when building network part:

      .
      .
      .
      moc_qsslsocket_openssl_p.cpp
      Generating Code...
      link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.8 /MANIFEST:embed /OUT:....\lib\Qt5Networkd.dll @C:\Users\Iman\AppData\Local\Temp\nm2F86.tmp
      Creating library ....\lib\Qt5Networkd.lib and object ....\lib\Qt5Networkd.exp
      libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp____iob_func
      libeay32MDd.lib(ui_openssl.obj) : error LNK2001: unresolved external symbol __imp____iob_func
      ssleay32MDd.lib(t1_enc.obj) : error LNK2001: unresolved external symbol __imp____iob_func
      libeay32MDd.lib(cryptlib.obj) : error LNK2001: unresolved external symbol __imp____iob_func
      libeay32MDd.lib(txt_db.obj) : error LNK2001: unresolved external symbol __imp____iob_func
      libeay32MDd.lib(e_capi.obj) : error LNK2001: unresolved external symbol __imp____iob_func
      ssleay32MDd.lib(t1_enc.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _tls1_enc
      libeay32MDd.lib(txt_db.obj) : error LNK2001: unresolved external symbol __imp__fprintf
      libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp__fprintf
      libeay32MDd.lib(ui_openssl.obj) : error LNK2001: unresolved external symbol __imp__fprintf
      libeay32MDd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _OPENSSL_cpuid_setup
      libeay32MDd.lib(v3_utl.obj) : error LNK2001: unresolved external symbol __imp__sscanf
      libeay32MDd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp___vsnprintf referenced in function _OPENSSL_showfatal
      libeay32MDd.lib(pqueue.obj) : error LNK2019: unresolved external symbol __imp__printf referenced in function _pqueue_print
      libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp__printf
      libeay32MDd.lib(e_cswift.obj) : error LNK2019: unresolved external symbol __imp__sprintf referenced in function _cswift_dsa_sign
      libeay32MDd.lib(dso_win32.obj) : error LNK2001: unresolved external symbol __imp__sprintf
      ....\lib\Qt5Networkd.dll : fatal error LNK1120: 6 unresolved externals
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

      What's wrong ?

      IMAN4KI Offline
      IMAN4KI Offline
      IMAN4K
      wrote on last edited by
      #2

      @IMAN4K
      Any idea!?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Please be more patient before bumping your own thread and allow at least 24 hours before doing it. Not all people coming on this forum are living in the same time zone as you.

        That said, are you sure you got OpenSSL for the correct architecture ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        IMAN4KI 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          Please be more patient before bumping your own thread and allow at least 24 hours before doing it. Not all people coming on this forum are living in the same time zone as you.

          That said, are you sure you got OpenSSL for the correct architecture ?

          IMAN4KI Offline
          IMAN4KI Offline
          IMAN4K
          wrote on last edited by IMAN4K
          #4

          @SGaist
          Sorry, you're right.

          I've downloaded this version(1.0.2p) from HERE:
          enter image description here

          With following structure:

          |   changes.txt
          |   faq.txt
          |   libeay32.dll
          |   libssl32.dll
          |   license.txt
          |   news.txt
          |   readme.txt
          |   ssleay32.dll
          |   unins000.dat
          |   unins000.exe
          |
          +---bin
          |   |   4758cca.dll
          |   |   aep.dll
          |   |   atalla.dll
          |   |   bad_dtls_test.exe
          |   |   bftest.exe
          |   |   bntest.exe
          |   |   CA.pl
          |   |   capi.dll
          |   |   casttest.exe
          |   |   chil.dll
          |   |   clienthellotest.exe
          |   |   constant_time_test.exe
          |   |   cswift.dll
          |   |   destest.exe
          |   |   dhtest.exe
          |   |   dsatest.exe
          |   |   dtlstest.exe
          |   |   ecdhtest.exe
          |   |   ecdsatest.exe
          |   |   ectest.exe
          |   |   enginetest.exe
          |   |   evp_extra_test.exe
          |   |   evp_test.exe
          |   |   exptest.exe
          |   |   fatalerrtest.exe
          |   |   gmp.dll
          |   |   gost.dll
          |   |   heartbeat_test.exe
          |   |   hmactest.exe
          |   |   ideatest.exe
          |   |   igetest.exe
          |   |   libeay32.dll
          |   |   md4test.exe
          |   |   md5test.exe
          |   |   mdc2test.exe
          |   |   msvcr120.dll
          |   |   nuron.dll
          |   |   openssl.cfg
          |   |   openssl.exe
          |   |   padlock.dll
          |   |   randtest.exe
          |   |   rc2test.exe
          |   |   rc4test.exe
          |   |   rmdtest.exe
          |   |   rsa_test.exe
          |   |   sha1test.exe
          |   |   sha256t.exe
          |   |   sha512t.exe
          |   |   shatest.exe
          |   |   srptest.exe
          |   |   ssleay32.dll
          |   |   ssltest.exe
          |   |   sslv2conftest.exe
          |   |   sureware.dll
          |   |   ubsec.dll
          |   |   v3nametest.exe
          |   |   verify_extra_test.exe
          |   |   wp_test.exe
          |   |
          |   \---PEM
          |       |   ca-cert.srl
          |       |   ca-key.pem
          |       |   ca-req.pem
          |       |   cert.pem
          |       |   client.pem
          |       |   dh1024.pem
          |       |   dh2048.pem
          |       |   dh4096.pem
          |       |   dh512.pem
          |       |   dsa-ca.pem
          |       |   dsa-pca.pem
          |       |   dsa1024.pem
          |       |   dsa512.pem
          |       |   dsap.pem
          |       |   pca-cert.srl
          |       |   pca-key.pem
          |       |   pca-req.pem
          |       |   privkey.pem
          |       |   req.pem
          |       |   rsa8192.pem
          |       |   s1024key.pem
          |       |   s1024req.pem
          |       |   s512-key.pem
          |       |   s512-req.pem
          |       |   server.pem
          |       |   server.srl
          |       |   server2.pem
          |       |   testCA.pem
          |       |
          |       +---demoCA
          |       |   |   cacert.pem
          |       |   |   index.txt
          |       |   |   serial
          |       |   |
          |       |   \---private
          |       |           cakey.pem
          |       |
          |       \---set
          |               set-g-ca.pem
          |               set-m-ca.pem
          |               set_b_ca.pem
          |               set_c_ca.pem
          |               set_d_ct.pem
          |               set_root.pem
          |
          +---exp
          |       4758cca.exp
          |       aep.exp
          |       atalla.exp
          |       capi.exp
          |       chil.exp
          |       cswift.exp
          |       gmp.exp
          |       gost.exp
          |       libeay32.exp
          |       nuron.exp
          |       padlock.exp
          |       ssleay32.exp
          |       sureware.exp
          |       ubsec.exp
          |
          +---include
          |   \---openssl
          |           aes.h
          |           applink.c
          |           asn1.h
          |           asn1t.h
          |           asn1_mac.h
          |           bio.h
          |           blowfish.h
          |           bn.h
          |           buffer.h
          |           camellia.h
          |           cast.h
          |           cmac.h
          |           cms.h
          |           comp.h
          |           conf.h
          |           conf_api.h
          |           crypto.h
          |           des.h
          |           des_old.h
          |           dh.h
          |           dsa.h
          |           dso.h
          |           dtls1.h
          |           ebcdic.h
          |           ec.h
          |           ecdh.h
          |           ecdsa.h
          |           engine.h
          |           err.h
          |           evp.h
          |           e_os2.h
          |           hmac.h
          |           idea.h
          |           krb5_asn.h
          |           kssl.h
          |           lhash.h
          |           md4.h
          |           md5.h
          |           mdc2.h
          |           modes.h
          |           objects.h
          |           obj_mac.h
          |           ocsp.h
          |           opensslconf.h
          |           opensslv.h
          |           ossl_typ.h
          |           pem.h
          |           pem2.h
          |           pkcs12.h
          |           pkcs7.h
          |           pqueue.h
          |           rand.h
          |           rc2.h
          |           rc4.h
          |           ripemd.h
          |           rsa.h
          |           safestack.h
          |           seed.h
          |           sha.h
          |           srp.h
          |           srtp.h
          |           ssl.h
          |           ssl2.h
          |           ssl23.h
          |           ssl3.h
          |           stack.h
          |           symhacks.h
          |           tls1.h
          |           ts.h
          |           txt_db.h
          |           ui.h
          |           ui_compat.h
          |           whrlpool.h
          |           x509.h
          |           x509v3.h
          |           x509_vfy.h
          |
          \---lib
              |   4758cca.lib
              |   aep.lib
              |   atalla.lib
              |   capi.lib
              |   chil.lib
              |   cswift.lib
              |   gmp.lib
              |   gost.lib
              |   libeay32.lib
              |   nuron.lib
              |   padlock.lib
              |   ssleay32.lib
              |   sureware.lib
              |   ubsec.lib
              |
              +---MinGW
              |       libeay32.a
              |       libeay32.def
              |       ssleay32.a
              |       ssleay32.def
              |
              \---VC
                  |   libeay32MD.lib
                  |   libeay32MDd.lib
                  |   libeay32MT.lib
                  |   libeay32MTd.lib
                  |   ssleay32MD.lib
                  |   ssleay32MDd.lib
                  |   ssleay32MT.lib
                  |   ssleay32MTd.lib
                  |
                  \---static
                          libeay32MD.lib
                          libeay32MDd.lib
                          libeay32MT.lib
                          libeay32MTd.lib
                          ssleay32MD.lib
                          ssleay32MDd.lib
                          ssleay32MT.lib
                          ssleay32MTd.lib
          
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Aren't you building a 64bit version of Qt while using a 32bit version of OpenSSL ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • IMAN4KI Offline
              IMAN4KI Offline
              IMAN4K
              wrote on last edited by
              #6

              @SGaist
              NO, both are 32bit.
              Seems clearing the build dir and make again solved the problem!

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved