Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6
-
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'