Opened 15 years ago

Closed 15 years ago

#20335 closed defect (duplicate)

boost 1.39.0_2 with +python25 links against wrong python

Reported by: max@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: python Cc:
Port: boost

Description

Building boost with python2.5 support and using it's python extension capabilities results in a crash with the error message

Fatal Python error: Interpreter not initialized (version mismatch?)

This is caused by boost linking against the system python framework instead of MacPort's python25

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.5/Python (compatibility version 2.5.0, current version 2.5.1)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)

Change History (4)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Keywords: boost removed
Owner: changed from macports-tickets@… to nox@…

comment:2 Changed 15 years ago by nox@…

What does port installed python25 report?

comment:3 Changed 15 years ago by max@…

port installed python25
The following ports are currently installed:
  python25 @2.5.4_3+darwin_9+macosx
  python25 @2.5.4_4+darwin_9+macosx
  python25 @2.5.4_6+darwin_9+macosx (active)

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Duplicate of #17998.

Note: See TracTickets for help on using tickets.