From nobody@www.freebsd.org  Mon Jun 17 02:20:25 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 43BD337B40F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 02:20:22 -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 g5H9KJhG079227
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 02:20:19 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5H9KJ7N079226;
	Mon, 17 Jun 2002 02:20:19 -0700 (PDT)
Message-Id: <200206170920.g5H9KJ7N079226@www.freebsd.org>
Date: Mon, 17 Jun 2002 02:20:19 -0700 (PDT)
From: Takahiro Yugawa <yugawa@itv6.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ng_pppoe.c has two send_sessionid functions
X-Send-Pr-Version: www-1.0

>Number:         39405
>Category:       kern
>Synopsis:       ng_pppoe.c has two send_sessionid functions
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 17 02:30:01 PDT 2002
>Closed-Date:    Mon Jun 17 21:30:14 PDT 2002
>Last-Modified:  Mon Jun 17 21:30:14 PDT 2002
>Originator:     Takahiro Yugawa
>Release:        4.6-STABLE
>Organization:
>Environment:
FreeBSD nardis.as4682.spin.ad.jp 4.6-RC FreeBSD 4.6-RC #0: Thu May 23 14:14:36 JST 2002     yugawa@nardis.as4682.spin.ad.jp:/usr/src/sys/compile/NARDIS  i386
>Description:
in /usr/src/sys/netgraph/ng_pppoe.c(RCS Revision 1.23.2.12),
there are two functions 'send_sessionid'. because of it,
building kernel will fail with errors as below.

===> netgraph/pppoe
cc -O -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}:1531: Error: Symbol send_sessionid already defined.
*** Error code 1


>How-To-Repeat:
# cd /usr/src
# make buildkernel KERNCONF=GENERIC
>Fix:
because both functions are all the same, simply remove either of them
may fix the problem.

in the HEAD branch source(RCS Revision 1.52) has only one
'send_sessionid' function.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Mon Jun 17 21:29:59 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=39405 
>Unformatted:
