Thread View: net.4bsd-bugs
1 messages
1 total messages
Started by ittvaxswatt
Thu, 03 Dec 1981 20:29
system makefile bug
Author: ittvaxswatt
Date: Thu, 03 Dec 1981 20:29
Date: Thu, 03 Dec 1981 20:29
53 lines
1925 bytes
1925 bytes
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
122c
${CC} -I. -c ${CFLAGS} ${PARAM} param.c
.
2c
# Makefile for Berkeley Virtual Vax/Unix, December 1981
.
w
q
!xxFUNNYxx
diff OLD/makefile.1 /tmp/upd.$$.tmp >/tmp/upd.$$.dif
if cmp - /tmp/upd.$$.dif <<\!xxFUNNYxx
2c2
< # Makefile for Berkeley Virtual Vax/Unix, February 1981
---
> # Makefile for Berkeley Virtual Vax/Unix, December 1981
122c122
< ${CC} -c -O ${IDENT} ${PARAM} param.c
---
> ${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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads