T Wegner wrote: >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 >,
worked fine, thanks. >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) there was I trying to build String::CRC32 in the 'ext' folder - a pretty simple module I'd have thought - *sigh*. After a lot of poking about... Compiled! Failed to link, as I apparently didn't have PerlStub. Is PerlStub a new thing, because I compiled XS with 5.004 and I never remember seeing any PerlStub. Anyway, I couldn't find PerlStub anywhere, locally or on the web so a mere 2 hours 20 minutes later (Power Mac 4400/200, OS 8.6) I have a freshly compiled MacPerl-&-everything-else. And PerlStub. At last. _Finally_ after all that String::CRC32 compiled, linked, tested, perfectly. Thank goodness for tutorials. If anyone wants a copy then I'll package it up. >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. I downloaded that as soon as I saw it :-) Expat and the Gnome XML lib, and Xerxes and Xalan et al all took an incredible amount of dead chickens before they'd even consider compiling at work. On Solaris, though. Kudos for doing it on MacOS. P Footnote: I had previously been simply giving MPW explicit xsubpp, MrC and PPCLink commands. I got the xsubpp step done OK, but when MrC came along I got these messages, which _really_ confused me. MrC C Compiler 4.1.0f1c1 Copyright (C) 1994-1999 by Apple Computer, Inc. time_t tv_sec; /* seconds */ ^ File "Programs:Programming:Perl5.6.1:src:GUSI:include:sys:time.h"; line 48 #Error: ';' expected #----------------------- time_t tv_sec; /* seconds */ ^ File "Programs:Programming:Perl5.6.1:src:GUSI:include:sys:time.h"; line 56 #Error: ';' expected #----------------------- int pthread_attr_getstacksize(const pthread_attr_t * attr, size_t * size); etc etc