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

WrapRt doesn't check for librt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.0
    • 6.6
    • Build System: CMake
    • None
    • 36006c989 (dev), 75ca71037 (dev)

    Description

      WrapRt tests if clock_gettime compiles, but that doesn't depend on librt on modern linux:

             int clock_gettime(clockid_t clockid, struct timespec *tp);
             Link with -lrt (only for glibc versions before 2.17). 

      ipc_posix feature is then enabled even when WrapRt failes to find librt.

      which causes:

      agent:2023/02/09 04:34:57 build.go:403: | /home/qt/work/build/build/tmp/hosttools/ld: src/corelib/CMakeFiles/Core.dir/ipc/qsharedmemory_posix.cpp.o: in function `QSharedMemoryPosix::runtimeSupportCheck()':
      agent:2023/02/09 04:34:57 build.go:403: | qsharedmemory_posix.cpp:(.text+0x44): undefined reference to `shm_open'
      agent:2023/02/09 04:34:57 build.go:403: | /home/qt/work/build/build/tmp/hosttools/ld: src/corelib/CMakeFiles/Core.dir/ipc/qsharedmemory_posix.cpp.o: in function `QSharedMemoryPosix::attach(QSharedMemoryPrivate*, QSharedMemory::AccessMode)':
      agent:2023/02/09 04:34:57 build.go:403: | qsharedmemory_posix.cpp:(.text+0x2cd): undefined reference to `shm_open'
      agent:2023/02/09 04:34:57 build.go:403: | /home/qt/work/build/build/tmp/hosttools/ld: src/corelib/CMakeFiles/Core.dir/ipc/qsharedmemory_posix.cpp.o: in function `QSharedMemoryPosix::create(QSharedMemoryPrivate*, long long)':
      agent:2023/02/09 04:34:57 build.go:403: | qsharedmemory_posix.cpp:(.text+0x62b): undefined reference to `shm_open' 

      Attachments

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

        Activity

          People

            mrmsdbdl Amir Masoud Abdol
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes