Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73842

QtNetwork 5.9 or newer cannot be compiled with GCC with -fpermissive and OpenSSL 0.9.8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.2
    • Network
    • None
    • SLES 11
    • Linux/X11

    Description

      I'm using SUSE Enterprise Linux 11. There is OpenSSL 0.9.8 there. Now I'm using Qt 5.6 and I want to upgrade to next LTS releases.

      There is the error:

      [  566s] In file included from ssl/qsslsocket_openssl_symbols.cpp:58:0:
      [  566s] ssl/qsslsocket_openssl_symbols.cpp: In function 'char* q_SSL_CIPHER_description(const SSL_CIPHER*, char*, int)':
      [  566s] ssl/qsslsocket_openssl_symbols_p.h:193:58: error: invalid conversion from 'const SSL_CIPHER* {aka const ssl_cipher_st*}' to 'SSL_CIPHER* {aka ssl_cipher_st*}' [-fpermissive]
      [  566s]      ret q_##func(arg1, arg2, arg3) { funcret func(a, b, c); }
      [  566s]                                                           ^
      [  566s] ssl/qsslsocket_openssl_symbols.cpp:384:1: note: in expansion of macro 'DEFINEFUNC3'
      [  566s]  DEFINEFUNC3(char *, SSL_CIPHER_description, const SSL_CIPHER *a, a, char *b, b, int c, c, return 0, return)
      [  566s]  ^
      [  566s] In file included from ../../include/QtNetwork/5.9.2/QtNetwork/private/../../../../../src/network/ssl/qsslcontext_openssl_p.h:60:0,
      [  566s]                  from ../../include/QtNetwork/5.9.2/QtNetwork/private/qsslcontext_openssl_p.h:1,
      [  566s]                  from ssl/qsslsocket_p.h:62,
      [  566s]                  from ssl/qsslsocket_openssl_p.h:70,
      [  566s]                  from ssl/qsslsocket_openssl_symbols_p.h:72,
      [  566s]                  from ssl/qsslsocket_openssl_symbols.cpp:58:
      [  566s] /usr/include/openssl/ssl.h:1549:7: error:   initializing argument 1 of 'char* SSL_CIPHER_description(SSL_CIPHER*, char*, int)' [-fpermissive]
      [  566s]  char *SSL_CIPHER_description(SSL_CIPHER *,char *buf,int size);
      [  566s]        ^
      

      Searching this issue, I'd found same log with LibreSSL: https://github.com/gentoo/libressl/issues/258

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            zenitharchampion Peesoon Skypidar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes