From jau@jau.tmt.tele.fi  Tue Jan 12 04:02:47 1999
Received: from jau.tmt.tele.fi (jau.tmt.tele.fi [194.252.70.85])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA07412
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Jan 1999 04:02:46 -0800 (PST)
          (envelope-from jau@jau.tmt.tele.fi)
Received: (from jau@localhost)
	by jau.tmt.tele.fi (8.9.1/8.9.1/JAU-2.2) id OAA01454;
	Tue, 12 Jan 1999 14:02:10 +0200 (EET)
Message-Id: <199901121202.OAA01454@jau.tmt.tele.fi>
Date: Tue, 12 Jan 1999 14:02:10 +0200 (EET)
From: "Jukka A. Ukkonen" <jau@jau.tmt.tele.fi>
Reply-To: jau@jau.tmt.tele.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: Wrong path in libpcap Makefile
X-Send-Pr-Version: 3.2

>Number:         9458
>Category:       bin
>Synopsis:       Wrong path in libpcap Makefile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 12 04:10:00 PST 1999
>Closed-Date:    Wed Jan 13 08:33:40 PST 1999
>Last-Modified:  Wed Jan 13 08:34:16 PST 1999
>Originator:     Jukka A. Ukkonen
>Release:        FreeBSD 2.2.8-RELEASE i386
>Organization:
Sonera Ltd. / Internet Services
>Environment:

	Quite typical Pentium Pro @ 200 MHz with FreeBSD 2.2.8-RELEASE

>Description:

	There was an odd path definition in the libpcap Makefile.
	The wrong path contained extra elements ../contrib which
	caused compilation of libpcap to fail.

>How-To-Repeat:

	Go to /usr/src/lib and issue make. At the time libpcap gets
	built the make should botch.

>Fix:
	
	Here is the obvious patch...

--- /usr/src/lib/libpcap/Makefile.orig	Tue Jan 12 13:54:57 1999
+++ /usr/src/lib/libpcap/Makefile	Tue Jan 12 13:51:05 1999
@@ -21,7 +21,7 @@
 #
 # Magic to grab sources out of src/contrib
 #
-PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
+PCAP_DISTDIR?=${.CURDIR}/../libpcap
 CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf
 .PATH:	${PCAP_DISTDIR}
 .PATH:	${PCAP_DISTDIR}/bpf/net

>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@parc.xerox.com>
To: jau@jau.tmt.tele.fi
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/9458: Wrong path in libpcap Makefile 
Date: Tue, 12 Jan 1999 11:28:39 PST

 In message <199901121202.OAA01454@jau.tmt.tele.fi> you write:
 >-PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
 >+PCAP_DISTDIR?=${.CURDIR}/../libpcap
 
 But this is the makefile from /usr/src/lib/libpcap, and the
 sources live in /usr/src/contrib/libpcap.  The Makefile
 appears to be correct.  Do you have a complete source tree?
 Did you somehow get the sources from /usr/src/contrib/libpcap
 into /usr/src/lib/libpcap by mistake?
 
   Bill
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Wed Jan 13 08:33:40 PST 1999 
State-Changed-Why:  
This was user error; the user installed slib over an old source tree 
and did not install scontrib. 
>Unformatted:
