loading multiple modules in MacOS X
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. --Robby
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.
--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
On Thursday, Oct 31, 2002, at 03:38 US/Eastern, Johan Nordlander wrote:
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!
Oh, ok. In that case I'll revise my bug report to a documentation bug: there's no information about obtaining hugs from CVS, either on the website (http://www.haskell.org/hugs) or in the Dec2001 distribution. Given the hint, I can divine that the CVS info is similar to that for GHC, but I had no reason to look at the GHC pages when getting started with hugs98 the other day. --Robby
participants (2)
-
Johan Nordlander -
Robby Griffin