#62 Dynamic loading problem with MrC build

Development Branch

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.

Best regards,



  • Chris Nandor

    Chris Nandor - 2001-08-29

    Logged In: YES

    I am dropping the priority level for now; my primary goal is
    to get MacPerl released. I know that you all help me in that
    and would like MrC, but Matthias' time is limited. If
    someone else can help fix this, that would be good, of

  • Chris Nandor

    Chris Nandor - 2001-08-29
    • priority: 5 --> 3
    • assigned_to: pudge --> neeri
  • Horst Pralow

    Horst Pralow - 2002-04-16

    Logged In: YES

    I seem to run into the same or related problems with the MPW tool
    installed by the 5.6.1r1 Web-Inistaller. I don't wheter the binary
    distribution was built with CW or MPW compilers, however the
    symptoms are somewhat similar to what Thomas reported:

    When running the Makefile.PL script for DBD-Oracle-1.12, MPW
    crashes reproducable and then I have to reboot to dismiss that
    'Unable to load code fragment "perl" ...' error in MPW.

    The Makefile.PL runs fine with MacPerl (although it won't write a
    useable makefile but thats OK).


Log in to post a comment.