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

Build error with qssl [-fpermissive]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.0 Alpha
    • Component/s: Network: SSL
    • Labels:
      None
    • Environment:
      gcc 4.8.3
      openssl 1.0.1k

      Description

      build fails on both openSUSE 13.2 and Factory:

      [ 564s] In file included from ssl/qsslsocket_openssl_symbols.cpp:51:0:
      [ 564s] ssl/qsslsocket_openssl_symbols.cpp: In function 'DH* q_d2i_DHparams(DH*, unsigned char*, long int)':
      [ 564s] ssl/qsslsocket_openssl_symbols_p.h:185:58: error: invalid conversion from 'unsigned char*' to 'const unsigned char*' [-fpermissive]
      [ 564s] ret q_##func(arg1, arg2, arg3)

      { funcret func(a, b, c); }

      [ 564s] ^
      [ 564s] ssl/qsslsocket_openssl_symbols.cpp:402:1: note: in expansion of macro 'DEFINEFUNC3'
      [ 564s] DEFINEFUNC3(DH , d2i_DHparams, DH*a, a, unsigned char **pp, pp, long length, length, return 0, return);
      [ 564s] ^
      [ 564s] In file included from /usr/include/openssl/dsa.h:83:0,
      [ 564s] from /usr/include/openssl/x509.h:99,
      [ 564s] from /usr/include/openssl/ssl.h:156,
      [ 564s] from ../../include/QtNetwork/5.5.0/QtNetwork/private/../../../../../src/network/ssl/qsslcontext_openssl_p.h:53,
      [ 564s] from ../../include/QtNetwork/5.5.0/QtNetwork/private/qsslcontext_openssl_p.h:1,
      [ 564s] from ssl/qsslsocket_p.h:55,
      [ 564s] from ssl/qsslsocket_openssl_p.h:63,
      [ 564s] from ssl/qsslsocket_openssl_symbols_p.h:64,
      [ 564s] from ssl/qsslsocket_openssl_symbols.cpp:51:
      [ 564s] /usr/include/openssl/dh.h:216:6: error: initializing argument 2 of 'DH* d2i_DHparams(DH*, const unsigned char*, long int)' [-fpermissive]
      [ 564s] DH * d2i_DHparams(DH **a,const unsigned char **pp, long length);
      [ 564s] ^

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              richmoore Richard Moore (qtnetwork)
              Reporter:
              šumski Hrvoje Senjan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes