source: trunk/third/perl/README.ncr @ 9009

Revision 9009, 4.8 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9008, which included commits to RCS files with non-trunk default branches.
Line 
1From: lreed@ncratl.AtlantaGA.NCR.COM (Len Reed)
2Newsgroups: comp.lang.perl
3Subject: Fixes for Perl 4.019 on NCR Tower V.3
4Date: 17 Feb 92 16:41:30 GMT
5Organization: Holos Software, Inc.
6
7Here are the fixes needed to make perl 4.019 on the NCR Tower V.3 system.
8I have bundled this as a shar file: feed everything below the CUT line
9to /bin/sh.
10
11The file hints/ncr_tower.sh fixes several problems.  It replaces the
12standard copy thereof.  Note that I use perl's malloc.  Note also
13that I have turned the optimizer completely off (-O0).  Optimizing
14at -O1 or -O2 produces some errors that the test suite doesn't catch.
15(Problems with alloca() and setjmp/longjmp, I think.)  It should be
16possible to optimize some modules but I haven't experimented with this.
17
18[NOTE: this hints file is already installed--lwall]
19
20I'm don't know if mkdir(2) works: I've left it undef'ed.  It is certainly
21broken in V.2.  If you need fast mkdir's you may want to experiment with
22this.
23
24The file patch.twg fixes a stupidity in /usr/netinclude/sys/time.h.
25You'll need this if you have WIN-TCP; you can't use it if you don't
26have WIN-TCP.  If needed, apply this patch *before* running Configure.
27
28Make sure you tell Configure that any config.sh it finds is to be ignored.
29
30After running Configure and make depend, edit config.h so that
31the CPPSTDIN definition has DEFAULT_CPP=/dev/null prepended.  It should
32look this this:
33
34#define CPPSTDIN "DEFAULT_CPP=/dev/null cc -E"
35
36This must be done by hand after running "make depend" and before running
37make.  I was unable to encode this into the hints file.
38
39This resulting perl should pass all tests.
40
41-Len Reed
42Holos Software, Inc.
43holos0!lbr@gatech.edu                (my main account)
44lreed@ncratl.atlantaga.ncr.com       (this account--on a customer's machine)
45
46-----CUT HERE----
47#!/bin/sh
48# This is a shell archive (shar 3.32)
49# made 02/17/1992 16:36 UTC by lreed@ncratl
50# Source directory /usr/acct/lreed/,q
51#
52# existing files WILL be overwritten
53#
54# This shar contains:
55# length  mode       name
56# ------ ---------- ------------------------------------------
57#   1593 -rw-rw-rw- patch.twg
58#    176 -rw-r--r-- hints/ncr_tower.sh
59#
60if touch 2>&1 | fgrep 'amc' > /dev/null
61 then TOUCH=touch
62 else TOUCH=true
63fi
64# ============= patch.twg ==============
65echo "x - extracting patch.twg (Text)"
66sed 's/^X//' << 'SHAR_EOF' > patch.twg &&
67XThe following patch fixes /usr/netinclude/sys/time.h on the Tower V.3.
68XPulling in <sys/time.h> with -I/usr/inetinclude makes a mess unless
69Xthe <sys/twg_config.h> file is pulled in, too.  It's stupid that an
70Xapplication (e.g., perl) should have to do this.  Thus, I fixed
71Xthe system header file.  The alternative is to make each application
72Xget the header file itself.  (The #if allows the application to do
73Xit, though, for compatibility with existing applications.)
74X
75XTo apply this patch, chdir to /usr/netinclude/sys and run
76X       patch <this_file
77X
78XIf the patch fails, fix the file by hand.  All I've done is put
79X#ifndef HDEF
80X       /* Len Reed 5/6/91 -- pulling in <sys/time.h> shouldn't cause
81X          HDEF to blow up the compile--auto pull in its defining file.
82X       */
83X# include <sys/twg_config.h>
84X#endif
85X
86Xbefore HDEF is used.
87X
88X-----The patch starts below this line
89X
90X*** time.h.old Fri Feb 14 12:06:46 1992
91X--- time.h     Fri Feb 14 12:04:32 1992
92X***************
93X*** 4,12 ****
94X  /*   time.h  6.1     83/07/29        */
95X  /* " @(#)time.h (TWG) 2.2 88/05/17 " */
96
97X! /*
98X  HDEF( "@(#)$RCSfile: README.ncr,v $$Revision: 1.1.1.1 $$Date: 1996-10-02 06:39:53 $" )
99X- */
100
101X  /*
102X   * Structure returned by gettimeofday(2) system call,
103X--- 4,17 ----
104X  /*   time.h  6.1     83/07/29        */
105X  /* " @(#)time.h (TWG) 2.2 88/05/17 " */
106
107X! #ifndef HDEF
108X!      /* Len Reed 5/6/91 -- pulling in <sys/time.h> shouldn't cause
109X!         HDEF to blow up the compile--auto pull in its defining file.
110X!      */
111X! # include <sys/twg_config.h>
112X! #endif
113X!
114X  HDEF( "@(#)$RCSfile: README.ncr,v $$Revision: 1.1.1.1 $$Date: 1996-10-02 06:39:53 $" )
115
116X  /*
117X   * Structure returned by gettimeofday(2) system call,
118SHAR_EOF
119$TOUCH -am 0217113592 patch.twg &&
120chmod 0666 patch.twg ||
121echo "restore of patch.twg failed"
122set `wc -c patch.twg`;Wc_c=$1
123if test "$Wc_c" != "1593"; then
124        echo original size 1593, current size $Wc_c
125fi
126# ============= hints/ncr_tower.sh ==============
127if test ! -d 'hints'; then
128    echo "x - creating directory hints"
129    mkdir 'hints'
130fi
131echo "x - extracting hints/ncr_tower.sh (Text)"
132sed 's/^X//' << 'SHAR_EOF' > hints/ncr_tower.sh &&
133Xoptimize='-O0'
134Xccflags="$ccflags -W2,-Sl,2000"
135Xeval_cflags='large="-W0,-XL"'
136Xteval_cflags=$eval_cflags
137Xd_mkdir=$undef
138Xusemymalloc='y'
139Xmallocsrc='malloc.c'
140Xmallocobj='malloc.o'
141SHAR_EOF
142$TOUCH -am 0214073692 hints/ncr_tower.sh &&
143chmod 0644 hints/ncr_tower.sh ||
144echo "restore of hints/ncr_tower.sh failed"
145set `wc -c hints/ncr_tower.sh`;Wc_c=$1
146if test "$Wc_c" != "176"; then
147        echo original size 176, current size $Wc_c
148fi
149exit 0
150
151
Note: See TracBrowser for help on using the repository browser.