At 12:26 am +1100 08/03/03, Rick Measham wrote:

I've only just joined this list, but from what I read in the
archives, this is the right way to do it and this is the right place
to do it :)

I'm trying with all my might to build DateTime, which is XS based. I
have got MPW Shell going and the perl tool. I've managed to configure
stuff and I've even hacked some files to see what's going on (DEBUG
lines below).

Now I've finally worked out how to get it uto use MrC rather than the
CodeWarrior stuff that seems to be the default.

Only now I'm getting an error that compat.h can't be found. I figure
I need to change a path or two right? So I use Sherlock to find out
where the sneaky little file is. Only its nowhere! Have I missed
downloading something? Do I have some out-of-date distro (downloaded
it yesterday :)

Any help would be GREATLY appreciated. Once I work all this out I'm
thinking of writing 'Building XS Modules for MacPerl for Dummies' --
aimed at non-C people. Basically saying 'Download this, type that'.

This is quite a tough one to start with. In addition to DateTime-0.07 you will also need (from CPAN):


        Date-TimeZone-0.09
        Class-Factory-Util-1.4
        Params-Validate-0.05

Params-Validate also requires a binary to be built from Validate.xs.

I have attached (privately to Rick) a folder containing MPW Compile and Link scripts plus a DateTime binary built by them (using MacPerl 5.6.1r1). The same scripts can be used to build Validate. Anyone else who would like this folder please write to me.

This is not quite the end of the matter however. DateTime passes all tests in the folder 't' with the exception of:

04epoch.t All test fail. This is almost certainly due the the fact that the module expects the Unix epoch (January 1920) rather than the
Mac epoch (January 1904).


        13strftime.t Test 23, 55 and 87 fail. I suspect this is also due to
        the 'epoch problem'

        14language.t Test 1 and 12 fail -- this may possibly be a directory
        separator problem (?).

It shouldn't be too difficult to Macify this module if it is only a matter of the epoch date and some directory separators.

HTH,

Alan Fry

Reply via email to