From nobody@www.freebsd.org  Mon Jun 17 01:41:55 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id F34DC37B416
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 01:41:54 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5H8frhG074704
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 01:41:53 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5H8frn9074703;
	Mon, 17 Jun 2002 01:41:53 -0700 (PDT)
Message-Id: <200206170841.g5H8frn9074703@www.freebsd.org>
Date: Mon, 17 Jun 2002 01:41:53 -0700 (PDT)
From: Sergey <violet@westcall.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: error while compiling kernel from CVS
X-Send-Pr-Version: www-1.0

>Number:         39402
>Category:       kern
>Synopsis:       error while compiling kernel from CVS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 17 01:50:01 PDT 2002
>Closed-Date:    Mon Jun 17 21:29:22 PDT 2002
>Last-Modified:  Mon Jun 17 21:29:22 PDT 2002
>Originator:     Sergey
>Release:        4.6-RELEASE
>Organization:
WestCall LTD
>Environment:
FreeBSD horse.west-call.com 4.6-RC FreeBSD 4.6-RC #0:

>Description:
while compiling the kernel from CVS source tree ( tag=RELENG_4 ), the following error occurs:

===> netgraph/pppoe
gcc -O2 -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -c /usr/src/sys/modules/netgraph/pppoe/../../../netgraph/ng_pppoe.c
/usr/src/sys/modules/netgraph/pppoe/../../../netgraph/ng_pppoe.c:860: redefinition of `send_sessionid'
/usr/src/sys/modules/netgraph/pppoe/../../../netgraph/ng_pppoe.c:843: `send_sessionid' previously defined here
{standard input}: Assembler messages:
{standard input}:1481: Error: Symbol send_sessionid already defined.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph/pppoe.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/src/sys/compile/HORSE.


The matter is the function static int send_sessionid(sessp sp) is defined twice in /usr/src/sys/netgraph/ng_pppoe.c


>How-To-Repeat:
      pull sources via CVSup ( I used default host=cvsup8.FreeBSD.org ) and recompile the kernel
>Fix:
      remove the second instance of send_sessionid
from /usr/src/sys/netgraph/ng_pppoe.c
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Mon Jun 17 21:28:53 PDT 2002 
State-Changed-Why:  
This has been fixed. Update your sources and try again. Thanks for the 
report, but in the future, please check freebsd-stable@freebsd.org and 
report transient build problems in -STABLE there. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39402 
>Unformatted:
