Aittvax.152
net.4bsd-bugs
utzoo!decvax!ittvax!swatt
Thu Dec  3 20:29:04 1981
system makefile bug
Tue Dec  1 19:54:46 EST 1981 (swatt, shp, etk)
[ ]     In the generic makefile for 4.1bsd (/sys/conf/makefile),
       the compilation of "param.c" does not include the flag
       -DKERNEL. It therefore tries to include files from
       /usr/include, which won't work without /usr mounted.  Once the
       KERNEL symbol is defined however, the file "../h/user.h"
       attempts to include "assym.s", which fails because include
       files names are prefixed with the directory location of the
       parent (I never knew this; is this new?).  Thus the "-I."
       argument everywhere; but it is missing for "param.o".

       Since the way param.o has been built is without including
       assym.s, perhaps this inclusion is unnecessary?

       Fix is:
       ---------------------------------------------------------------
       cp makefile /tmp/upd.$$.tmp ; chmod +w /tmp/upd.$$.tmp
       ed - /tmp/upd.$$.tmp <<\!XXFUNNYXX -C BERKELEY # VIRTUAL . FOR Q !XXFUNNYXX W 1981 2C /TMP/UPD.$$.TMP ${CC} PARAM.C ${CFLAGS} -I. OLD/MAKEFILE.1 ${PARAM} DIFF MAKEFILE VAX/UNIX, DECEMBER 122C>/tmp/upd.$$.dif
       if cmp - /tmp/upd.$$.dif <<\!XXFUNNYXX FEBRUARY BERKELEY # VIRTUAL < FOR 1981 --- 2C2 MAKEFILE VAX/UNIX,> # Makefile for Berkeley Virtual Vax/Unix, December 1981
       122c122
               ${CC} -I. -c ${CFLAGS} ${PARAM} param.c
       !xxFUNNYxx
       then
               : 'compare equal, ok'
               rm -f makefile
               cp /tmp/upd.$$.tmp makefile ; chmod a-w makefile
       else
               echo "Old source file not same version;" \
                       "use diff listings by hand"
       fi
       rm -f /tmp/upd.$$.tmp /tmp/upd.$$.dif
       ---------------------------------------------------------------
       ../h/user.h:
               /*      user.h  4.8     81/04/28        */


               - Alan S. Watt (decvax!ittvax!swatt)

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.