cvsuser 05/01/26 02:59:51
Modified: . README.win32
src malloc.c
Log:
[perl #33924] [PATCH] Build on Win32 with MinGW
I add some informations about building with MinGW32 in the file
"README.win32".
With default configuration, the build process is OK.
With --gc=malloc (or --gc=malloc-trace), an error occurs during compiling
of src/malloc.c :
src/malloc.c:637: conflicting types for `sbrk'
src/malloc.c:270: previous declaration of `sbrk'
After a small patch, what's build.
Courtesy of Fran�ois Perrad <[EMAIL PROTECTED]>
Revision Changes Path
1.3 +27 -10 parrot/README.win32
Index: README.win32
===================================================================
RCS file: /cvs/public/parrot/README.win32,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- README.win32 9 May 2004 14:58:40 -0000 1.2
+++ README.win32 26 Jan 2005 10:59:49 -0000 1.3
@@ -19,7 +19,7 @@
Borland C++ (bcc) version xxx or later
Microsoft Visual C++ (cl) version 13.10.3077 or later
- MinGW32 with GCC (gcc) version xxx or later
+ MinGW32 with GCC (gcc) version 3.2.3 or later
Intel C++ (icl) version 8.0.48 works
=head2 Setting Up Parrot
@@ -28,16 +28,19 @@
=item Make
-You need "nmake" to build Parrot under Windows. It should be
-available via Microsoft Visual Studio .NET 2003 or the Microsoft .NET
-Framework SDK 1.1. The later can be downloaded from the Microsoft
-.NET Framework Homepage L<http://msdn.microsoft.com/netframework/>.
+You need "nmake" to build Parrot under Windows with Microsoft compilers.
+It should be available via Microsoft Visual Studio .NET 2003 or the
+Microsoft .NET Framework SDK 1.1. The later can be downloaded from the
+Microsoft .NET Framework Homepage L<http://msdn.microsoft.com/netframework/>.
nmake should also be available at:
http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe
or
ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe
+MinGW works with its GNU "make" port. It can be downloaded here:
+L<http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe>
+
=item Command Shell
The surest way to build it is on Windows NT/2000/XP, using the cmd shell.
@@ -57,6 +60,8 @@
cd <parrot directory>
perl Configure.pl --icushared="C:\usr\lib\icu\lib\icudata.lib
C:\usr\lib\icu\lib\icuuc.lib" --icuheaders="C:\usr\lib\icu\include"
+With MinGW32, use icu-2.8-Win32_msvc6.zip .
+
=item Borland C++
XXX
@@ -75,7 +80,19 @@
=item MinGW32 with GCC
-XXX
+The latest release of MSYS package at the time of writing is 1.0.10,
+which contains gcc-3.2.3. It can be downloaded here:
+L<http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe>
+
+The HomePage is on L<http://www.mingw.org/>.
+
+As Configure.pl extracts configuration from the perl program,
+first build/install perl with MinGW (no binary distribution available).
+
+See details on L<http://search.cpan.org/dist/perl/README.win32>,
+and source on L<http://www.cpan.org/src/stable.tar.gz>.
+
+Nota: Use only the ICU binary distribution.
=item Intel C++
@@ -85,15 +102,15 @@
=head2 Building
- nmake
+ $MAKE
=head2 Testing
- nmake test
+ $MAKE test
=head2 Installation
- nmake install
+ $MAKE install
=head2 Usage Hints
@@ -127,6 +144,6 @@
This document borrows heavily from perl's README.win32.
-Last updated: 08 May 2004
+Last updated: 23 Jan 2005
=cut
1.5 +1 -1 parrot/src/malloc.c
Index: malloc.c
===================================================================
RCS file: /cvs/public/parrot/src/malloc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- malloc.c 28 Sep 2004 11:26:51 -0000 1.4
+++ malloc.c 26 Jan 2005 10:59:51 -0000 1.5
@@ -632,7 +632,7 @@
#ifdef LACKS_UNISTD_H
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
&& !defined(__GNUC__)
#if __STD_C
extern Void_t* sbrk(ptrdiff_t);
#else