Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not OK: perl 5.00560 on powerpc-machten 4.1.1 (UNINSTALLED) [PATCH] #397

Closed
p5pRT opened this issue Aug 19, 1999 · 1 comment
Closed

Not OK: perl 5.00560 on powerpc-machten 4.1.1 (UNINSTALLED) [PATCH] #397

p5pRT opened this issue Aug 19, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Aug 19, 1999

Migrated from rt.perl.org#1232 (status was 'resolved')

Searchable as RT1232$

@p5pRT
Copy link
Author

p5pRT commented Aug 19, 1999

From domo@vo.lu

1. MachTen uses PERL_SBRK_VIA_MALLOC and has the same problem with
  PERL_POLLUTE_MALLOC as OPENSTEP (see "[ID 19990816.005] Not OK​:
  perl 5.00560 on OPENSTEP-Mach 4_2" from Hans Mulder of Mon, 16
  Aug 1999 23​:23​:38 +0200. The attached tweak to Hans' patch
  (thanks Hans) applies a band-aid. I agree with Hans that the
  current mechanism is broken, but don't have time to fix it --
  holiday beckons. Sorry about that.

2. MachTen's shadow password file support is half-baked, my patch
  extends hints/machten.sh to disable its (attempted) support by
  perl.

3. I see the glibc "FAILED at test 192" problem in pragma/warning.
  Since MachTen is pretty much unsupported these days, I don't
  hold out much hope of an improved glibc appearing in an official
  distribution any time soon, even after the library's maintainers
  have come up with the promised fix. So what are the chances
  of coding in a get-out for MachTen and similar sad cases shortly
  before perl 5.(​:?00)?6 hits the streets?

Inline Patch
--- perl.h~	Tue Aug 17 21:32:06 1999
+++ perl.h	Tue Aug 17 21:32:09 1999
@@ -487,7 +487,7 @@
 #  include "embed.h"
 #endif

-#if defined(NeXT) || defined(__NeXT)
+#if defined(NeXT) || defined(__NeXT) || defined (__MACHTEN__)
 #undef PERL_POLLUTE_MALLOC
 #endif

--- hints/machten.sh~	Sun Aug  8 18:30:02 1999
+++ hints/machten.sh	Sun Aug  8 18:30:13 1999
@@ -13,6 +13,9 @@
 #	Martijn Koster <m.koster@webcrawler.com>
 #	Richard Yeh <rcyeh@cco.caltech.edu>
 #
+# Disable shadow password file access: MT 4.1.1 has necessary library
+# functions, but not header file (or documentation)
+#                      -- Dominic Dunlop <domo@computer.org> 990804
 # For now, explicitly disable dynamic loading -- MT 4.1.1 has it,
 # but these hints do not yet support it.
 # Define NOTEDEF_MACHTEN to undo gratuitous Tenon hack to signal.h.
@@ -36,6 +39,13 @@
 #
 # Comments, questions, and improvements welcome!
 #
+# MachTen 4.1.1's support for shadow password file access is incomplete:
+# disable its use completely.
+d_endspent=${d_endspent:-undef}
+d_getspent=${d_getspent:-undef}
+d_getspnam=${d_getspnam:-undef}
+d_setspent=${d_setspent:-undef}
+
 # MachTen 4.1.1 does support dynamic loading, but perl doesn't
 # know how to use it yet.
 usedl=${usedl:-undef}
@@ -190,6 +200,11 @@

 select the default answer: vfork() works, and avoids expensive data
 copying.
+
+You may also see "WHOA THERE!!!" messages concerning \$d_endspent,
+\$d_getspent, \$d_getspnam and \$d_setspent.  In all cases, select the
+default answer: MachTen's support for shadow password file access is
+incomplete, and should not be used.

 At the end of Configure, you will see a harmless message
Perl Info


Site configuration information for perl 5.00560:

Configured by domo at Wed Aug 18 21:41:39 WET DST 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 60) configuration:
  Platform:
    osname=machten, osvers=4.1.1, archname=powerpc-machten
    uname='machten ppp100 4 1.1 powerpc '
    config_args='-des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='cc', optimize='-O2 -fomit-frame-pointer', gccversion=2.8.1
    cppflags='-DNOTDEF_MACHTEN -DREG_INFTY=2047'
    ccflags ='-DNOTDEF_MACHTEN -DREG_INFTY=2047'
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -Xlstack=1048576 -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-lndbm -lgdbm -ldb -ldl -lm -lc
    libc=/usr/lib/libc.a, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
    cccdlflags='', lddlflags=''

Locally applied patches:



@INC for perl 5.00560:
    lib
    /usr/local/lib/perl5/5.00560/powerpc-machten
    /usr/local/lib/perl5/5.00560
    /usr/local/lib/site_perl/5.00560/powerpc-machten
    /usr/local/lib/site_perl
    .


Environment for perl 5.00560:
    HOME=/home/domo
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/lib
    LOGDIR (unset)

PATH=/sbin:/usr/sbin:/home/domo/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11/bin:/u
sr/libexec
    PERL_BADLANG (unset)
    SHELL=/bin/sh

--
Dominic Dunlop



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant