From owner-freebsd-questions Mon Jun 17 13:35:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from kheops.speedy.net.pe (kheops.speedy.net.pe [200.48.172.40]) by hub.freebsd.org (Postfix) with ESMTP id 5C58037B493 for ; Mon, 17 Jun 2002 13:34:55 -0700 (PDT) Received: from elcsa30102 (quipu.speedy.net.pe [200.48.172.36]) by kheops.speedy.net.pe (8.12.3/8.12.3) with SMTP id g5HKbHHo053432 for ; Mon, 17 Jun 2002 15:37:17 -0500 (PET) (envelope-from rcc@speedy.net.pe) X-Authentication-Warning: kheops.speedy.net.pe: Host quipu.speedy.net.pe [200.48.172.36] claimed to be elcsa30102 Message-ID: <00ed01c2163f$1e4a6d20$66fce20a@int.tp.com.pe> From: "Richard Cotrina" To: References: Subject: Re: building the GENERIC kernel after doing a cvsup of stable Date: Mon, 17 Jun 2002 15:39:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi : You're right. The function send_sessionid(sessp sp) is defined twice , it doesn't make sense and it causes the failure during kernel compilation. I also took out one of them and I got a clean compilation : host $ uname -a FreeBSD host 4.6-STABLE FreeBSD 4.6-STABLE #0: Sun Jun 16 17:20:12 PET 2002 user@host:/usr/src/sys/compile/CUSTOM i386 Thanks for your help. Richard Cotrina ----- Original Message ----- From: "Adam Mazza" To: "Richard Cotrina" Cc: Sent: Monday, June 17, 2002 3:06 PM Subject: Re: building the GENERIC kernel after doing a cvsup of stable > > turned out that: > > 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); > } > is defined twice (just as the error message said;)) > > > Once I took out one instance, all worked. > > Adam Mazza > > On Mon, 17 Jun 2002, Richard Cotrina wrote: > > > Hi : > > > > I got the same results even using the classical kernel compilation method. > > > > ----- Original Message ----- > > From: "Adam Mazza" > > To: > > Sent: Monday, June 17, 2002 2:41 PM > > Subject: building the GENERIC kernel after doing a cvsup of stable > > > > > > > > > > Hello, > > > > > > After cvsuping my /usr/src tree to 4.6-release, I started trying to > > > upgrade from 4.6-RC FreeBSD 4.6-RC #0:. to 4.6-release. I was able to do a > > > make buildworld and all compiled fine. I then did a make buildkernel and > > > about halfway through the compilation died with the following error: > > > > > > ===> 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 > > > > > > 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/obj/usr/src/sys/GENERIC. > > > *** Error code 1 > > > > > > Stop in /usr/src. > > > *** Error code 1 > > > > > > Stop in /usr/src. > > > > > > > > > Any idea what could be the cause of this? > > > > > > Regards, > > > > > > Adam Mazza > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message