[pups] 2.11 BSD compilation fails

Mark Green mark at cs.ualberta.ca
Wed Jan 31 02:04:16 AEST 2001

> While tinkering with the date2.c program posted earlier by Alex
> Chupakhin, which now runs on 2.11 BSD btw, I discovered the following:
> - 'cc -o date2 date2.c' works fine, producing a 12K binary
> - a makefile containing this command fails - the compilation starts but
> fails silently, producing a 2K binary that is not marked executable. 
> The makefile is:
>    date2: date2.c
>            cc -o date2 -c date2.c 
Remove the -c flag, it tells the compiler to only compile the program
and not produce an executable.

> - 'make -n | sh' fails in the same way

Dr. Mark Green                                 mark at cs.ualberta.ca
McCalla Professor                              (780) 492-4584
Department of Computing Science                (780) 492-1071 (FAX)
University of Alberta, Edmonton, Alberta, T6G 2H1, Canada

Received: (from major at localhost)
	by minnie.cs.adfa.edu.au (8.9.3/8.9.3) id FAA23775
	for pups-liszt; Wed, 31 Jan 2001 05:22:29 +1100 (EST)
	(envelope-from owner-pups at minnie.cs.adfa.edu.au)

More information about the TUHS mailing list