Starting with...
pymol svn is c++11-centric and no longer builds on OS X against their legacy libstdc++ library....
https://trac.macports.org/ticket/49449#comment:1
https://trac.macports.org/attachment/ticket/49449/main.log
Was this change intentional?
compatibility with old compilers is not high priority, but will be considered if feasable. What is
__cplusplus
set to on your system?please try the attached patch
(disables the optional feature http://pymolwiki.org/index.php/cif_keepinmemory)
Last edit: Thomas Holder 2015-10-29
The proposed patch is incomplete for restoring the legacy libstdc++ build. Testing on 10.7 against Apple clang from Xcode 4.6 fails with...
have you tried
export CXXFLAGS="-stdlib=libc++"
Using...
export CXXFLAGS="-stdlib=libc++"
isn't appropriate prior to OS X 10.9 as the libc++ present in 10.7/10.8 lacks complete c++-11 support.
I successfully compiled pymol on OS X 10.7.5 with /usr/bin/python2.7, using /usr/bin/clang++ and CXXFLAGS="-stdlib=libc++"
No modification on the C++11 code. I had to modify the files "monkeypatch_distutils.py" and "setup.py" and do some trickery to force distutils to use clang++ instead of llvm-g++-4.2
This approach only works because pymol currently doesn't link against any additional c++-based support libraries. While some of the current dependencies like scipy currently build as c++, that code is isolated into its own python modules so there is no mixing of the two c++ libraries. See...
https://wiki.freebsd.org/NewC++Stack
on the issues with mixing the two c++ ABI's.
thanks for clarifying.
Backport patch applied to SVN 4141.