Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!rutgers!sri-unix!hplabs!tektronix!tekcrl!toddb From: toddb@tekcrl.UUCP (Todd Brunhoff) Newsgroups: comp.lang.c++ Subject: Re: installing C++ under 4.3BSD Message-ID: <1183@tekcrl.UUCP> Date: Tue, 11-Nov-86 15:12:31 EST Article-I.D.: tekcrl.1183 Posted: Tue Nov 11 15:12:31 1986 Date-Received: Wed, 12-Nov-86 10:15:01 EST References: <4278@ut-ngp.UUCP> Reply-To: toddb@tekcrl.UUCP (Todd Brunhoff) Organization: Tektronix, Inc., Beaverton, OR. Lines: 46 In article <4278@ut-ngp.UUCP> merworth@ut-ngp.UUCP (Boyd Merworth) writes: >I have been trying to install C++ version 1.1 under 4.3BSD running on >a VAX 11/780. Several months ago I saw a posting concerning the following >problem but do not remember the fix. This did compile under 4.2BSD. > >--------------- >mv lib/mk/libC.a . >CC -O -DBSD -o munch -c lib/static/munch.c >CC lib/static/munch.c: >cc -c -O -o munch munch..c -lC >mv: munch..o: Cannot access: No such file or directory >rm munch.o >rm: munch.o nonexistent >*** Exit 1 > >Stop. I think the problem has to do with a bug in the CC shell script which just happens to work on a SYSV or 4.2BSD system but breaks on 4.3. When the top-level makefile says CC -O -DBSD -o munch -c lib/static/munch.c It eventually exececutes cc -c -o munch munch..c On some systems, the -o is ignored and the outputfile is munch..o. 4.3 does not ignore it, and puts the output file in 'munch', hence, further processing on munch..o breaks. Here are the diffs of the change I made to CC. It also fixes a bug which BSD 'test' has had for some time. --------------- Old CC and New CC-------------- 158,159c158,159 < echo "$ccC $P -c $X $LIBRARY" 1>&2 < $ccC $P -c $X $LIBRARY --- > echo "$ccC $P -c $C $LIBRARY" 1>&2 > $ccC $P -c $C $LIBRARY 166,167c166,167 < echo "$ccC $P $X $LIBRARY" 1>&2 < $ccC $P -c $X >__err # compile, no load --- > echo "$ccC $P $C $LIBRARY" 1>&2 > $ccC $P -c $C >__err # compile, no load 199c199 < if test "$R" -a ! "$PLUSI" --- > if test "$R" != "" -a "$PLUSI" = ""