This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
No bincompat5005.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 1 May 2002 02:04:22 +0000 (02:04 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 1 May 2002 02:04:22 +0000 (02:04 +0000)
p4raw-id: //depot/perl@16291

24 files changed:
Configure
INSTALL
NetWare/config.wc
Porting/Glossary
Porting/config.sh
README.mpeix
config_h.SH
configure.com
epoc/config.sh
hints/aix.sh
hints/cygwin.sh
hints/mpeix.sh
makedef.pl
myconfig.SH
pod/perltoc.pod
uconfig.h
uconfig.sh
vos/config.alpha.def
vos/config.ga.def
win32/config.bc
win32/config.gc
win32/config.vc
win32/config.vc64
wince/config.ce

index 011cdc0..c9d7651 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Wed Apr 24 03:05:12 EET DST 2002 [metaconfig 3.0 PL70]
+# Generated on Wed May  1 05:49:09 EET DST 2002 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -6642,45 +6642,6 @@ else
        installarchlib="$archlibexp"
 fi
 
-
-: Binary compatibility with 5.005 is not possible for builds
-: with advanced features
-case "$usethreads$usemultiplicity" in
-*define*)
-       bincompat5005="$undef"
-       d_bincompat5005="$undef"
-       ;;
-*)     $cat <<EOM
-
-This version of Perl can be compiled for binary compatibility with 5.005.
-If you decide to do so, you will be able to continue using most of the
-extensions that were compiled for Perl 5.005.
-
-EOM
-       case "$bincompat5005$d_bincompat5005" in
-       *"$undef"*) dflt=n ;;
-       *) dflt=y ;;
-       esac
-       rp='Binary compatibility with Perl 5.005?'
-       . ./myread
-       case "$ans" in
-       y*) val="$define" ;;
-       *)  val="$undef" ;;
-       esac
-       set d_bincompat5005
-       eval $setvar
-       case "$d_bincompat5005" in
-       "$define")
-               bincompat5005="$define"
-               ;;
-       *)      bincompat5005="$undef"
-               d_bincompat5005="$undef"
-               ;;
-       esac
-       ;;
-esac
-
-
 : see if setuid scripts can be secure
 $cat <<EOM
 
@@ -7337,11 +7298,7 @@ case "$dflt" in
 ''|' ') dflt=none ;;
 esac
 case "$dflt" in
-5.005) case "$bincompat5005" in
-       $define|true|[yY]*) ;;
-       *) dflt=none ;;
-       esac
-       ;;
+5.005) dflt=none ;;
 esac
 $cat <<'EOM'
 
@@ -9401,6 +9358,45 @@ eval $inlibc
 set bcopy d_bcopy
 eval $inlibc
 
+
+: Binary compatibility with 5.005 is not possible for builds
+: with advanced features
+case "$usethreads$usemultiplicity" in
+*define*)
+       bincompat5005="$undef"
+       d_bincompat5005="$undef"
+       ;;
+*)     $cat <<EOM
+
+This version of Perl can be compiled for binary compatibility with 5.005.
+If you decide to do so, you will be able to continue using most of the
+extensions that were compiled for Perl 5.005.
+
+EOM
+       case "$bincompat5005$d_bincompat5005" in
+       *"$undef"*) dflt=n ;;
+       *) dflt=y ;;
+       esac
+       rp='Binary compatibility with Perl 5.005?'
+       . ./myread
+       case "$ans" in
+       y*) val="$define" ;;
+       *)  val="$undef" ;;
+       esac
+       set d_bincompat5005
+       eval $setvar
+       case "$d_bincompat5005" in
+       "$define")
+               bincompat5005="$define"
+               ;;
+       *)      bincompat5005="$undef"
+               d_bincompat5005="$undef"
+               ;;
+       esac
+       ;;
+esac
+
+
 : see if this is a unistd.h system
 set unistd.h i_unistd
 eval $inhdr
@@ -17917,10 +17913,7 @@ set pid_t pidtype int stdio.h sys/types.h
 eval $typedef_ask
 
 : Find earliest binary compatible site_perl subdirectory perl can use.
-case "$bincompat5005" in
-"$define") xs_apiversion='5.005' ;;
-*) xs_apiversion=$version ;;   # The current site_perl version.
-esac
+xs_apiversion=$version # The current site_perl version.
 : Find earliest pure perl site_perl subdirectory perl can use.
 : The versioned directories started at 5.005.
 pm_apiversion='5.005'
diff --git a/INSTALL b/INSTALL
index 836f152..0a22dcb 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -107,7 +107,7 @@ Using the default Configure options for building perl should get you
 a perl that will be binary compatible with the 5.005 release.
 
 However, if you run Configure with any custom options, such as
--Dusethreads, -Dusemultiplicity, -Dusemymalloc, -Ubincompat5005 etc.,
+-Dusethreads, -Dusemultiplicity, -Dusemymalloc, etc.,
 the resulting perl will not be binary compatible.  Under these
 circumstances, if you have dynamically loaded extensions that were
 built under perl 5.005, you will need to rebuild and reinstall all
@@ -991,15 +991,8 @@ or you can answer 'n' at the appropriate interactive Configure prompt.
 
 =item -DPERL_POLLUTE_MALLOC
 
-NOTE: This flag is enabled automatically on some platforms if you
-asked for binary compatibility with version 5.005, or if you just
-run Configure to accept all the defaults on those platforms.  You
-can refuse the automatic binary compatibility flags wholesale by
-running:
-
-       sh Configure -Ubincompat5005
-
-or by answering 'n' at the appropriate prompt.
+NOTE: This flag is enabled automatically on some platforms if you just
+run Configure to accept all the defaults on those platforms.
 
 Perl's malloc family of functions are called Perl_malloc(),
 Perl_realloc(), Perl_calloc() and Perl_mfree().  When this flag is
index fc1cc18..c3417b0 100644 (file)
@@ -36,7 +36,6 @@ awk='awk'
 baserev='5'
 bash=''
 bin='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
-bincompat5005='undef'
 binexp='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
 bison=''
 byacc='byacc'
@@ -100,7 +99,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='define'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index 80f05ed..c731940 100644 (file)
@@ -62,7 +62,7 @@ api_revision (patchlevel.U):
        possible value.  The version list appropriate for the current
        system is determined in inc_version_list.U.
                XXX To do:  Since compatibility can depend on compile time
-       options (such as bincompat, longlong, etc.) it should
+       options (such as longlong, etc.) it should
        (perhaps) be set by Configure, but currently it isn't.
        Currently, we read a hard-wired value from patchlevel.h.
        Perhaps what we ought to do is take the hard-wired value from
@@ -141,10 +141,6 @@ bin (bin.U):
        is most often a local directory such as /usr/local/bin. Programs using
        this variable must be prepared to deal with ~name substitution.
 
-bincompat5005 (bincompat5005.U):
-       This variable contains y if this version of Perl should be
-       binary-compatible with Perl 5.005.
-
 binexp (bin.U):
        This is the same as the bin variable, but is filename expanded at
        configuration time, for use in your makefiles.
@@ -400,13 +396,6 @@ d_bcopy (d_bcopy.U):
        This variable conditionally defines the HAS_BCOPY symbol if
        the bcopy() routine is available to copy strings.
 
-d_bincompat5005 (bincompat5005.U):
-       This variable conditionally defines BINCOMPAT5005 so that embed.h
-       can take special action if this version of Perl should be
-       binary-compatible with Perl 5.005.  This is impossible for builds
-       that use features like threads and multiplicity it is always $undef
-       for those versions.
-
 d_bsd (Guess.U):
        This symbol conditionally defines the symbol BSD when running on a
        BSD system.
@@ -4434,8 +4423,8 @@ xs_apiversion (xs_apiversion.U):
        See INSTALL for how this works.
        The versioned site_perl directory was introduced in 5.005,
        so that is the lowest possible value.
-       Since this can depend on compile time options (such as
-       bincompat) it is set by Configure.  Other non-default sources
+       Since this can depend on compile time options
+       it is set by Configure.  Other non-default sources
        of potential incompatibility, such as multiplicity, threads,
        debugging, 64bits, sfio, etc., are not checked for currently,
        though in principle we could go snooping around in old
index 778b427..5fcef92 100644 (file)
@@ -46,7 +46,6 @@ awk='awk'
 baserev='5.0'
 bash=''
 bin='/opt/perl/bin'
-bincompat5005='define'
 binexp='/opt/perl/bin'
 bison='bison'
 byacc='byacc'
@@ -114,7 +113,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='define'
 d_bcopy='define'
-d_bincompat5005='define'
 d_bsd='undef'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='define'
index 2f16506..8203741 100644 (file)
@@ -42,9 +42,6 @@ mod_perl, you MUST download and install this version of Perl/iX!
 
 =item *
 
-bincompat5005="undef": sorry, but you will have to recompile any
-binary 5.005 extensions that you may be using (if any; there is no
-5.005 code in what you download from bixby.org)
 uselargefiles="undef": not available in MPE for POSIX files yet.
 
 =item *
index 508f8cd..a7e8a1a 100644 (file)
@@ -3604,8 +3604,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  *     See INSTALL for how this works.
  *     The versioned site_perl directory was introduced in 5.005,
  *     so that is the lowest possible value.
- *     Since this can depend on compile time options (such as
- *     bincompat) it is set by Configure.  Other non-default sources
+ *     Since this can depend on compile time options
+ *     it is set by Configure.  Other non-default sources
  *     of potential incompatibility, such as multiplicity, threads,
  *     debugging, 64bits, sfio, etc., are not checked for currently,
  *     though in principle we could go snooping around in old
index b4abec4..faec59d 100644 (file)
@@ -5143,7 +5143,6 @@ $ WC "d_attribut='" + d_attribut + "'"
 $ WC "d_bcmp='" + d_bcmp + "'"
 $ WC "d_bcopy='" + d_bcopy + "'"
 $ WC "d_bincompat3='undef'"
-$ WC "d_bincompat5005='undef'"
 $! WC "d_bsdpgrp='undef'"
 $ WC "d_bsdgetpgrp='undef'"
 $ WC "d_bsdsetpgrp='undef'"
index 83673ef..3b8862c 100644 (file)
@@ -43,7 +43,6 @@ awk='awk'
 baserev='5.0'
 bash=''
 bin=''
-bincompat5005='false'
 binexp=''
 bison='bison'
 byacc=''
@@ -106,7 +105,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='define'
 d_bcopy='define'
-d_bincompat5005='undef'
 d_bsd='undef'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index f3a3fc5..ef3ff07 100644 (file)
@@ -468,9 +468,6 @@ EOM
            ''|64*) archname64=64all ;;
            esac
            longsize="8"
-           # Don't try backwards compatibility
-           bincompat="$undef"
-           d_bincompat5005="$undef"
            qacflags=''
            qaldflags=''
            qalibs=''
index e42be64..e88cab7 100644 (file)
@@ -33,10 +33,6 @@ archname='cygwin'
 cccdlflags=' '
 ld='ld2'
 
-# optional(ish)
-# - perl malloc needs to be unpolluted
-bincompat5005='undef'
-
 # Win9x problem with non-blocking read from a closed pipe
 d_eofnblk='define'
 
index 53db015..f01b979 100644 (file)
@@ -143,7 +143,6 @@ timetype='time_t'
 #
 # Functionality.
 #
-bincompat5005="$undef"
 uselargefiles="$undef"
 #
 # Expected functionality provided in mpeix.c.
index d218411..5539ba8 100644 (file)
 my $PLATFORM;
 my $CCTYPE;
 
-my %bincompat5005 =
-      (
-       Perl_call_atexit                =>      "perl_atexit",
-       Perl_eval_sv            =>      "perl_eval_sv",
-       Perl_eval_pv            =>      "perl_eval_pv",
-       Perl_call_argv          =>      "perl_call_argv",
-       Perl_call_method                =>      "perl_call_method",
-       Perl_call_pv            =>      "perl_call_pv",
-       Perl_call_sv            =>      "perl_call_sv",
-       Perl_get_av             =>      "perl_get_av",
-       Perl_get_cv             =>      "perl_get_cv",
-       Perl_get_hv             =>      "perl_get_hv",
-       Perl_get_sv             =>      "perl_get_sv",
-       Perl_init_i18nl10n      =>      "perl_init_i18nl10n",
-       Perl_init_i18nl14n      =>      "perl_init_i18nl14n",
-       Perl_new_collate                =>      "perl_new_collate",
-       Perl_new_ctype          =>      "perl_new_ctype",
-       Perl_new_numeric                =>      "perl_new_numeric",
-       Perl_require_pv         =>      "perl_require_pv",
-       Perl_safesyscalloc      =>      "Perl_safecalloc",
-       Perl_safesysfree                =>      "Perl_safefree",
-       Perl_safesysmalloc      =>      "Perl_safemalloc",
-       Perl_safesysrealloc     =>      "Perl_saferealloc",
-       Perl_set_numeric_local  =>      "perl_set_numeric_local",
-       Perl_set_numeric_standard  =>   "perl_set_numeric_standard",
-       Perl_malloc             =>      "malloc",
-       Perl_mfree              =>      "free",
-       Perl_realloc            =>      "realloc",
-       Perl_calloc             =>      "calloc",
-      );
-
-my $bincompat5005 = join("|", keys %bincompat5005);
-
 while (@ARGV) {
     my $flag = shift;
     $define{$1} = 1 if ($flag =~ /^-D(\w+)$/);
@@ -1053,7 +1020,7 @@ elsif ($PLATFORM eq 'os2') {
     /^\s*[\da-f:]+\s+(\w+)/i and $mapped{$1}++ foreach <MAP>;
     close MAP or die 'Cannot close miniperl.map';
 
-    @missing = grep { !exists $mapped{$_} and !exists $bincompat5005{$_} }
+    @missing = grep { !exists $mapped{$_} }
                    keys %export;
     delete $export{$_} foreach @missing;
 }
@@ -1226,8 +1193,6 @@ sub emit_symbol {
 
 sub output_symbol {
     my $symbol = shift;
-    $symbol = $bincompat5005{$symbol}
-       if $define{PERL_BINCOMPAT_5005} and $symbol =~ /^($bincompat5005)$/;
     if ($PLATFORM eq 'win32') {
        $symbol = "_$symbol" if $CCTYPE eq 'BORLAND';
        print "\t$symbol\n";
index a71d7a3..2942139 100644 (file)
@@ -36,7 +36,7 @@ Summary of my $package (revision $baserev $version_patchlevel_string) configurat
     usethreads=$usethreads use5005threads=$use5005threads useithreads=$useithreads usemultiplicity=$usemultiplicity
     useperlio=$useperlio d_sfio=$d_sfio uselargefiles=$uselargefiles usesocks=$usesocks
     use64bitint=$use64bitint use64bitall=$use64bitall uselongdouble=$uselongdouble
-    usemymalloc=$usemymalloc, bincompat5005=$d_bincompat5005
+    usemymalloc=$usemymalloc, bincompat5005=undef
   Compiler:
     cc='$cc', ccflags ='$ccflags',
     optimize='$optimize',
index cc9fd78..b14290c 100644 (file)
@@ -10167,7 +10167,7 @@ C<asctime_r_proto>, C<awk>
 
 =item b
 
-C<baserev>, C<bash>, C<bin>, C<bincompat5005>, C<binexp>, C<bison>,
+C<baserev>, C<bash>, C<bin>, C<binexp>, C<bison>,
 C<byacc>, C<byteorder>
 
 =item c
@@ -10184,7 +10184,7 @@ C<csh>, C<ctermid_r_proto>, C<ctime_r_proto>
 
 C<d__fwalk>, C<d_access>, C<d_accessx>, C<d_alarm>, C<d_archlib>,
 C<d_asctime_r>, C<d_atolf>, C<d_atoll>, C<d_attribut>, C<d_bcmp>,
-C<d_bcopy>, C<d_bincompat5005>, C<d_bsd>, C<d_bsdgetpgrp>, C<d_bsdsetpgrp>,
+C<d_bcopy>, C<d_bsd>, C<d_bsdgetpgrp>, C<d_bsdsetpgrp>,
 C<d_bzero>, C<d_casti32>, C<d_castneg>, C<d_charvspr>, C<d_chown>,
 C<d_chroot>, C<d_chsize>, C<d_class>, C<d_closedir>, C<d_cmsghdr_s>,
 C<d_const>, C<d_crypt>, C<d_crypt_r>, C<d_csh>, C<d_ctermid_r>,
index 5cbd51d..2f6188c 100644 (file)
--- a/uconfig.h
+++ b/uconfig.h
 #define BIN "/usr/local/bin"   /**/
 #define BIN_EXP ""     /**/
 
-/* PERL_BINCOMPAT_5005:
- *     This symbol, if defined, indicates that this version of Perl should be
- *     binary-compatible with Perl 5.005.  This is impossible for builds
- *     that use features like threads and multiplicity it is always 
- *     for those versions.
- */
-/*#define PERL_BINCOMPAT_5005                  / **/
-
 /* BYTEORDER:
  *     This symbol holds the hexadecimal constant defined in byteorder,
  *     in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
  *     See INSTALL for how this works.
  *     The versioned site_perl directory was introduced in 5.005,
  *     so that is the lowest possible value.
- *     Since this can depend on compile time options (such as
- *     bincompat) it is set by Configure.  Other non-default sources
+ *     Since this can depend on compile time options
+ *     it is set by Configure.  Other non-default sources
  *     of potential incompatibility, such as multiplicity, threads,
  *     debugging, 64bits, sfio, etc., are not checked for currently,
  *     though in principle we could go snooping around in old
index ba3d253..a87be05 100755 (executable)
@@ -10,7 +10,6 @@ archlibexp='/usr/local/lib/perl5/5.7/unknown'
 archname='unknown'
 asctime_r_proto='0'
 bin='/usr/local/bin'
-bincompat5005='define'
 byteorder='1234'
 castflags='0'
 charsize='1'
@@ -44,7 +43,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='undef'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index ef3acee..179529a 100644 (file)
@@ -36,7 +36,6 @@ $d_atoll='undef'
 $d_attribut='undef'
 $d_bcmp='undef'
 $d_bcopy='undef'
-$d_bincompat5005='undef'
 $d_bsdgetpgrp='undef'
 $d_bsdsetpgrp='undef'
 $d_bzero='undef'
index 885025f..3fb3de1 100644 (file)
@@ -36,7 +36,6 @@ $d_atoll='undef'
 $d_attribut='undef'
 $d_bcmp='undef'
 $d_bcopy='undef'
-$d_bincompat5005='undef'
 $d_bsdgetpgrp='undef'
 $d_bsdsetpgrp='undef'
 $d_bzero='undef'
index 69cb885..0952833 100644 (file)
@@ -34,7 +34,6 @@ awk='awk'
 baserev='5'
 bash=''
 bin='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
-bincompat5005='undef'
 binexp='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
 bison=''
 byacc='byacc'
@@ -98,7 +97,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='define'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index 014381b..588a624 100644 (file)
@@ -132,7 +132,6 @@ awk='awk'
 baserev='5'
 bash=''
 bin='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
-bincompat5005='undef'
 binexp='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
 bison=''
 byacc='byacc'
@@ -192,7 +191,6 @@ d_atoll='undef'
 d_attribut='define'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='define'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index e4e47ec..1396fee 100644 (file)
@@ -34,7 +34,6 @@ awk='awk'
 baserev='5'
 bash=''
 bin='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
-bincompat5005='undef'
 binexp='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
 bison=''
 byacc='byacc'
@@ -98,7 +97,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='define'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index 37b05d8..e834d34 100644 (file)
@@ -34,7 +34,6 @@ awk='awk'
 baserev='5'
 bash=''
 bin='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
-bincompat5005='undef'
 binexp='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
 bison=''
 byacc='byacc'
@@ -98,7 +97,6 @@ d_atoll='define'
 d_attribut='undef'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='define'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
index 86ac886..9e42882 100644 (file)
@@ -36,7 +36,6 @@ awk='awk'
 baserev='5'
 bash=''
 bin='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
-bincompat5005='undef'
 binexp='~INST_TOP~~INST_VER~\bin~INST_ARCH~'
 bison=''
 byacc='byacc'
@@ -100,7 +99,6 @@ d_atoll='undef'
 d_attribut='undef'
 d_bcmp='undef'
 d_bcopy='undef'
-d_bincompat5005='undef'
 d_bsd='define'
 d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'