From nobody@www.freebsd.org  Mon Jun 17 14:37:17 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 E07F037B428
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 14:37:16 -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 g5HLbGhG067282
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 14:37:16 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5HLbG1q067279;
	Mon, 17 Jun 2002 14:37:16 -0700 (PDT)
Message-Id: <200206172137.g5HLbG1q067279@www.freebsd.org>
Date: Mon, 17 Jun 2002 14:37:16 -0700 (PDT)
From: Dave Earp <morbiddk@insensible.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: double define in ng_pppoe.c
X-Send-Pr-Version: www-1.0

>Number:         39442
>Category:       kern
>Synopsis:       double define in ng_pppoe.c
>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 14:40:05 PDT 2002
>Closed-Date:    Mon Jun 17 21:34:01 PDT 2002
>Last-Modified:  Mon Jun 17 21:34:01 PDT 2002
>Originator:     Dave Earp
>Release:        4.6
>Organization:
N/A
>Environment:
FreeBSD limpid 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:12 GMT 2002
murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
>Description:
There appears to be a double define of the send_sessionid variable in netgraph/ng_pppoe.c for 4.6-STABLE

The following is defined two times in a row beginning line 841:

static int
send_sessionid(sessp sp)
{
        int error;
        struct ng_mesg *msg;

        NG_MKMESSAGE(msg, NGM_PPPOE_COOKIE, NGM_PPPOE_SESSIONID,
            sizeof(u_int16_t), M_NOWAIT);
        if (msg == NULL) 
                return (ENOMEM);

        *(u_int16_t *)msg->data = sp->Session_ID; 
        error = ng_send_msg(sp->hook->node, msg, sp->creator, NULL);

        return (error);
}

This results in a build error when building the -STABLE kernel
>How-To-Repeat:

>Fix:
Removed one define of the variable fixed this issue for me.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Mon Jun 17 21:33:44 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=39442 
>Unformatted:
