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

QNetworkRequest::setTransferTimeout linkage on MinGW

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.0 Beta2, 6.8.0 FF
    • 6.7.0 Beta1
    • Network
    • None
    • Windows
    • c09219e94 (dev), 96d03949d (6.7)

    Description

      We tried Qt 6.7.0-beta1 with our code and cannot link with MinGW anymore.
      Same code works with any other system (including MSVC).

      Qt 6.6.1 and 6.5.3 works without problems.

      We have a simple call to default parameter in our code:

      QNetworkRequest r;
      r.setTransferTimeout();
      
      cmd.exe /C "cd . && C:\mingw32\x86_64-12.1.0-release-posix-seh-rt_v10-rev0\bin\c++.exe -Wall -Wextra -Wcast-qual -Wshadow -fno-exceptions -Wold-style-cast -Wcast-align=strict -Wpedantic -Wvla -Wlogical-op -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wsuggest-override -Wnon-virtual-dtor -Wdate-time -Wunused -Wextra-semi -Wuseless-cast -Wconversion -Os -DNDEBUG -g -fno-rtti -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -mwindows @CMakeFiles\AusweisAppBinary.rsp -o src\AusweisApp.exe -Wl,--out-implib,src\libAusweisApp.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
      
      C:/mingw32/x86_64-12.1.0-release-posix-seh-rt_v10-rev0/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/network/libAusweisAppNetwork.a(NetworkManager.cpp.obj): in function `governikus::NetworkManager::prepareConnection(QNetworkRequest&) const':
      
      R:/J/src/network/NetworkManager.cpp:335: undefined reference to `impZN15QNetworkRequest22DefaultTransferTimeoutE'
      

      Seems https://codereview.qt-project.org/c/qt/qtbase/+/515620 introduced it.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              misery André Klitzing
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes