[news.admin] The Mysterious Patch#2 Bug

amos@instable.UUCP (Amos Shapir) (12/23/86)

After installing Patch#2 and running 'make':
	cc  checknews.o process.o cpathinit.o -o checknews
Undefined:
_line
_header
*** Error code 1
Stop.

The Makefile says:
checknews:  checknews.o process.o cpathinit.o rextern.o
	$(CC) $(LFLAGS) checknews.o process.o cpathinit.o rextern.o -o checknews

So I removed 'checknews' and tried again. This time it did:
	cc  checknews.o process.o cpathinit.o rextern.o -o checknews
and went on compiling the rest correctly.
The $64K question: were did 'rextern.o' go the first time 'make' was run???
The system is 4.3 (but I think 'make' is still vanilla 4.2 - does
that mean anything?)
Perplexfully yours,
-- 
	Amos Shapir
National Semiconductor (Israel)
6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel
(011-972) 52-522261  amos%nsta@nsc 34.48'E 32.10'N

jimb@dopey.AMD.COM (Jim Budler) (12/23/86)

In article <655@instable.UUCP) amos@instable.UUCP (Amos Shapir) writes:
)After installing Patch#2 and running 'make':
)	cc  checknews.o process.o cpathinit.o -o checknews
)Undefined:
)_line
)_header
)*** Error code 1
)Stop.
)
)The Makefile says:
)checknews:  checknews.o process.o cpathinit.o rextern.o
)	$(CC) $(LFLAGS) checknews.o process.o cpathinit.o rextern.o -o checknews
)
)So I removed 'checknews' and tried again. This time it did:
)	cc  checknews.o process.o cpathinit.o rextern.o -o checknews
)and went on compiling the rest correctly.
)The $64K question: were did 'rextern.o' go the first time 'make' was run???

Simple really, although I think the Makefile should be fixed.

The first time through, make(1) detects that makefile is out of date
compared to makefile.dist, runs localize.sh to recreate it, then
continues, using the existing image of the original makefile in
memory. The original makefile, in this case, did not have rextern.o
in the checknews dependencies.

I think that the amount of included text above,
and the amount of response are appropriate.
-- 
+==== Jim Budler ==== Advanced Micro Devices, Inc. ==== (408) 749-5806 ====+
|               Compuserve:     72415,1200                                 |
|               E-mail:   jimb@amdcad.AMD.COM                              |
+======================== .signature = 4 lines ============================+