develooper Front page | perl.perl5.porters | Postings from July 2003

Re: 5.6.2

Thread Previous | Thread Next
From:
Enache Adrian
Date:
July 30, 2003 08:32
Subject:
Re: 5.6.2
Message ID:
20030730153831.GA1086@ratsnest.hole
On Wed, Jul 30, 2003 a.d., Rafael Garcia-Suarez wrote:
> I've created a sub-branch //depot/maint-5.6/perl-5.6.2 from the perl-5.6.1
> sources.
> 
> In it, I've upgraded DB_File from the CPAN distribution, and I've applied
> the necessary patches to get it to compile with gcc 3.x and / or on
> OpenUNIX 8.
> 
> If you have any patch to 5.6.1 necessary to compile it on modern
> systems, send them my way. Just get 5.6.1 and try to compile it

Here we go.
This patch -- a cut-n-paste from blead,
(+ the make depend/<built-in> thing -- that is already fixed, right ?)
makes 5.6.1 flawlessly build on FreeBSD 5.1-current.

And exactly like bleadperl, 5.6.1 runs fine with usemymalloc on this system.

Regards,
Adi

--- ./y/perl-5.6.1/Configure	Mon Mar 19 05:03:33 2001
+++ perl-5.6.1/Configure	Wed Jul 30 17:36:39 2003
@@ -5875,8 +5875,25 @@
 done'
 
 : see if this is a malloc.h system
-set malloc.h i_malloc
-eval $inhdr
+: we want a real compile instead of Inhdr because some systems have a
+: malloc.h that just gives a compile error saying to use stdlib.h instead
+echo " "
+$cat >try.c <<EOCP
+#include <stdlib.h>
+#include <malloc.h>
+int main () { return 0; }
+EOCP
+set try
+if eval $compile; then
+    echo "<malloc.h> found." >&4
+    val="$define"
+else
+    echo "<malloc.h> NOT found." >&4
+    val="$undef"
+fi
+$rm -f try.c try
+set i_malloc
+eval $setvar
 
 : see if stdlib is available
 set stdlib.h i_stdlib

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About