From owner-freebsd-current Thu Mar 9 03:55:53 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA06014 for current-outgoing; Thu, 9 Mar 1995 03:55:53 -0800 Received: from utrhcs.cs.utwente.nl (utrhcs.cs.utwente.nl [130.89.10.247]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id DAA06006 for ; Thu, 9 Mar 1995 03:55:48 -0800 Received: from utis156.cs.utwente.nl by utrhcs.cs.utwente.nl (5.0/csrelayMX-SVR4_1.0/RB) id AA04559; Thu, 9 Mar 1995 12:55:14 --100 Received: by utis156.cs.utwente.nl (4.1/RBCS-1.0.1) id AA09786; Thu, 9 Mar 95 12:55:06 +0100 To: 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: Your message of Wed, 08 Mar 1995 04:53:43 PST Date: Thu, 09 Mar 1995 12:55:05 +0100 Message-Id: <9785.794750105@utis156.cs.utwente.nl> From: Andras Olah content-length: 1198 Sender: current-owner@FreeBSD.org Precedence: bulk The new tcpdump version I committed yesterday fails to compile, I'm really sorry for this. I need some advice on what is the cause of the problem. 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? Andras FYI, here is the Makefile for tcpslice # @(#)Makefile 0.1 (RWGrimes) 3/24/93 PROG= tcpslice CFLAGS+=-Wall MAN1= tcpslice.1 SRCS= version.c tcpslice.c gwtm2secs.c search.c util.c CLEANFILES+= version.c version.h DPADD+= ${LIBPCAP} LDADD+= -lpcap version.c version.h: $(.CURDIR)/../tcpdump/VERSION rm -f version.c ; \ sed 's/.*/char version[] = "&";/' $(.CURDIR)/../tcpdump/VERSION > versio n.c set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' $(.CURDIR)/../tcpdump/VERSI ON` ; \ { echo '#define VERSION_MAJOR' $$1 ; \ echo '#define VERSION_MINOR' $$2 ; } > version.h .include