[Bf-committers] strange scons/python interaction

Kester Maddock bf-committers@blender.org
Fri, 27 Feb 2004 11:43:54 +1300


Hi,

I've also seen this:
platform_linkflags +=3D Split(sysconfig.get_config_var('LINKFORSHARED'))
is what I did - python knows what it needs to link!

Kester

On Friday 27 February 2004 09:30, Michel Selten wrote:
> On Thu, 2004-02-26 at 15:37, zaz@visi.com wrote:
> > Gregor M=FCck wrote:
> > > Hi!
> > >
> > > I've run into a problem with Python and SCons. I compile my local
> > > Blender against Python 2.3.3. As long as I used the autoconf/automake
> > > system everything worked fine. But when I use a Blender binary compil=
ed
> > > with SCons the simple Python command "import math" fails with
> > >
> > > ImportError: /usr/lib/python2.3/lib-dynload/math.so: undefined symbol:
> > > PyDict_SetItemString
> > >
> > > When I build Blender with the old NaN makefiles from the same sources
> > > (also against Python 2.3), the problem disappears. The question is:
> > > What does SCons do differently?
> >
> > It appears scons isn't completely tested or implemented, at
> > least under linux.  You need to add some flags to the
> > platform_linkflags to allow python to work:
> >      platform_linkflags =3D ['-Wl,-export-dynamic']
> > If you're on another plaform, its probably something similar
> > as well.
>
> Hi,
>
> you're right, I've forgotten these flags in the final linking stage.
> Thanks for pointing it out, and thanks to Gregor for pointing out the
> error!
> I'll fix it very soon.
>
> With regards,
> 	Michel
>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
>
>
>
> !DSPAM:403e762f44653170378183!