List Info

Thread: boost1.34.python25




boost1.34.python25
user name
2008-03-27 04:44:26
Hi!

First of all, thank you very much for the fast help last
time  
(latex2html).
This fast help gave me good arguments defending fink against
criticism.

I have problems in fink using boost1.34.python25.
I wanted to make a package for my own software PolyBoRi, but
since a  
while it doesn't compile on fink.
The reason is, that I used boost1.34.python25, with
boost.1.33 it  
works under fink.
I tested the behaviour against visual-py25 (modified the
info file to  
make it compile and link against boost1.34.python25).

So, I get the following situation (python2.5):

PolyBoRi: various linux distributions: works with boost1.34
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

For reproduction of the problem, I list my changes to
visual-py, I  
made for testing:

Depends: x11-shlibs, gtk+-shlibs, python%type_pkg[python],
numeric-py 
%type_pkg[python], numarray-py%type_pkg[python],
boost1.34.python 
%type_pkg[python]-shlibs
BuildDepends: glib, x11-dev, pkgconfig, gtk+, gtkglarea,
gettext-dev,  
boost1.34.python%type_pkg[python]
boost.1.34

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.

Thank you very much in advance.

Best regards,
Michael Brickenstein

Installed packages:
  i   boost1.34.python25              1.34.1-1003           
 Boost C+ 
+ Libraries: static and source libs
  i   boost1.34.python25-shlibs       1.34.1-1003           
 Boost C+ 
+ Libraries (shared libs)


------------------------------------------------------------
-------------
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;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fink-users mailing list
Fink-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Re: boost1.34.python25
user name
2008-03-27 16:33:03
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;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fink-users mailing list
Fink-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )