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

building with asan on Linux fails due to missing symbols

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.9.0, 5.10, 5.11
    • Build System
    • None
    • Ubuntu 16.04, Debian (gcc (Debian 7.2.0-1) 7.2.0)

      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.

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

            buddenha Oswald Buddenhagen
            erikv Erik Verbruggen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes