[ 
https://issues.apache.org/jira/browse/MESOS-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652740#comment-14652740
 ] 

Greg Mann commented on MESOS-1010:
----------------------------------

I'm working on this ticket for the current Mesosphere sprint, so I'd like to 
revive the discussion on the preferred solution. I was able to apply [~tillt]'s 
previous patch, https://reviews.apache.org/r/18723/, and successfully run this 
test with gflags installed; this corresponds to solution A from his previous 
comment, patching glog's configure to avoid detection of gflags.

This solution seems satisfactory to me, but does mean that some work will be 
required if we shift away from bundled libraries in the future; is this an 
eventuality we should be planning for?

> Python extension build is broken if gflags-dev is installed
> -----------------------------------------------------------
>
>                 Key: MESOS-1010
>                 URL: https://issues.apache.org/jira/browse/MESOS-1010
>             Project: Mesos
>          Issue Type: Bug
>          Components: build, python api
>         Environment: Fedora 20, amd64. GCC: 4.8.2.
>            Reporter: Nikita Vetoshkin
>            Assignee: Greg Mann
>              Labels: flaky-test, mesosphere
>
> In my environment mesos build from master results in broken python api module 
> {{_mesos.so}}:
> {noformat}
> 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_
> {noformat}
> Unmangled version of symbol looks like this:
> {noformat}
> google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, 
> char const*, void*, void*)
> {noformat}
> 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 message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to