[MacPorts] #17975: boost +python25 links with system python libs (instead of macport libs)
#17975: boost +python25 links with system python libs (instead of macport libs) ---------------------------------+------------------------------------------ Reporter: evert.rol@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: boost python | Port: boost ---------------------------------+------------------------------------------ The ${prefix}/lib/libboost_python-mt.dylib (& related) library has a dependency on the system python library, not on the python2.5 installed by macports (obviously only when installing boost with `port install boost +python25`). This can be seen using eg: $> otool -L lib/libboost_python-mt.dylib 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.0.0) The problem only really shows up when compiling a source to a .so module with boost-python: the macports python2.5 complains when importing the module: "Fatal Python error: Interpreter not initialized (version mismatch?)", while the system python does not show this error. (Note that printing sys.path in macports python2.5 does not show any standard system path, only the macports one, as it should.) The problem does not exist for the python 2.6 (probably since there are no system libraries for this version). See also this thread: http://lists.macosforge.org/pipermail/macports- users/2009-January/013226.html -- Ticket URL: <http://trac.macports.org/ticket/17975> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) ---------------------------------+------------------------------------------ Reporter: evert.rol@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: boost python | Port: boost ---------------------------------+------------------------------------------ Comment(by blb@…): Could be related to the LINKFORSHARED issue, see #15099. -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) ---------------------------------+------------------------------------------ Reporter: evert.rol@… | Owner: sanchom@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: boost python | Port: boost ---------------------------------+------------------------------------------ Changes (by jmr@…): * owner: macports-tickets@… => sanchom@… Old description:
The ${prefix}/lib/libboost_python-mt.dylib (& related) library has a dependency on the system python library, not on the python2.5 installed by macports (obviously only when installing boost with `port install boost +python25`). This can be seen using eg:
$> otool -L lib/libboost_python-mt.dylib
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.0.0)
The problem only really shows up when compiling a source to a .so module with boost-python: the macports python2.5 complains when importing the module: "Fatal Python error: Interpreter not initialized (version mismatch?)", while the system python does not show this error.
(Note that printing sys.path in macports python2.5 does not show any standard system path, only the macports one, as it should.)
The problem does not exist for the python 2.6 (probably since there are no system libraries for this version).
See also this thread: http://lists.macosforge.org/pipermail/macports- users/2009-January/013226.html
New description: The ${prefix}/lib/libboost_python-mt.dylib (& related) library has a dependency on the system python library, not on the python2.5 installed by macports (obviously only when installing boost with `port install boost +python25`). This can be seen using eg: {{{ $> otool -L lib/libboost_python-mt.dylib 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.0.0) }}} The problem only really shows up when compiling a source to a .so module with boost-python: the macports python2.5 complains when importing the module: "Fatal Python error: Interpreter not initialized (version mismatch?)", while the system python does not show this error. (Note that printing sys.path in macports python2.5 does not show any standard system path, only the macports one, as it should.) The problem does not exist for the python 2.6 (probably since there are no system libraries for this version). See also this thread: http://lists.macosforge.org/pipermail/macports- users/2009-January/013226.html -- -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) ---------------------------------+------------------------------------------ Reporter: evert.rol@… | Owner: sanchom@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: boost python | Port: boost ---------------------------------+------------------------------------------ Comment(by evert.rol@…): Ticket can now be closed: the origin of the problem is probably in an incorrect python2.5 installation, see [/ticket/17998 #17998]. -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) ----------------------------------+----------------------------------------- Reporter: evert.rol@… | Owner: sanchom@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: duplicate | Keywords: boost python Port: boost | ----------------------------------+----------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => duplicate Comment: Could have just modified this ticket... oh well. -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) --------------------------------+------------------------------------------- Reporter: evert.rol@… | Owner: sanchom@… Type: defect | Status: closed Priority: Normal | Component: ports Version: 1.7.0 | Resolution: duplicate Keywords: boost python | Port: boost --------------------------------+------------------------------------------- Comment(by stromnov@…): Temporary workaround (for now can be implemented in post-build phase): {{{ install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.5/Python /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python libboost_python-mt.dylib }}} -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) --------------------------------+------------------------------------------- Reporter: evert.rol@… | Owner: sanchom@… Type: defect | Status: closed Priority: Normal | Component: ports Version: 1.7.0 | Resolution: duplicate Keywords: boost python | Port: boost --------------------------------+------------------------------------------- Comment(by peimei@…): And don't forget about `libboost_python.dylib`, when installing with `+st` variant -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17975: boost +python25 links with system python libs (instead of macport libs) --------------------------------+------------------------------------------- Reporter: evert.rol@… | Owner: sanchom@… Type: defect | Status: closed Priority: Normal | Component: ports Version: 1.7.0 | Resolution: duplicate Keywords: boost python | Port: boost --------------------------------+------------------------------------------- Comment(by arobson73@…): so does this mean if i want the libboost-python.dylib then i need to install the boost port as follows; sudo port install boost+python26 i previously just installed boost ,e.g : sudo port install boost if i do that then it does not generate the libboost-python.dylib please let me know -- Ticket URL: <http://trac.macports.org/ticket/17975#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts