From oogali@hydrant.intranova.net  Sat Apr  1 13:38:16 2000
Return-Path: <oogali@hydrant.intranova.net>
Received: from hydrant.intranova.net (hydrant.ncw.qc.ca [209.201.95.10])
	by hub.freebsd.org (Postfix) with SMTP id B2BFD37BC2B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 Apr 2000 13:38:14 -0800 (PST)
	(envelope-from oogali@hydrant.intranova.net)
Received: (qmail 14725 invoked by uid 1001); 1 Apr 2000 21:41:48 -0000
Message-Id: <20000401214148.14724.qmail@hydrant.intranova.net>
Date: 1 Apr 2000 21:41:48 -0000
From: oogali@intranova.net
Sender: oogali@hydrant.intranova.net
Reply-To: oogali@intranova.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Traceroute will not compile without IPSEC
X-Send-Pr-Version: 3.2

>Number:         17739
>Category:       bin
>Synopsis:       Traceroute will not compile without IPSEC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    shin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr  1 13:40:02 PST 2000
>Closed-Date:    Fri Jun 8 06:54:26 PDT 2001
>Last-Modified:  Fri Jun 08 06:57:34 PDT 2001
>Originator:     Omachonu Ogali
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Intranova Networking Group
>Environment:

	FreeBSD 5.0-CURRENT without IPSEC support.

>Description:

	Traceroute will not compile or run in an environment without IPSEC
	support due to it being hard-coded in the Makefile.

>How-To-Repeat:

	Compile a kernel without IPSEC support and remove IPSEC libraries.
	cd /usr/src/usr.sbin/traceroute
	make

>Fix:

	Patch file included below:
--- /usr/src/usr.sbin/traceroute/Makefile.orig	Thu Mar 30 14:16:52 2000
+++ /usr/src/usr.sbin/traceroute/Makefile	Thu Mar 30 14:23:28 2000
@@ -5,4 +5,11 @@
 BINMODE=4555
+
+.ifndef (NOIPSEC)
 CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
 	-DSTDC_HEADERS=1 -DIPSEC
+.else
+CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
+	-DSTDC_HEADERS=1
+.endif
+
 # RTT Jitter on the internet these days means printing 3 decimal places on
@@ -14,4 +21,7 @@
 CLEANFILES+=	version.c
+
+.ifndef (NOIPSEC)
 DPADD=	${LIBIPSEC}
 LDADD=	-lipsec
+.endif
 

>Release-Note:
>Audit-Trail:

From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To: oogali@intranova.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/17739: Traceroute will not compile without IPSEC
Date: Sun, 02 Apr 2000 06:46:41 +0900

 > 	FreeBSD 5.0-CURRENT without IPSEC support.
 > 
 > >Description:
 > 
 > 	Traceroute will not compile or run in an environment without IPSEC
 > 	support due to it being hard-coded in the Makefile.
 
 Committed thanks, and sorry to be late. I was about to commit
 your patches sent to freebsd-current.
 
 Yoshinobu Inoue
 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Jun 8 06:54:26 PDT 2001 
State-Changed-Why:  
Fixed by shin in traceroute/Makefile,v 1.13 ... 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17739 
Responsible-Changed-From-To: freebsd-bugs->shin 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Jun 8 06:56:55 PDT 2001 
Responsible-Changed-Why:  
... and forgotten for far too long. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17739 
>Unformatted:
