http://qs1969.pair.com?node_id=198701

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

I'm trying to make ActiveState's Perl dist use Cygwin's gcc, but I can't get the compiler options correct in Config.pm. Could someone using a Perl dist build with gcc, please post the ccflags and cppflags lines from their Config.pm?

And if anyone's already done this, please share!

I am aware that Cygwin gcc (according to AS) cannot be used to build the AS Perl dist, but I'm taking a stab that I can use it to build modules...

--
May the Source be with you.

You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

Replies are listed 'Best First'.
Re: Making ActiveState dist use Cygwin gcc on Win32
by Zaxo (Archbishop) on Sep 18, 2002 at 01:46 UTC

    Unfortunately, the two compilers can and do arrange low-level data in incompatible ways. Good luck, but don't get your hopes up.

    After Compline,
    Zaxo

      Phooey. I'll just have to build/use those modules totally under Cygwin. Thanks!

      Update:/me smacks himself on the forehead after figuring out where he could find a Config.pm like he's looking for... just as well, he couldn't find it until now and create even more mayhem.

Re: Making ActiveState dist use Cygwin gcc on Win32
by thunders (Priest) on Sep 18, 2002 at 03:06 UTC

    the only way to get modules going under Active State AFAIK is with nmake. availible here occasionally you will fail on building modules because you do not have cl.exe or c1.dll both of these are availible in older versions Visual Studio. I got a student version several years ago for $150 i'm not sure if these can be found anywhere else. nmake is usually enough to build packages under windows.

    Otherwise you can build with the version of perl that comes with cygwin.

      Nmake isn't a problem--got it. Many mods want to compile C or CPP code and want cl.exe (not freely available from M$ AFAIK). I have it at work, but not at home, so I was looking for a cheap way to use AS Perl and build those mods at home.
Re: Making ActiveState dist use Cygwin gcc on Win32
by simonflk (Pilgrim) on Sep 24, 2002 at 17:59 UTC
    I am aware that Cygwin gcc (according to AS) cannot be used to build the AS Perl dist, but I'm taking a stab that I can use it to build modules...

    I've managed to build the AS Perl dist using mingw.

    I also found (though I may have been lucky), that I could build perl/xs modules with mingw against my mingw perl, then package them up as a PPM and install them on a regular ActiveState perl. As I say, I may have just been lucky with the modules I've tried that with.

    update: You could also try ExtUtils::FakeConfig, which is meant to allow you to "allows to build modules for ActivePerl with MinGW GCC" (from the readme)

    -- simonflk