dynamically loaded modules (.so files) does not work under openbsd

Kiyo Kelvin Lee kiyolee*remove* at ctimail.com
Thu Oct 26 19:57:04 EDT 2000


You are exactly right.
Thanks.
Kiyo

"Laurence Tratt" <tratt at dcs.kcl.ac.uk> wrote in message
news:39F835FD.AC39663C at dcs.kcl.ac.uk...
> Kiyo Kelvin Lee wrote:
>
> > Under OpenBSD, I can't make dynamically loaded modules work.
> > Python responsed with "ImportError: dynamic modules does not define init
> > function (initXYZ)" upon import XYZ.
>
> You need to change Python/dynload_shlib.c:
>
>   from: sprintf(funcname, "init%.200s", shortname);
>   to:   sprintf(funcname, "_init%.200s", shortname);
>
> This line is very near the start of the file.
>
> I've been thinking of submitting this as a patch to the main source, but I
> don't know what other platforms need the same change as the comment in
> dynload_shlib implies.
>
>
> Laurie





More information about the Python-list mailing list