Fix building on platforms without execinfo.h

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.5
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible
    • ALL
    • Hide

      Compile with a toolchain missing execinfo.h

      Show
      Compile with a toolchain missing execinfo.h
    • Platform 2 04/24/15, BUILD 4 06/05/15, Build 5 06/26/16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The file src/mongo/platform/backtrace.cpp includes dlfcn.h without #define _GNU_SOURCE to access functions like dladdr(). According to the man page this doesn't seem right and as a matter of fact it didn't compile with a toolchain missing <execinfo.h>

              Assignee:
              Jonathan Reams
              Reporter:
              Raffaele Rossi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: