From: "H.Merijn Brand" <h.m.brand@hccnet.nl>
Subject: Re: Perl 5.8.4 "panic: memory wrap" in miniperl on AIX 5.1
Message-Id: <
20040426152951.A6C4.H.M.BRAND@hccnet.nl>
p4raw-id: //depot/perl@22743
'') usemymalloc='n' ;;
esac
-# malloc wrap works
+# malloc wrap works, but not in vac-5, see later
case "$usemallocwrap" in
-'') usemallocwrap='define' ;;
-esac
+ '') usemallocwrap='define' ;;
+ esac
# Intuiting the existence of system calls under AIX is difficult,
# at best; the safest technique is to find them empirically.
ccversion=`echo "$ccversion" | awk '{print $2}'`
# Redbooks state AIX-5 only supports vac-5.0.2.0 and up
+ case "$ccversion" in
+ 5*) usemallocwrap='n' ;; # panic in miniperl
+ esac
;;
esac
ccflags="$ccflags -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE"
case "$cc" in
*gcc*) ;;
- *) ccflags="$ccflags -qmaxmem=-1 -qnoansialias"
- usemallocwrap='n' ;;
+ *) ccflags="$ccflags -qmaxmem=-1 -qnoansialias" ;;
esac
nm_opt='-B'
regcomp_cflags='optimize='
;;
esac
+ case "$ccversion" in
+ 5*) usemallocwrap='n' ;; # causes panic in miniperl
+ esac
esac
# the required -bE:$installarchlib/CORE/perl.exp is added by
# libperl.U (Configure) later.