[
https://issues.apache.org/jira/browse/MESOS-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918987#comment-13918987
]
Till Toenshoff commented on MESOS-1054:
---------------------------------------
There is no option during that configuration phase of leveldb to disable
linkage of snappy and/or tcmalloc when they are detected.
I have now proposed a rather radical solution in
https://reviews.apache.org/r/18725/
Also issued a ticket upstream:
https://code.google.com/p/leveldb/issues/detail?id=228
> Java extension build is broken if libsnappy is installed
> --------------------------------------------------------
>
> Key: MESOS-1054
> URL: https://issues.apache.org/jira/browse/MESOS-1054
> Project: Mesos
> Issue Type: Bug
> Components: build
> Affects Versions: 0.19.0
> Environment: OSX 10.9.2, clang 3.3
> Reporter: Till Toenshoff
> Labels: build, java, leveldb, linking, mesos
>
> When libsnappy is preinstalled, leveldb automatically makes use of it. As we
> statically link leveldb into mesos but not libsnappy, undefined symbols pop
> up.
> This is very similar to MESOS-1010
> `[ RUN ] ExamplesTest.JavaLog
> Using temporary directory '/tmp/ExamplesTest_JavaLog_e34Dmv'
> Mar 04, 2014 3:51:42 AM TestLog main
> INFO: Starting a local ZooKeeper server
> log4j:WARN No appenders could be found for logger
> (org.apache.zookeeper.server.ZooKeeperServer).
> log4j:WARN Please initialize the log4j system properly.
> Mar 04, 2014 3:51:42 AM TestLog main
> INFO: Initializing log
> /var/folders/_t/rdp354gx7j5fjww270kbk6_r0000gn/T/mesos-XXXXXX.QnxT5O4R/log1
> with /Users/till/Development/mesos-wip/build/src/mesos-log
> dyld: lazy symbol binding failed: Symbol not found:
> __ZN6snappy19MaxCompressedLengthEm
> Referenced from:
> /Users/till/Development/mesos-wip/build/src/.libs/libmesos-0.19.0.dylib
> Expected in: flat namespace
> dyld: Symbol not found: __ZN6snappy19MaxCompressedLengthEm
> Referenced from:
> /Users/till/Development/mesos-wip/build/src/.libs/libmesos-0.19.0.dylib
> Expected in: flat namespace
> ../../src/tests/script.cpp:81: Failure
> Failed
> java_log_test.sh terminated with signal 'Trace/BPT trap: 5'
> [ FAILED ] ExamplesTest.JavaLog (5266 ms)`
--
This message was sent by Atlassian JIRA
(v6.2#6252)