Module loading weirdness

Simon Beaumont simon.beaumont at mac.com
Wed Dec 7 18:54:26 CET 2005


On Wed, 7 Dec 2005 17:25:29 +0000, Kevin Glynn wrote
(in article <mailman.209.1133976584.884.mozart-hackers at ps.uni-sb.de>):

> 
> 
> Simon,
> 
> Could it be the same as this:
> 
>    
http://www.mozart-oz.org/cgi-bin/oz-bugs/TRASHCAN?id=1415;user=guest;select
> id=1415
> 
> See Denys' explanation at the end.
> 
> cheers
> k


That's the one! funny how the loader on MacOS X doesn't screw this up.  So 
the symbol gets overwritten when the next .so is loaded... what about 
oz_init_module and oz_module_name?

Seems like OS X is cool with this...  there's dynamic link loaders and 
there's dynamic link loaders I guess - multiply defined symbols should 
generate some kind of warning or exception. 

Thanks for the pointer. 

Cheers,

Simon





More information about the mozart-hackers mailing list