Re: loading multiple modules in MacOS X

Johan Nordlander <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Robby Griffin wrote:

> The dlsym() replacement for MacOS X doesn't use its "handle" 
> parameter, so it has no hope of always finding the proper initModule 
> function from among multiple modules. I noticed this when trying the 
> graphics library, which loads two modules; the second one fails with 
> unknown primitive references. The attached patch works on my MacOS X 
> 10.2 system, but I'm not sure how compatible this is with other dyld 
> implementations.
>
> <dyld_patch.txt>
>
> 	--Robby
>

Hi Robby,

This bug was actually reported and fixed in the CVS sources in July 
this year.  So the upcoming release is going to handle multiple dynamic 
modules.

But thanks for the report anyway!

-- Johan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.