Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2002 02:20:19 -0700 (PDT)
From:      Takahiro Yugawa <yugawa@itv6.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/39405: ng_pppoe.c has two send_sessionid functions
Message-ID:  <200206170920.g5H9KJ7N079226@www.freebsd.org>

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

>Number:         39405
>Category:       kern
>Synopsis:       ng_pppoe.c has two send_sessionid functions
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 17 02:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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