[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Build Advice from Codewarrior/MacOS experts requested



In article <Pine.GSO.3.95.iB1.0.990205232309.4699A-100000@halifax.chebucto.ns.ca>, Arved Sandstrom <Arved_37@chebucto.ns.ca> writes:
> Math-Random-0.6 consists of 5 source files, and a header.  As of earlier 
> this week I thought I'd built it for PPC, and that there was some linking 
> problem with CFM only.  Well, the problem specific to CFM went away when I 
> compiled a new MathLib with the far model, and I figured I was set.  The 
> PPC build tested out under MPW, and I schlepped the entire dist over to 
> Chris.

> Fortunately he uses the MacPerl app much more than I do, and he tested 
> under that.  Dynaloader barfs on dl_load_file() with a -2807 Code Fragment 
> Manager error, which is "fragHadUnresolveds", or "Loaded fragment has 
> unacceptable unresolved symbols".

That normally means that your fragment *imports* something that is not
exported. Do a DumpPEF on the fragment and check what it is importing from
perl. It might be that I forgot to export some of it from MacPerl.

> I went and looked at Random.exp. My first question: why is only the 
> bootstrap, "boot_Math__Random", being exported?

That's why they call it a bootstrap function :-)

Perl gets the bootstrap function through a lookup by name and calls it. This
function then registers all the other exported functions (and since it resides
in the same module, it can reference them locally without needing to import
them.

Matthias

-- 
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   " `For tactical reasons,' the blonde said, `we do not currently advocate
    the use of violence or sorcery against private individuals.' " 
                                        -- William Gibson, _Virtual Light_

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch