Hugs98 for OSX -- Multiple DLL modules
Dear Hugs maintainers, the December 2001 version of Hugs for MacOSX does not support the use of multiple foreign function modules. This is a pity, because HGL consists of three such modules ... ;-) The problem is the use of NSLookupAndBindSymbol in function dyld in file machdep.c NSLookupAndBindSymbol does not allow the specification of the DLL module in which to lookup the symbol. Therefore, always the same (first?) instance of "initModule" is found. I have replaced it with the function NSLookupSymbolInModule, which allows to specify the DLL module. This seems to work. I have included a tgz archive containing - a modified machdep.c - the config.status I have used for building my hugs - For yourc convenience, my hugs & runhugs built from your December 2001 sources, the modified machdep.c, and config.status If you think it worthwhile, you could make this version available to other MacOSX users. With best regards, Thomas -- ---------------------------------------------------- Dr. Thomas Kirste Dept. Head Mobile Multimedia Technologies Fraunhofer-Institut für Graphische Datenverarbeitung J.-Jungius-Str. 11 18059 Rostock, Germany
Dear Hugs maintainers,
the December 2001 version of Hugs for MacOSX does not support the use of multiple foreign function modules. This is a pity, because HGL consists of three such modules ... ;-)
The problem is the use of NSLookupAndBindSymbol in function dyld in file machdep.c
NSLookupAndBindSymbol does not allow the specification of the DLL module in which to lookup the symbol. Therefore, always the same (first?) instance of "initModule" is found.
I have replaced it with the function NSLookupSymbolInModule, which allows to specify the DLL module. This seems to work.
I have included a tgz archive containing - a modified machdep.c - the config.status I have used for building my hugs - For yourc convenience, my hugs & runhugs built from your December 2001 sources, the modified machdep.c, and config.status
If you think it worthwhile, you could make this version available to other MacOSX users.
With best regards,
Thomas
--
Dear Thomas, Thanks for the contribution! The Foreign Function Interface, as well as the MacOS X port of Hugs is currently undergoing major changes, in an attempt to (among other things) support HGL on the Mac. So your contribution is most welcome, and will be merged into the CVS tree. All the best, Johan
participants (2)
-
Johan Nordlander -
Thomas Kirste