[MacPorts] #21444: boost with +python26 links against wrong python on Snow Leopard

MacPorts noreply at macports.org
Thu Sep 17 03:09:57 PDT 2009


#21444: boost with +python26 links against wrong python on Snow Leopard
--------------------------------+-------------------------------------------
 Reporter:  stromnov@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.8.0                                
 Keywords:                      |        Port:  boost                                
--------------------------------+-------------------------------------------
 {{{
 --->  Installing boost @1.40.0_1+python26
 --->  Activating boost @1.40.0_1+python26
 stromnov at localhost:~$ otool -L /opt/local/lib/libboost_python-mt.dylib
 /opt/local/lib/libboost_python-mt.dylib:
         /opt/local/lib/libboost_python-mt.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /System/Library/Frameworks/Python.framework/Versions/2.6/Python
 (compatibility version 2.6.0, current version 2.6.1)
         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
 version 7.9.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 124.1.1)
 }}}

 so all python bindings, that depends on boost_python, crashing on start:
 {{{
 stromnov at localhost:~$ python2.6
 Python 2.6.2 (r262:71600, Sep 11 2009, 12:30:14)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import pyopencl
 Fatal Python error: Interpreter not initialized (version mismatch?)
 Abort trap
 }}}

 this problem similar to #17975 and #17998

 currently it can be relinked by hand:
 {{{
 sudo install_name_tool -change
 /System/Library/Frameworks/Python.framework/Versions/2.6/Python
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python
 /opt/local/lib/libboost_python-mt.dylib
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/21444>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list