Pristine Ack-5.5
[Ack-5.5.git] / mach / m68k2 / Unisoft_bug
1 The following modifications to the file-system are required when
2 installing ACK under UniSoft Unix:
3
4 1) Create a writable directory /usr/tmp (if not present already)
5      mkdir /usr/tmp
6      chmod 777 /usr/tmp
7 2) Install the file "assert.h" in /usr/include (this file is not
8    included in the Unisoft distribution, although it is standard V7 Unix).
9    The file can be copied from the ACK-tree:
10      cp /usr/em/include/assert.h /usr/include
11
12 The UniSoft C compiler we used contains a bug that will cause
13 incorrect translations of the files getline.c and putline.c in
14 the directory util/opt (which contains the EM Peephole Optimizer).
15 To get around this bug, act as follows (after having compiled
16 the entire kit):
17         1) compile the files getline.c and putline.c by hand to assembly code
18            (cc -S getline.c putline.c)
19         2) edit the files getline.s and putline.s. Look for the instruction:
20                    add.l #em_flag+ ....  ,a0
21            which appears TWICE in both files
22            and change it into:
23                    add.l #em_flag-1,a0
24         3) do cc -c getline.s
25               cc -c putline.s
26            to create new object files getline.o and putline.o
27         4) throw away the file "opt" and type make