'import dl' on AMD64 platform

Nick Craig-Wood nick at craig-wood.com
Sun Feb 18 14:30:35 EST 2007


John Pye <john.pye at gmail.com> wrote:
>  I have a tricky situation that's preventing my Python/SWIG/C
>  application from running on the Debian Etch AMD64 platform.
> 
>  It seems that the 'dl' module is not available on that platform. The
>  only reason I need the 'dl' module, however, is for the values of
>  RTLD_LAZY etc, which I use with sys.setdlopenflags() in order to make
>  my imported SWIG module share its symbols correctly with more deeply-
>  nested plugin modiles in my C-code layer.
> 
>  I wonder if there is a workaround for this -- perhaps another way to
>  access the values of those RTLD flags?

Read stuff out of /usr/include/bits/dlfcn.h ?

It seems to be a constant 1 anyway

#define RTLD_LAZY       0x00001

You could try compiling the dl module by hand.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list