Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.9.0, 5.10, 5.11
-
None
-
Ubuntu 16.04, Debian (gcc (Debian 7.2.0-1) 7.2.0)
Description
Building on Linux with address sanitizer turned on like this:
configure -opensource -confirm-license -developer-build -nomake tests -nomake examples -debug -qtnamespace QtNS -sanitize address make -j8 module-qtbase
results in:
/home/erik/dev/qt5.9/qtbase/src/corelib/plugin/qlibrary_unix.cpp:279: error: undefined reference to 'dlsym' /home/erik/dev/qt5.9/qtbase/src/corelib/plugin/qlibrary_unix.cpp:62: error: undefined reference to 'dlerror' /home/erik/dev/qt5.9/qtbase/src/corelib/plugin/qlibrary_unix.cpp:297: error: undefined reference to 'dlsym' collect2: error: ld returned 1 exit status Makefile:1128: recipe for target '../../lib/libQt5Core.so.5.9.1' failed
adding -ldl fixes it.
Attachments
Issue Links
- is duplicated by
-
QTBUG-64864 sanitize configure feature breaks QtCore linking
-
- Closed
-