Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 4.8 with openssl support
Qt 6.11 is out! See what's new in the release blog

Building Qt 4.8 with openssl support

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 5.7k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Luc4
    wrote on last edited by
    #1

    Hi! I'm trying to build Qt 4.8 with OpenSSL support. I've never had problems with previous versions of Qt, but I can't get over it now. What I get is this:

    @ssl/qsslsocket_openssl_symbols.cpp: In function 'long int q_SSL_ctrl(SSL*, int, long int, const void*)':
    ssl/qsslsocket_openssl_symbols.cpp:216: error: invalid conversion from 'const void*' to 'void*'
    ssl/qsslsocket_openssl_symbols.cpp:216: error: initializing argument 4 of 'long int SSL_ctrl(SSL*, int, long int, void*)'
    make: *** [.obj/release-shared/qsslsocket_openssl_symbols.o] Error 1@

    It seems from the sources that according to the version of OpenSSL a different definition is expected. For my version, which is 0x009080dfL, Qt expects that function to have a specific definition:

    @#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
    #if OPENSSL_VERSION_NUMBER >= 0x10000000L
    DEFINEFUNC4(long, SSL_ctrl, SSL *a, a, int cmd, cmd, long larg, larg, void *parg, parg, return -1, return)
    #else
    DEFINEFUNC4(long, SSL_ctrl, SSL *a, a, int cmd, cmd, long larg, larg, const void *parg, parg, return -1, return)
    #endif
    #endif@

    but my header defines it like:

    @long SSL_ctrl(SSL *ssl,int cmd, long larg, void *parg);@

    I tried to simply change the definition in Qt sources, but at the end I get errors when linking.
    Is this a bug or am I doing something wrong?
    Thanks!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Which OpenSSL version do you have?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Luc4
        wrote on last edited by
        #3

        Version is 0.9.8 and the define reports 0×009080dfL.

        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