From owner-freebsd-questions@FreeBSD.ORG Sun Aug 13 08:30:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0627316A4E2 for ; Sun, 13 Aug 2006 08:30:10 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-2.cisco.com (sj-iport-2-in.cisco.com [171.71.176.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E71043D46 for ; Sun, 13 Aug 2006 08:30:10 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-2.cisco.com with ESMTP; 13 Aug 2006 01:30:10 -0700 X-IronPort-AV: i="4.08,118,1154934000"; d="scan'208"; a="335997272:sNHT35153516" Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-3.cisco.com (8.12.11.20060308/8.12.11) with ESMTP id k7D8U9jr006729; Sun, 13 Aug 2006 01:30:09 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id k7D8U9VP018653; Sun, 13 Aug 2006 01:30:09 -0700 (PDT) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 13 Aug 2006 01:30:09 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 13 Aug 2006 01:30:08 -0700 Message-ID: <44DEE2FF.1040903@cisco.com> Date: Sun, 13 Aug 2006 04:29:51 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: swapnagg@ou.edu References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Aug 2006 08:30:08.0812 (UTC) FILETIME=[AFB74EC0:01C6BEB2] DKIM-Signature: a=rsa-sha1; q=dns; l=5065; t=1155457809; x=1156321809; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:Randall=20Stewart=20 |Subject:Re=3A=20problem=20compliling=20new=20kernel=20for=20SCTP; X=v=3Dcisco.com=3B=20h=3DNg6ZXkQ6xIUbyLxW24BNsH9Y1vo=3D; b=lgowWnmuQj44OsdNdmlBeVTWIpPJxrRx1ewExl4goWb7jdjqyLcsS5E5sCYpunTahCmuUEU7 GZ/pw4QpTRtzZdQCv4d4mw91vGUn8Ge4yxoQ67DLWM3QmPEw8gUzKKYx; Authentication-Results: sj-dkim-3.cisco.com; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com verified; ); Cc: sctp-impl@external.cisco.com, freebsd-questions@freebsd.org Subject: Re: problem compliling new kernel for SCTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 08:30:11 -0000 This look tom me that you are running the wrong setup and getting a 6.1 patch.. or 7.0.. There are two links on sctp.org: http://www.sctp.org/July25.patch.bz2 or http://www.sctp.org/July25.tar.bz2 You do NOT use the patch for any system EXCEPT FreeBSD 7.0 If you are using 6.0 or 6.1 you MUST use the tar NOT THE PATCH. After you untar the tar ball .. you must run a setup script. The setup script ask's you questions... --------------------------------------------------------------------- bash-stewlap: ./setup_freebsd_src.sh <--------------------enter Where is your cvs path (e.g. /usr/rrs/sctpCVS)? /usr/rrs/sctpCVS <-----------------I input + enter---------- Where is your kernel source code that you are using (e.g. /usr/src/sys)? /usr/src/sys Will you be using 7.0 Current or FreeBSD 6.1 or 6.0 (7 or 61 or 60)? 7 <----------------I input + enter I will use 7.0 then, if unsure hit ctl-c else return <-----I input an enter to confirm. Linking /usr/rrs/sctpCVS/KERN/freebsd7/conf/files Linking /usr/rrs/sctpCVS/KERN/freebsd7/conf/options Linking /usr/rrs/sctpCVS/KERN/freebsd7/kern/syscalls.master Linking /usr/rrs/sctpCVS/KERN/freebsd7/kern/uipc_syscalls.c Linking /usr/rrs/sctpCVS/KERN/freebsd7/net/rtsock.c Linking /usr/rrs/sctpCVS/KERN/freebsd7/netinet/in_proto.c Linking /usr/rrs/sctpCVS/KERN/freebsd7/netinet6/in6_proto.c Linking /usr/rrs/sctpCVS/KERN/freebsd7/sys/mbuf.h Linking /usr/rrs/sctpCVS/KERN/freebsd7/sys/socket.h Preparing kernel SCTP sources now Linking in SCTP sources mv -f init_sysent.c init_sysent.c.bak mv -f syscalls.c syscalls.c.bak mv -f ../sys/syscall.h ../sys/syscall.h.bak mv -f ../sys/syscall.mk ../sys/syscall.mk.bak mv -f ../sys/sysproto.h ../sys/sysproto.h.bak sh makesyscalls.sh syscalls.master You may now go to your kernel source tree /usr/src/sys Configure a new kernel with: options SCTP And build as normal This script as already did a make sysent In /usr/src/sys/kern so the syscalls are present in the kernel. However you probably need to copy these to /usr/include/sys and also do a make buildworld and make installworld which will get the sctp_xxx calls into libc bash-stewlap: ---------------------------------------------------------------------- Now I can build my 7.0 system for YOU DO NOT ENTER 7... you enter "60" since you are building a 60 system. If you were on the released version you would enter "61". R swapnagg@ou.edu wrote: > Iam trying to install SCTP enabled Apache server and Mozilla browser on FreeBSD 6.0 > These are things that i have done: > > 1) I downloaded the kernel patch (tarball) from sctp.org and applied it. (iam following the instructions from the readme file) > 2) Included the line "options SCTP" in MY kernel source code at /usr/src/sys after making a copy of GENERIC and > called it MYKERNEL > 3) ran config to generate kernel source code > 4) changed into the /usr/src/compileMYKERNEL. > 5) Ran the "make depend" command. > 6) Ran the make command > > This gies the following error in mbuf.c > > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror ../../../kern/kern_mbuf.c > ../../../kern/kern_mbuf.c: In function `mbuf_init': > ../../../kern/kern_mbuf.c:191: error: `MBUF_JUMBOP_MEM_NAME' undeclared (first use in this function) > ../../../kern/kern_mbuf.c:191: error: (Each undeclared identifier is reported only once > ../../../kern/kern_mbuf.c:191: error: for each function it appears in.) > ../../../kern/kern_mbuf.c:202: error: `MBUF_JUMBO9_MEM_NAME' undeclared (first use in this function) > ../../../kern/kern_mbuf.c:213: error: `MBUF_JUMBO16_MEM_NAME' undeclared (first use in this function) > ../../../kern/kern_mbuf.c: In function `mb_ctor_mbuf': > ../../../kern/kern_mbuf.c:284: error: `MT_NOINIT' undeclared (first use in this function) > ../../../kern/kern_mbuf.c: In function `mb_ctor_clust': > ../../../kern/kern_mbuf.c:380: error: `EXT_JUMBOP' undeclared (first use in this function) > ../../../kern/kern_mbuf.c:384: error: `EXT_JUMBO9' undeclared (first use in this function) > ../../../kern/kern_mbuf.c:387: error: `EXT_JUMBO16' undeclared (first use in this function) > *** Error code 1 > > Stop in /usr/src/sys/i386/compile/MYKERNEL. > # > > Can any1 please tell me what is going wrong. > thanks > regards > swapna > -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 815-342-5222 (cell)