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

building with asan on Linux fails due to missing symbols

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • 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)

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes