On Mon, 2008-04-14 at 17:17 -0700, Blake Ramsdell wrote:
> On Mon, Apr 14, 2008 at 5:03 PM, Blake Ramsdell <[EMAIL PROTECTED]> wrote:
> >  ~$ python -c "import clutter"
> >  Woo!1!!
> >
> >  ** (-c:25584): WARNING **: failed to bind GLXGetProcAddress or
> >  GLXGetProcAddressARB
> 
> ~/Source/OpenSource$ python -c "import sys; import dl;
> sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL); import clutter"
> Woo!1!!
> ~/Source/OpenSource$
> 
> So not sure, but I think that changing the flags that Python uses when
> he calls dlopen seems to have an effect (it didn't complain about the
> symbol missing any longer, and the module init was being called).
> 
> Not sure what impact this has in general -- I mean, now I've made it
> so there's a bunch of new symbols in the global symbol space which may
> or may not be a good idea.

patching clutter/__init__.py to set the flags on import might do the
trick:

+try:
+    import dl
+    sys.setdlopenflags(dl.RTLD_LAZY|dl.RTLD_GLOBAL)
+except ImportError:
+    pass
+
 # For broken embedded programs which forgot to call Sys_SetArgv
 if not hasattr(sys, 'argv'):
     sys.argv = []

(with the lazy flag should still work).

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to