From owner-freebsd-current Thu Mar 9 12:04:57 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA20632 for current-outgoing; Thu, 9 Mar 1995 12:04:57 -0800 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id MAA20623 for ; Thu, 9 Mar 1995 12:04:50 -0800 Received: by halloran-eldar.lcs.mit.edu; id AA12528; Thu, 9 Mar 1995 15:04:29 -0500 Date: Thu, 9 Mar 1995 15:04:29 -0500 From: Garrett Wollman Message-Id: <9503092004.AA12528@halloran-eldar.lcs.mit.edu> To: Andras Olah Cc: current@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/tcpdump/tcpslice tcpslice.h util.c Makefile gwtm2secs.c search.c tcpslice.1 tcpslice.c In-Reply-To: <9785.794750105@utis156.cs.utwente.nl> References: <9785.794750105@utis156.cs.utwente.nl> Sender: current-owner@FreeBSD.org Precedence: bulk < said: > tcpslice fails to compile because of the lack of version.h. > version.h should be automatically generated from ../tcpdump/VERSION. > This problem only exists when there's an obj tree (thus obj -> > /usr/obj/usr.sbin/tcpdump/tcpslice). If the obj link is missing > then make depend generates the necessary dependency for version.h > and everything works OK. > So, what did I screw up? Looking at your Makefile, I think you have found Yet Another bug in either bsd.*.mk or the pmake program itself. (It's one that I think I've run into in the past.) The short-term fix is just to add: beforedepend: version.h and maybe to add version.h to the SRCS as well. (Actually, one one of these should be necessary but I don't remember which one it is right now.) -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant