Subject: Re: Compiling NetBSD-current sources...
To: NetBSD/VAX Mailing List <port-vax@NetBSD.ORG>
From: Brian D Chase <brianc@carpediem.com>
List: port-vax
Date: 06/12/1997 02:46:35
On Wed, 11 Jun 1997, Bertram Barth wrote:
> I'm not using a recent -current but a rather old -current plus daily

Okay, just to give you an idea of what I'm dealing with.  This is based on
the sources I mirrored from the ftp.iastate.edu server as of 10pm PDT June
11, 1997.

Step 1
------
atari-vax# pwd
/usr/src/sys/arch/vax/conf
atari-vax# config ./GENERIC 
../../../../conf/files:7: syntax error
*** Stop.
atari-vax# 

Not a very good start...

Step 2
------
Modify /usr/src/conf/files, commenting out line #7:
#defopt KMEMSTATS

Step 3
------
atari-vax# pwd
/usr/src/sys/arch/vax/conf
atari-vax# config ./GENERIC 
Don't forget to run "make depend"
atari-vax#

Step 4
------
atari-vax# pwd
/usr/src/sys
atari-vax# make depend
...

Step 5
------
atari-vax# pwd
/usr/src/sys
atari-vax# make includes
...
atari-vax#

Step 6
------
atari-vax# pwd
/usr/src/sys
atari-vax# make
===> arch/vax
===> arch/vax/boot
cc -x assembler-with-cpp -E start.s | as -o start.o
cc -c -O -O -I. -I../../../../.. -I../../../.. -I../../.. -I../.. \
-I../../../lib/libsa -DSTANDALONE -DRELOC=0x100000 -DXXRPB=0x0F4240 \
bootxx.c
bootxx.c: In function `getbootdev':
bootxx.c:223: `BDEV_ST' undeclared (first use this function)
bootxx.c:223: (Each undeclared identifier is reported only once
bootxx.c:223: for each function it appears in.)
bootxx.c:224: `BDEV_SD' undeclared (first use this function)
bootxx.c: In function `romstrategy':
bootxx.c:384: `BDEV_ST' undeclared (first use this function)
bootxx.c:385: `BDEV_SD' undeclared (first use this function)
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
atari-vax#

Step 7
------
Add in bogus defines to /usr/include/machine/rpb.h, specifying BDEV_ST as
-1 and BDEV_SD as -2.

#define BDEV_ST         -1
#define BDEV_SD         -2


Step 8
------
atari-vax# pwd
/usr/src/sys
atari-vax# make
===> arch/vax
===> arch/vax/boot
...
cc -O -O -I. -I../../../../.. -I../../../.. -I../../.. -I../.. \
-I../../../lib/libsa -DSTANDALONE -DRELOC=0x100000 -DXXRPB=0x0F4240 -c \
netio.c 
netio.c:56: netinet/if_ether.h: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
atari-vax#

Step 9
------
atari-vax# pwd
/usr/src/sys
atari-vax# find . -name if_ether.h -print
./lib/libsa/if_ether.h
./net/if_ether.h
atari-vax#

atari-vax# ls -l lib/libsa/if_ether.h 
-rw-r--r--  1 root  wheel  9378 Mar  8 06:21 lib/libsa/if_ether.h
atari-vax# ls -l net/if_ether.h
-rw-r--r--  1 root  wheel  6510 Mar 16 06:29 net/if_ether.h
atari-vax#

Hmmmm, which one to use?  There is a /usr/include/net/if_ether.h so I'll
pretend that's what they meant.

Step 10
-------
atari-vax# pwd
/usr/src/sys/netinet
atari-vax# ln -s ../net/if_ether.h  if_ether.h
atari-vax#

(Lazy man's fix)

Step 11
-------
atari-vax# pwd
/usr/src/sys
atari-vax# make
===> arch/vax
===> arch/vax/boot
ar crv libsvax.a 
ar: no archive members specified
usage:  ar -d [-Tv] archive file ...
    ar -m [-Tv] archive file ...
    ar -m [-abiTv] position archive file ...
        ar -p [-Tv] archive [file ...]
  ar -q [-cTv] archive file ...
   ar -r [-cuTv] archive file ...
  ar -r [-abciuTv] position archive file ...
      ar -t [-Tv] archive [file ...]
  ar -x [-ouTv] archive [file ...]
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
atari-vax#

Ho hum... this is getting tedious :-)


Step 12
-------
atari-vax# pwd
/usr/src/sys
atari-vax# rm arch/vax/boot/libsvax.a 
atari-vax#

Step 13
-------
atari-vax# pwd
/usr/src/sys
atari-vax# make
...
cc -O -O -I. -I../../../../.. -I../../../.. -I../../.. -I../..
-I../../../lib/libsa -DSTANDALONE -DRELOC=0x100000 -DXXRPB=0x0F4240  -c
netio.c
cc -O -O -I. -I../../../../.. -I../../../.. -I../../.. -I../..
-I../../../lib/libsa -DSTANDALONE -DRELOC=0x100000 -DXXRPB=0x0F4240  -c
if_le.c
make: don't know how to make vers.o. Stop
*** Error code 2

Stop.
*** Error code 1

Stop.
atari-vax#

===

At this point I'm too tired to continue.  Have I done something really
stupid here?

-brian.
---------------------------------------------------------------------------
Brian D. Chase         Systems Coordinator        brian.chase@carpediem.com
-- Compression, Inc. - 13765 Alton Pkwy, Suite B - Irvine, CA 92618, USA --