Michael Brickenstein wrote:
[]
> fink 10.5 ppc as well as i368 unstable:
> 
> PolyBoRi +boost1.34: doesn't work
> visual-py +boost1.34: doesn't work
> PolyBoRi +boost1.33 works
> visual-py +boost.1.33 works
[]
> The error is for both packages the same:
> 
> python
> In [1]: import visual
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort trap
> 
> Since, I get the same behaviour with visual-py and PolyBoRi, I assume,  
> that is a problem with boost.1.34 in fink.

You are completely right, there is something wrong with the boost_python 
dylib in boost1.34. It is related to the fact that this dylib is linked 
with /sw/lib/python2.5/config/libpython2.5.dylib which it shouldn't be.

I spent a lot of time with this problem on and off and then gave up, 
because there is a workaround: Link with the static boost library 
libboost_python-1_34_1.a instead of the dynamic 
libboost_python-1_34_1.dylib. For visual-py25 (I have a package for 
version 4 beta16, not released to Fink because too crash-prone), I do 
this with the PatchScript line

  perl -pi -e 's| \-lboost_python \-lboost_thread| 
%p/lib/libboost_python-mt.a -lboost_thread-mt|g' src/Makefile.in

Now that I know that someone is interested, I might spend some more time 
trying to find the right linker flags for the boost_python dylibs to 
make them work correctly. Actually, the linker flags are probably not so 
difficult:

  -flat_namespace -undefined dynamic_lookup

should do the trick (or not). What I find more difficult is to 
infiltrate these flags into the jam build system at the right place. If 
you have a good idea how to do it, please tell me :-)

-- 
Martin
P.S. See you in 2 weeks at the MFO. Maybe we'll have some minutes to 
discuss this...




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to