Re: dynamic loading on SunOS 4.1

Guido.van.Rossum@cwi.nl
Thu, 03 Feb 1994 17:04:37 +0100

Jose M Pereira writes:

> I'm not sure what those complaints might be, but I did find that import.c
> broke between 1.0.0beta and the official release.

Jose is right. I never tested this code on a SunOS 4 system. His
patch works -- though you may still have to add

#ifndef RTLD_LAZY
#define RTDL_LAZY 1
#endif /* RTLD_LAZY */

since on our system that symbol is not defined in the header file.
Unfortunately I can't test it any more since *all* use of dlopen on
our SunOS 4 systems dumps core with a complaint about failing stub
resolution. :-(

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>