blazar has asked for the wisdom of the Perl Monks concerning the following question:

Ok, I wrote I was tempeted to do it, but I was afraid of my own inexperience; then bart said it's really "that simple" and I had grown increasingly frustrated with not having a handy platform to test e.g. the code from the (self-proclaimedly) most interesting post I wrote as of late: then I tried! That is, to install MinGW on my system to use CPAN to install binary modules for ActivePerl, but specifically, autobox (there's nothing else I'm missing from PPM's that I know of...) Actually, it is that simple: I also tried installing a random XS module and it built like a charm.

Of course, passing to autobox is a whole another matter: it should build for 5.10.0 too, and indeed it compiles just fine. But then it fails quite a lot of tests. "Oh, well!" I thought, and I tried forcing the install, just for experimenting, you know: in fact all experiments including the most elementary ones do fail to the effect that the syntax is not even recognized; I get a runtime error about not being allowed to call a method without a package or object reference.

Is there anything I could do to have this module install cleanly?

--
If you can't understand the incipit, then please check the IPB Campaign.

Replies are listed 'Best First'.
Re: Seeking help for compiling autobox with MinGW for ActivePerl under Windows
by jand (Friar) on Aug 28, 2008 at 00:44 UTC
    Which ActivePerl version were you using?

    I had no problems build and testing autobox with dmake and MinGW using the latest ActivePerl 5.8 and 5.10 release.

    Note that you can also install autobox from the new beta PPM repositories. These repositories should work for any ActivePerl build 818 and later (and will become the default repositories in 824 and 1004).

      Which ActivePerl version were you using?

      I personally believe:

      C:\temp>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread
      I had no problems build and testing autobox with dmake and MinGW using the latest ActivePerl 5.8 and 5.10 release.

      I'm using nmake but that shouldn't make a difference, should it?

      Note that you can also install autobox from the new beta PPM repositories.

      Let's see...

      OMFG! It works!! You have my eternal gratitude!

      I know I could be bashed harshly for saying this, but it's one of those occasions I would really like PM to have a social-network-like "status" update (a là Twitter) and then I would write there how happy I am for having eventually solved this problem: and indeed I would probably be bashed, if I said so in PMD rather than here; in fact that's the reason I'm refraining to do so, however tempted I am...

      Incidentally, now that you brought the AS beta repositories to my attention, I wonder whether they should be added to the PPM Repositories page of the Win32 Perl Wiki.

      --
      If you can't understand the incipit, then please check the IPB Campaign.
Re: Seeking help for compiling autobox with MinGW for ActivePerl under Windows
by Anonymous Monk on Aug 28, 2008 at 07:07 UTC
      C:/strawberry/perl/lib/CORE/config.h:4426:28: warning: "/*" within comment

      Just as well the author had the foresight to include -Wall in the compilation, or we would not have seen the 365 occurrences of that warning :-)

      Cheers,
      Rob
Re: Seeking help for compiling autobox with MinGW for ActivePerl under Windows
by syphilis (Archbishop) on Aug 28, 2008 at 06:37 UTC
    But then it fails quite a lot of tests.

    Do you have all pre-requisites installed ?

    Cheers,
    Rob

      [Even if the problem is now solved] I personally believed that CPAN.pm would take care of that out of the box. Oh, who minds?!? I'm keeping MinGW, anyway: just in case I should need it for some other "esoteric" module; or should I eventually resolve myself to get some rust off my C and perhaps learn some XS programming...

      --
      If you can't understand the incipit, then please check the IPB Campaign.