Subject: Re: problems trying to build today's -current
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 02/14/2003 21:38:59
In message <200302150216.h1F2GaY06024@mirage.ceres.dti.ne.jp>, Izumi Tsutsui wr
ites:
>In article <20030215020028.CE2357B4D@berkshire.research.att.com>
>smb@research.att.com wrote:
>
>> >> > /usr/src/gnu/usr.bin/grep/grep/obj -> /usr/obj/gnu/usr.bin/grep/grep
>> >> > mkdir: /usr/obj/gnu/usr.bin/grep/grep: Not a directory
>> >> > *** Error code 1
>> >> 
>> >> I've gotten that before: you need to delete or move the file and make the
>> >> directory (at least I did). It was some oddness due to a new version of
>> >> grep.
>> >
>> >I think the right way is "make cleandir" _before_ "cvs update".
>> 
>> I don't think so -- the problem was in /usr/obj, ande I was doing the 
>> update in /usr/src.
>
>The old Makefile built all objects under /usr/obj/gnu/usr.bin/grep
>and it removed /usr/obj/gnu/usr.bin/grep/grep on cleandir target.
>New one creats /usr/obj/gnu/usr.bin/grep/grep/ for OBJDIR
>and it no longer cleans files under /usr/obj/gnu/usr.bin/grep.

Which suggests that I should have done a 'make cleandir' before the 
build.sh, rather than before the 'cvs update'.  That seems reasonable 
-- I got it to work by 'rm -rf /usr/obj'.

		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com (2nd edition of "Firewalls" book)