Aus Knowledgebase
Zur Navigation springen Zur Suche springen


Here, I will describe two Ultrix setups: Ultrix 3.0 on an emulated Simh VAX and Ultrix 3.1 on a real MicroVAX 3100. The emulated VAX is a lot faster than the real VAX.

restoring Ultrix 3.1 on a MicroVAX 3100

copy image to harddisk using dd
boot in single user mode:
boot/r5:2 dkb100

fsck edit /etc/fstab
edit /etc/passwd
edit /etc/group
edit /etc/ttys
edit /etc/hosts
edit /etc/resolv.conf
edit /etc/rc.local
build new kernel to recognize additional disks.
doconfig, then choose to edit config file with vi.
add: disk rz2 at scsi0 drive 2

After building a new kernel, doconfig changes /etc/rc.local and uses the ident name of the kernel configuration as the new hostname. This might break things. Check and reset to a proper hostname.




Filesystem   Total    kbytes   kbytes   %  
node         kbytes   used     free     used  Mounted on
/dev/rz9a      19183    7323    9942    42%   /
/dev/rz9g     239663  129235   86462    60%   /usr
/dev/rz9h     233247   46743  163180    22%   /usr/local
/dev/rz2a     191958   72583  100180    42%   /home

The largest small 3.5" SCSI disk that is know by ULTRIX 3.1 is the RZ23. But we can just add the RZ24:

rz24|RZ24|DEC RZ24 Winchester:\

This would likely work for other disks, but ULTRIX 3 very likely cannot use disks larger than 1GB. /etc/chpt works as known from ULTRIX 4.


# 		 "@(#)ttys	4.1	(ULTRIX)	11/23/87"
# name	getty		type		status		comments
#console	"/etc/getty e" 	 dw3 		on secure	# console terminal
console	"/etc/getty std.9600" vt100 on	secure	# console terminal
tty00	"/etc/getty std.9600" vt100	on nomodem secure # direct connect tty
tty01	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
tty02	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
tty03	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
tty04	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
tty05	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
tty06	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
tty07	"/etc/getty std.9600" vt100	off nomodem secure # direct connect tty
ttyp0	none		network secure
ttyp1	none		network secure
ttyp2	none		network secure
ttyp3	none		network secure
ttyp4	none		network secure
ttyp5	none		network secure
ttyp6	none		network secure
ttyp7	none		network secure
ttyp8	none		network secure
ttyp9	none		network secure
ttypa	none		network secure
ttypb	none		network secure
ttypc	none		network secure
ttypd	none		network secure
ttype	none		network secure
ttypf	none		network secure
ttyq0	none		network secure
ttyq1	none		network secure
ttyq2	none		network secure
ttyq3	none		network secure
ttyq4	none		network secure
ttyq5	none		network secure
ttyq6	none		network secure
ttyq7	none		network secure
ttyq8	none		network secure
ttyq9	none		network secure
ttyqa	none		network secure
ttyqb	none		network secure
ttyqc	none		network secure
ttyqd	none		network secure
ttyqe	none		network secure
ttyqf	none		network secure


set the date to 9912312359.59

then continue to set the date to 12312359.59 in steps until you reach the current year.

setld -l /dev/rmt0h

build GNU stuff:


sh configure vax
make stage1
make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"

do a make install. Trust this stage.

make stage2
make CC=stage2/gcc CFLAGS="-g -O -Bstage2/"
make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O"
make stage2
make CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O"
make compare
make install

flex-2.5.4a scan.c want to include stdlib.h, which does not exists.

make check fails, because we have edited scan.c Trust and install anyway...

Ultrix 3.0:

add: typedef int size_t;


sed-1.18 bison-1.25

Ultrix 3.1: edit /usr/local/lib/gcc-include/stddef.h and remove definition of size_t Ultrix defines size_t in <sys/types.h> as "typedef int size_t;"

Ultrix 3.0 works fine.

make-3.75 m4-1.4 bash-1.14.7


ultrix 3 doesn't know about atexit().
#undef HAVE_ATEXIT before building gcc.
configure as vax-dec-ultrix3.1
then do a make bootstrap
gcc will use the host cc to build the first stage. This works.
You can also edit the Makefile and use gcc to build the first stage: CC = gcc


#include <sys/types.h>



uncomment: /* extern SPRINTF_RET sprintf P((char *, const char *, ...)); */
needs link with -lm
copy install-sh from gawk to /usr/local/bin/install

gcc headers:

there is something in sys/types.h that gcc-2.3.3 cannot compile.
Fix the "volatile" on line 80 ff and copy the custom header to the gcc include directory.



binutils/arlex.c: remove includes of stdlib.h
ld/ldlex.c: remove includes of stdlib.h
On Ultrix 3.0:
if there are any "size_t undeclared" error, include <sys/types.h>
make install will fail. Copy as to /usr/local/bin/gas and ld to /usr/local/bin/gnuld.


incorrectly includes stdlib.h in ../gcc-
on line 73.
--with-as=/usr/local/bin/gas --with-gnu-as --with-ld=/usr/local/bin/gnuld --with-gnu-ld
change Makefile: edit CC = cc to CC = gcc.
stage1 gcc cannot be build with VAX cc anymore.
Ultrix 3.0:
/home/compile/gcc- -B/home/compile/gcc- -O -fgnu-runtime \

-c -DIN_GCC -O -g -I./include -I. -I.. -I/home/compile/gcc- -I/home/compile/gcc-

"/usr/tmp/cca25075.s", line 182: Invalid type in .stabs
make[2]: *** [NXConstStr.o] Error 1
make[2]: Leaving directory `/home/compile/gcc-'
make[1]: *** [libobjc.a] Error 2
make[1]: Leaving directory `/home/compile/gcc-'
make: *** [bootstrap] Error 2
retry withouth gnu as: also fails...
Foor some reason, ULtrix 3 and 3.1 won't build gcc-


--with-as=/usr/local/bin/gas --with-gnu-as --with-ld=/usr/local/bin/gnuld --with-gnu-ld
change Makefile: edit CC = cc to CC = gcc
--with-as=/usr/local/bin/gas --with-gnu-as --with-ld=/usr/local/bin/gnuld --with-gnu-ld
change Makefile: edit CC = cc to CC = gcc
fails to build objc in stage1.
edit Makefile and remove objc from LANG


#include <sys/types.h>
#define NULL 0
do not strip the make binary. this breaks make.
function.c and job.c:
#ifndef remove
#define remove unlink


needs some #include <sys/types.h> in files that use size_t.


#include <sys/types.h>




./configure --enable-nntp-only --with-domain=pcde.inka.de --with-nntp-default-server=news.akk.org --disable-nls --with-editor=/usr/local/bin/vim --enable-broken-system-fix mips-dec-ultrix3.1
Ultrix fopen() doesn't understand argument "wb".
Change to "w+"
add to pcre/pcre_globals.c:
#include <sys/types.h>
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern void free(void *);