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

MacPorts noreply at macports.org
Sun Nov 29 13:22:21 PST 2009


#21444: boost with +python26 links against wrong python on Snow Leopard
---------------------------------+------------------------------------------
  Reporter:  stromnov@…          |       Owner:  nox@…           
      Type:  defect              |      Status:  closed          
  Priority:  Normal              |   Milestone:                  
 Component:  ports               |     Version:  1.8.0           
Resolution:  worksforme          |    Keywords:                  
      Port:  boost               |  
---------------------------------+------------------------------------------

Comment(by dbsgeo@…):

 I get about a report a week of this problem still affecting the
 py26-mapnik port on snow leopard.

 Many are by new users that have very little knowledge of how to debug and
 will just be confused by this and similar tickets, thus leading to a dead
 end if they don't find other help.

 I also just rebuilt (`sudo port install boost +python26`) and I see the
 same behavior:
 {{{
 $ 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 125.0.0)
 }}}

 which leads to (after installing the py26-mapnik port):
 {{{
 $ /opt/local/bin/python2.6
 Python 2.6.4 (r264:75706, Nov 28 2009, 22:45:01)
 [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import mapnik
 Fatal Python error: Interpreter not initialized (version mismatch?)
 Abort trap
 }}}

 Can we just automatically run install_name_tool as part of the boost port?

 {{{
 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#comment:37>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list