]> cvs.zerfleddert.de Git - micropolis/blame - src/tcl/porting.txt
remove outdated and unused .dif-files
[micropolis] / src / tcl / porting.txt
CommitLineData
6a5fa4e0
MG
1This file contains a collection of notes that various people have
2provided about porting Tcl to various machines and operating systems.
3I don't have personal access to any of these machines, so I make
4no guarantees that the notes are correct, complete, or up-to-date.
5In some cases, a person has volunteered to act as a contact point
6for questions about porting Tcl to a particular machine; in these
7cases the person's name and e-mail address are listed.
8
9---------------------------------------------
10Cray machines running UNICOS:
11Contact: John Freeman (jlf@cray.com)
12---------------------------------------------
13
141. The nm command on unicos doesn't have a -p option, so I removed it
15from the config script without apparent harm.
16
17diff -c -r1.1 config
18*** 1.1 1991/11/12 15:11:51
19--- config 1991/11/12 15:14:18
20***************
21*** 57,63 ****
22 echo " to set the libc variable."
23 exit(1)
24 endif
25! nm -p $libc > tmp.libc
26 if ( $status != 0 ) then
27 echo "- ERROR\!\! Nm failed to extract names of system-supplied library"
28 echo " procedures from $libc. You'll have to modify config by hand to"
29--- 57,63 ----
30 echo " to set the libc variable."
31 exit(1)
32 endif
33! nm $libc > tmp.libc
34 if ( $status != 0 ) then
35 echo "- ERROR\!\! Nm failed to extract names of system-supplied library"
36 echo " procedures from $libc. You'll have to modify config by hand to"
37
382. There is an error in the strstr function in UNICOS such that if the
39string to be searched is empty (""), the search will continue past the
40end of the string. Because of this, the history substitution loop
41will sometimes run past the end of its target string and trash
42malloc's free list, resulting in a core dump some time later. (As you
43can probably guess, this took a while to diagnose.) I've submitted a
44problem report to the C library maintainers, but in the meantime here
45is a workaround.
46
47-----------------------------------------------------------------
48diff -c1 -r1.1 tclHistory.c
49*** 1.1 1991/11/12 16:01:58
50--- tclHistory.c 1991/11/12 16:14:22
51***************
52*** 23,24 ****
53--- 23,29 ----
54 #include "tclInt.h"
55+
56+ #ifdef _CRAY
57+ /* There is a bug in strstr in UNICOS; this works around it. */
58+ #define strstr(s1,s2) ((s1)?(*(s1)?strstr((s1),(s2)):0):0)
59+ #endif _CRAY
60
61
62---------------------------------------------
63HP-UX systems:
64---------------------------------------------
65
661. The #define for TCL_UNION_WAIT in tclUnix.h needs to be set to 0,
67not 1. I've tried a number of techniques to get the "config" script
68to figure this out and set it correctly, but so far I haven't been
69able to make it work for HP-UX systems.
70
712. It may also be useful to add the flag "-D_BSD" to CFLAGS in the
72Makefile, but I'm not sure this is necessary (and it may even be
73evil) if TCL_UNION_WAIT has been #define'd correctly.
74
75---------------------------------------------
76MIPS systems runing EP/IX:
77---------------------------------------------
78
791. Need to add a line "#include <bsd/sys/time.h>" in tclUnix.h.
80
812. Need to add "-lbsd" into the line that makes tclTest:
82
83 ${CC} ${CFLAGS} tclTest.o libtcl.a -lbsd -o tclTest
84
85---------------------------------------------
86IBM RS/6000 systems running AIX:
87---------------------------------------------
88
891. The system version of strtoul is buggy, at least under some
90versions of AIX. If the expression tests fail, try forcing Tcl
91to use its own version of strtoul instead of the system version.
92To do this, first copy strtoul.c from the compat subdirectory up
93to the main Tcl directory. Then modify the Makefile so that
94the definition for COMPAT_OBJS includes "strtoul.o". Note: the
95"config" script should now detect the buggy strtoul and substitute
96Tcl's version automatically.
97
982. You may have to comment out the declaration of open in tclUnix.h.
99
1003. The "nm -p ..." line in the file "config" has to be changed to
101"nm -en ..." if you use the version of nm that's in /bin. If you're
102set up to use the BSD version (in /usr/ucb) then this won't be a
103problem.
104
105---------------------------------------------
106AT&T 4.03 OS:
107---------------------------------------------
108
109Machine: i386/33Mhz i387 32k Cache 16MByte
110OS: AT&T SYSV Release 4 Version 3
111X: X11R5 fixlevel 9
112Xserver: X386 1.2
113
1141. Change the Tk Makefile as follows:
115XLIB = -lX11
116 should be changed to:
117XLIB = -lX11 -lsocket -lnsl
118
1192. Change the Tcl "config" script as follows:
120set libc="/lib/libc.a"
121 should be changed to:
122set libc="/usr/ccs/lib/libc.a"
123
124-------------------------------------------------------
125Motorola MPC's running UNIX System V/88 Release R32V2:
126-------------------------------------------------------
127
1281. Tcl should build without any modifications to sources, but csh
129isn't supplied with the operating system so you'll have to find and
130use the public-domain tcsh.
131
132-------------------------------------------------------
133SGI machines running Irix release 4.0.1 or earlier:
134-------------------------------------------------------
135
1361. There's a bug in the optimizer; compile tclVar.c using -O0.
137
1382. In tclUnix.h, add the following just before the declaration of environ:
139
140#ifdef __sgi
141#define environ _environ
142#endif
143
144---------------------------------------------
145NeXT machines running NeXTStep 2.1:
146---------------------------------------------
147
1481. Change the "libc" definition in the config file to
149 set libc="/lib/libsys_s.a"
150
1512. Several of the "format" and "scan" tests will fail, but these are
152all minor nits stemming from imperfect POSIX compliance in the NeXT
153C library procedures. The errors are unlikely to affect any Tcl
154applications.
Impressum, Datenschutz