Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1010

Python extension build is broken if gflags-dev is installed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • build, python api
    • Fedora 20, amd64, GCC: 4.8.2; OSX 10.10.4, Apple LLVM 6.1.0 (~LLVM 3.6.0)

    Description

      In my environment mesos build from master results in broken python api module _mesos.so:

      nekto0n@ya-darkstar ~/workspace/mesos/src/python $ PYTHONPATH=build/lib.linux-x86_64-2.7/ python -c "import _mesos"
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
      ImportError: /home/nekto0n/workspace/mesos/src/python/build/lib.linux-x86_64-2.7/_mesos.so: undefined symbol: _ZN6google14FlagRegistererC1EPKcS2_S2_S2_PvS3_
      

      Unmangled version of symbol looks like this:

      google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)
      

      During ./configure step glog finds gflags development files and starts using them, thus implicitly adding dependency on libgflags.so. This breaks Python extensions module and perhaps can break other mesos subsystems when moved to hosts without gflags installed.

      This task is done when the ExamplesTest.PythonFramework test will pass on a system with gflags installed.

      Attachments

        Issue Links

          Activity

            People

              greggomann Greg Mann
              nekto0n Nikita Vetoshkin
              Till Toenshoff Till Toenshoff
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: