At 0:44 Uhr +0000 21.03.2002, p kent wrote:
>>At 03:51 -0600 2002.03.20, CNANDOR said:
>>The official build is CW Pro 5, but an app built with MrC should be
>>compatible with the MWCPPC-built shared libraries in the distribution.
>>Good luck,
>
>So I can build XS libraries using MPW & MrC and they'll work with your
>released binary build of MacPerl 5.6.1?

Yes it works. A XS library is a shared lib, and both CW and MPW builds can 
load it. (Well, in theory: There's a known issue with the MPW tool when built 
with MrC. See macperldelta.pod.)

>
>I ask this because I've built some (very simple) XS with MPW and a lot of
>cutting and pasting from
>http://www.macperl.com/depts/Tutorials/XS/mpxstut.html (which looks like
>about the best resource I can find) and I'd like to keep doing so.
>
>2 questions:
>1) Is there a more up-to-date 'how to do XS with MacPerl5.6.1' resource, and

Version 1.2 (tutorial without tools, but with sample CW projects) may be found here

http://www2.watanabe.arch.waseda.ac.jp/hw/1992/kim/MacPerl/MP_XS_TUT_v1.2.0.sit  ,

with contributions from Takeshi Kimura and me. If that URL doesn't work, let me know
and I'll send you a copy.

Usually, building an extension module for MP 5.6.1 under MPW is as simple as

     perl Makefile.PL
     buildprogram dynamic    (or buildprogram install_dynamic)
 
However, a few modules will require more or less porting, since Mac OS Classic is 
not Unix, and this can be tricky (sometimes impossible?). When there's a library
involved, you have to build it first, of course. This can be easy or not. You might
want to look at my XML::Parser 2.30 for MP 5.6.1 distribution, available from

   $CPAN/authors/id/T/TW/TWEGNER/ ,

to get an idea what I've done to build the expat library and the Expat.xs Perl glue.
Included are all Makefiles and a MPW Worksheet with build instructions for the 
expat library.


>2) Has anyone compiled GD for 5.6.1 yet? I looked on cpan and the macperl
>porters page but I can only see 5.004 builds, which doesn't work with 5.6.1
>AIUI.[1] I've built GD on Unixish systems a fair few times, but I think
>building it (and libgd) on MacOS might be beyond me for now. I mean, I'm
>happy to have an attempt but I don't know how successful I'd be.
>

I'm not aware of a port for MP 5.6.1.

>
>[1] Or rather, I understand the API changed, so that things need to be
>rebuilt for 5.6.1, and indeed GD 1.19 from macperl porters gave this error:
>
># Can't load 'Programs:Programming:Perl5.6.1:site_perl:MacPPC:auto:GD:GD'
>for module GD: DynaLoader error [-2807, Perl--Perl_markstack_max].
>File 'Programs:Programming:Perl5.6.1:lib:DynaLoader.pm'; Line 206
># Compilation failed in require.
>File 'Untitled'; Line 4
># BEGIN failed--compilation aborted.
>File 'Untitled'; Line 4
>
>which is to be expected.

Right, the 5.004 and 5.6.1 versions are not binary compatible.


Best regards,

--Thomas



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to