Dynamic loading problem with MrC build
There's a problem with dynamic loading of extension modules,
when the perl binary was built with the MrC compiler (first
reported by Andreas Marcel Riechert).
For example, running :t:lib:filecopy.t will result in a crash
of the MPW-Shell with Error 3 or Error 2. The point here is,
that File::Copy uses Mac::MoreFiles, an extension module. I've
figured out the following:
1. The crash won't happen if the extension is statically linked
in (no dynamic loading).
2. The crash won't happen if the script in question is run with
the MacPerl application (here, dynamic loading works).
3. When run with the perl MPW tool, the script does what it is
supposed to do, but on exit, it crashes the MPW-Shell.
Afterwards, when I try to run the perl tool again, I get an
'Unable to load code fragment "perl" ...' error in MPW and have
to reboot to get rid of it.
Log in to post a comment.