We have just been installing and building Mesos on OS X Lion and got
the same python 32/64-bit issue which we fixed the same way as with
Snow Leopard.  Note that this version of Lion was upgraded from Snow
Leopard, but I don't know if that matters.

As reported in another thread, the tests don't sequently pass.  The
point of this email wasn't the tests not passing.  The point is that
if you have Lion where the default python install says (when asked
using file) that it is both 32- and 64-bit, the libraries for the
default python *still* fail to link with Mesos and you *still* need to
install the Mac ports version of python and tell ports to switch that
to the default even on some (all?) Lion installs.

Daniel

> (1) As I reported to you earlier, I'm running a vanilla OS X 10.6.8
> (Snow Leopard) box with X code installed.  When configured with the
> defaults for OS X the build fails.  Here is the last line.
>
> g++ -O2 -fno-strict-aliasing -fPIC  -D_XOPEN_SOURCE -g -I. -I.
> -I../include -I../include -I../third_party/boost-1.37.0
> -I../third_party/protobuf-2.3.0/src -I../third_party/glog-0.3.1/src
> -I../third_party/glog-0.3.1/src -I../third_party/leveldb/include
> -I../third_party/libprocess/include
> -I../third_party/zookeeper-3.3.1/src/c/include
> -I../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP -o
> ../bin/mesos-master master/main.cpp master/master.o master/http.o
> master/slaves_manager.o master/frameworks_manager.o
> master/allocator_factory.o master/simple_allocator.o master/webui.o
> common/fatal.o common/lock.o detector/detector.o
> detector/url_processor.o configurator/configurator.o common/logging.o
> common/date_utils.o common/resources.o common/utils.o
> zookeeper/zookeeper.o zookeeper/authentication.o zookeeper/group.o
> common/build.o mesos.pb.o messages/messages.pb.o messages/log.pb.o
> -L../third_party/protobuf-2.3.0/src/.libs
> -L../third_party/glog-0.3.1/.libs -L../third_party/leveldb
> -L../third_party/libprocess
> -L../third_party/libprocess/third_party/libev-3.8/.libs
> -L../third_party/zookeeper-3.3.1/src/c/.libs
> -L/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config
> -ldl -framework CoreFoundation -lpython2.6  -lprotobuf -lglog
> -lleveldb -lprocess -lev -lpthread -ldl -lzookeeper_mt
> ld: warning: in
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.dylib,
> missing required architecture x86_64 in file
> Undefined symbols:
>  "_PySys_SetArgv", referenced from:
>      mesos::internal::master::webui::run(void*)in webui.o
>  "_Py_Initialize", referenced from:
>      mesos::internal::master::webui::run(void*)in webui.o
>  "_PyRun_SimpleStringFlags", referenced from:
>      mesos::internal::master::webui::run(void*)in webui.o
>  "_PyRun_SimpleFileExFlags", referenced from:
>      mesos::internal::master::webui::run(void*)in webui.o
>  "_Py_Finalize", referenced from:
>      mesos::internal::master::webui::run(void*)in webui.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/mesos-master] Error 1
> make: *** [src] Error 2

Reply via email to