Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 1997 16:20:27 +0700 (NSS)
From:      "Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/4348: src/lkm/if_ppp unbuildable
Message-ID:  <199708210920.QAA19350@nnd.itfs.nsk.su>
Resent-Message-ID: <199708210920.CAA09329@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         4348
>Category:       bin
>Synopsis:       src/lkm/if_ppp unbuildable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 21 02:20:01 PDT 1997
>Last-Modified:
>Originator:     Nickolay N. Dudorov
>Organization:
NTP Infoteka
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	FreeBSD-3.0 current of 970820 (CTM's cvs-cur.3573 applied)

>Description:

	'src/sys/net/if_ppp.c' used to make if_ppp LKM
in src/lkm/if_ppp, but it used '#include "opt_ppp.h"'
which is absent in LKM case (it is generated by 'config'
for kernel building).

>How-To-Repeat:

	cd /usrc/src/lkm/if_ppp
	make depend

and observe the error message

>Fix:
	
	Apply the next patch.


--- src/lkm/if_ppp/Makefile.ORIG	Thu Aug 21 15:55:22 1997
+++ src/lkm/if_ppp/Makefile	Thu Aug 21 16:05:12 1997
@@ -2,7 +2,7 @@
 
 .PATH:  ${.CURDIR}/../../sys/net
 KMOD=   if_ppp_mod
-SRCS=	bsd_comp.c if_ppp.c ppp_tty.c slcompress.c bpfilter.h ppp.h
+SRCS=	bsd_comp.c if_ppp.c ppp_tty.c slcompress.c bpfilter.h ppp.h opt_ppp.h
 NOMAN=
 PSEUDO_LKM=
 CFLAGS+= -I.
@@ -12,12 +12,16 @@
 PROTOS?=	-DINET
 
 CFLAGS+= ${PROTOS}
-CLEANFILES+=	bpfilter.h ppp.h
+CLEANFILES+=	bpfilter.h ppp.h opt_ppp.h
 
 bpfilter.h:
 	echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
 
 ppp.h:
 	echo "#define NPPP ${NPPP}" > ppp.h
+
+opt_ppp.h:
+	echo "#define PPP_BSDCOMP 1" > opt_ppp.h
+	echo "#define PPP_DEFLATE 1" >> opt_ppp.h
 
 .include <bsd.kmod.mk>
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708210920.QAA19350>