Mingw and perl.

T

TLOlczyk

I find that sometimes perl modules that include C code have problems
with the Activestate distro ( which uses MSVC ). I don't particularly
like cygwin because there are times when the cygwin dll can act
flakey. I've looked around for instructions on building perl within
Mingw, but am finding the information confusing. Can anyone explain/
recommend some web pages on using Mingw for perl?


The reply-to email address is (e-mail address removed).
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.
 
S

Sisyphus

TLOlczyk said:
I find that sometimes perl modules that include C code have problems
with the Activestate distro ( which uses MSVC ). I don't particularly
like cygwin because there are times when the cygwin dll can act
flakey.

Generally, if the C code doesn't compile on MSVC-built perl, it also
doesn't compile on MinGW-built perl either. The problem is often with
the OS rather than the compiler - in which case cygwin may turn out to
to be the only solution.
I've looked around for instructions on building perl within
Mingw, but am finding the information confusing. Can anyone explain/
recommend some web pages on using Mingw for perl?

When I build with MinGW I start with the source available from ActiveState:
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/Source

Alternatively you could use the source available from cpan.

The top-level source directory contains a file called 'README.win32'
which contains the information you need.

Unfortunately, with their latest release (build 810), ActiveState have
altered 'makefile.mk' so that it works with dmake and MSVC instead of
dmake and MinGW. (I don't know whether the same changes have been made
to the makefile.mk that ships with cpan source.) So I used the
makefile.mk that I had used with build 809.

That seemed to work fairly well - test25 in ext/threads/t/thread.t
failed - I don't know why - haven't looked, haven't worried, though I
probably should. (I also always get some failures in io/fs.t and
op/stat.t which I assume is because I'm building on a FAT rather than
NTFS file system.)

I'll email you the actual makefile.mk I ran to build my 810 (perl 5.8.4).

Hth.

Cheers,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top