On Tue, Mar 20, 2012 at 09:02:13AM +0000, Edd Barrett wrote:
> Hi,
> 
> Having spoken to sthen and djm, I am still stuck on this, so I am posting on
> ports, incase someone here knows.
> 
> Im looking at porting something which uses ctypes to load first libGL and then
> libGLU. Once we strip the gunk away, the library loading looks like this:
> 
> ---8<---
> import ctypes
> ctypes.cdll.LoadLibrary("libGL.so")
> ctypes.cdll.LoadLibrary("libGLU.so")
> ---8<---
> 
> Try it on a python shell.  The final line spews errors about missing
> symbols:
> 
> ---8<---
> python2.7:/usr/X11R6/lib/libGLU.so.7.0: undefined symbol 'glPixelStorei'
> python2.7:/usr/X11R6/lib/libGLU.so.7.0: undefined symbol 'glEvalPoint2'
> python2.7:/usr/X11R6/lib/libGLU.so.7.0: undefined symbol 'glMultMatrixd'
> python2.7:/usr/X11R6/lib/libGLU.so.7.0: undefined symbol 'glPopAttrib'
> ...

RTFM, dlopen(3), RTLD_GLOBAL vs. RTLD_LOCAL.

Reply via email to