Subject: Top level make problems (and others) + fixes (5 of 11 - #110) Index: src/*/{Makefile,.c} 2.11BSD Description: The process of recompiling the complete system from sources does not completely succeed, there are programs not compiled, programs installed in the wrong place, files (objects, man pages,etc) which are not removed when a "make clean" is done, man pages not formatted, other man pages which are the wrong ones being installed, programs compiling with errors and so on and so forth. In short, most of the Makefiles and a number of sourcefiles in the system were in need of repair. Much of the credit (or blame ;-)) for the series of patches to follow is due to Paul Taylor (taylor@oswego.oswego.edu). Takes a high amount of "patience" to do multiple top level 'make's on a pdp-11/73. Thanks. Repeat-By: cd /usr/src make all make install make clean After anywhere between 12 and 18 hours note the debris and errors left behind. Fix: Apply this (#110) and the following patches (111,112,113,114, 115, and 116). NOTE: the selection of hostfile or nameserver lookup is now made ONLY in /usr/src/lib/libc/Makefile. It used to be made in both /usr/src/Makefile and lib/libc/Makefile which lead to problems depending how full a "make" was being done. Some of the patches may not apply because the programs (notably in /usr/src/new and /usr/src/local) may not be present in the system (having been ported/added since the initial release of the system). There was an earlier posting of these programs ('popper', 'less', etc), if those articles are not present they may be obtained (along with these and previous patches) via anonymous FTP to 'ftp.iipo.gtegsc.com' in the directory pub/2.11BSD. The patches have been grouped and split along directory boundaries. The contents are: #106 - script to remove some redundant man pages and rename others to their correct resting place. /usr/src/Makefile (top level makefile) patch. NOTE: the choice of hostfile or nameserver is made only in lib/libc/Makefile now, not in both /usr/src/Makefile and lib/libc/Makefile #107 - /usr/src/bin updates. There are two source (.c and .h) updates as well as the Makefile patches. #108 - /usr/src/etc updates. Several source patches are included. #109 - /usr/src/games updates. A couple of .c files are also updated to remove compile time warnings. NOTE: before doing a top level make you will have to configure 'warp' and do a 'make depend'. #110 - /usr/src/lib updates. Only Makefiles are updated. #111 - /usr/src/local updates. Only Makefile are updated but some of the directories/programs may not exist on all systems. #112 - /usr/src/man updates. One man page (last.1) is updated along with the Makefiles. #113 - /usr/src/new updates. Some programs may not exist ('tcsh') on all systems (but are available via ftp). Other programs (rn, etc) may require some attention if the patches do not apply cleanly. #114 - /usr/src/ucb updates. The 'last' command is updated to handle alternate wtmp files. A couple other .h or .c files are updated to remove compile time warning errors. #115 - /usr/src/usr.bin updates. The 'struct' and 'tbl' program sources receive numerous updates to remove compile time errors. The remaining updates apply to the Makefiles. #116 - /usr/src/usr.lib updates. Makefiles are fixed. ======================================================================== *** /usr/src/lib/ccom/TEST/Makefile.old Wed Mar 11 23:39:50 1987 --- /usr/src/lib/ccom/TEST/Makefile Mon Jan 18 08:47:50 1993 *************** *** 49,51 **** --- 49,53 ---- clean: rm -f lex.yy.c *.o core ${ALL} + + install: *** /usr/src/lib/cpp/Makefile.old Wed Aug 7 05:21:56 1991 --- /usr/src/lib/cpp/Makefile Mon Jan 18 08:47:51 1993 *************** *** 32,38 **** clean : rm -f *.s *.o cpy.c rodata.c ! install : install -s cpp $(DESTDIR)/lib sources : cpp.c cpy.y yylex.c README --- 32,38 ---- clean : rm -f *.s *.o cpy.c rodata.c ! install : cpp install -s cpp $(DESTDIR)/lib sources : cpp.c cpy.y yylex.c README *** /usr/src/lib/libc/Makefile.old Fri Aug 24 15:30:43 1990 --- /usr/src/lib/libc/Makefile Sat Jan 23 18:01:40 1993 *************** *** 82,88 **** FRC: ! install: ${INSTALL} libc.a ${DESTDIR}/lib/libc.a ranlib ${DESTDIR}/lib/libc.a ${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a --- 82,88 ---- FRC: ! install: libc.a libc_p.a ${INSTALL} libc.a ${DESTDIR}/lib/libc.a ranlib ${DESTDIR}/lib/libc.a ${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a