From owner-freebsd-hardware Mon Oct 30 10:52:33 2000 Delivered-To: freebsd-hardware@freebsd.org Received: from smtprch2.nortel.com (smtprch2.nortelnetworks.com [192.135.215.15]) by hub.freebsd.org (Postfix) with ESMTP id F1BF237B4CF for ; Mon, 30 Oct 2000 10:52:24 -0800 (PST) Received: from zrchb213.us.nortel.com (actually zrchb213) by smtprch2.nortel.com; Mon, 30 Oct 2000 12:47:00 -0600 Received: by zrchb213.us.nortel.com with Internet Mail Service (5.5.2652.35) id ; Mon, 30 Oct 2000 12:51:04 -0600 Message-ID: From: "Hao Zhang" To: "'freebsd-hardware@freebsd.org'" Subject: FW: Building a custom kernel in 4.1 Date: Mon, 30 Oct 2000 12:51:02 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C042A2.59ABF270" X-Orig: Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C042A2.59ABF270 Content-Type: text/plain; charset="windows-1252" > Hello, > I am familiar with the procedure of building a custom kernel under > FreeBSD3.3 but having a lot of difficulty when trying to follow the > procedure for FreeBSD4.1. Can anyone summarize the exact steps to build a > custom kernel under FreeBSD4.1(the documentation is a little confusing)? > > I am trying to build a custom kernel with a label module (from NIST) and the > build fails while trying to link with some of the function pointers of that > module. Below are the errors I get: > > **************************************************************************** > ************************************************* > > c -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmiss > ing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -an > si -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -D_KERNEL -i > nclude opt_global.h -elf -mpreferred-stack-boundary=2 config.c > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmis > sing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a > nsi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -D_KERNEL - > include opt_global.h -elf -mpreferred-stack-boundary=2 setdef1.c > touch hack.c > cc -elf -shared -nostdlib hack.c -o hack.So > rm -f hack.c > sh /usr/src/sys/conf/newvers.sh MPLS > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmis > sing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a > nsi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -D_KERNEL - > include opt_global.h -elf -mpreferred-stack-boundary=2 vers.c > linking MPLS > if_ethersubr.o: In function `ether_demux': > if_ethersubr.o(.text+0x666): undefined reference to `lt_find_by_label_ptr' > if_ethersubr.o(.text+0x68c): undefined reference to `lt_find_by_label_ptr' > if_ethersubr.o(.text+0x6fd): undefined reference to `lt_find_by_label_ptr' > rtsock.o: In function `route_output': > rtsock.o(.text+0x8c6): undefined reference to `lt_add_ptr' > rtsock.o(.text+0x8d6): undefined reference to `lt_add_ptr' > rtsock.o(.text+0x8e6): undefined reference to `lt_rm_ptr' > rtsock.o(.text+0x8f6): undefined reference to `lt_rm_ptr' > rtsock.o(.text+0x909): undefined reference to `PrintLabelTable_ptr' > rtsock.o(.text+0x912): undefined reference to `PrintLabelTable_ptr' > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/MPLS. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > **************************************************************************** > ************************************************* > > > Any quick help would be really appreciated. > > Syed Kamran Raza > Nortel Networks > > > > ------_=_NextPart_001_01C042A2.59ABF270 Content-Type: text/html; charset="windows-1252" FW: Building a custom kernel in 4.1

> Hello,
> I am familiar with the procedure of building a custom kernel under
> FreeBSD3.3 but having a lot of difficulty when trying to follow the
> procedure for FreeBSD4.1. Can anyone summarize the exact steps to build a
> custom kernel under FreeBSD4.1(the documentation is a little confusing)?
>
> I am trying to build a custom kernel with a label module (from NIST) and the
> build fails while trying to link with some of the function pointers of that
> module. Below are the errors I get:
>
> ****************************************************************************
> *************************************************
>
> c -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmiss
> ing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
> si  -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include  -D_KERNEL -i
> nclude opt_global.h -elf  -mpreferred-stack-boundary=2  config.c
> cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmis
> sing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -a
> nsi  -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include  -D_KERNEL -
> include opt_global.h -elf  -mpreferred-stack-boundary=2  setdef1.c
> touch hack.c
> cc -elf -shared -nostdlib hack.c -o hack.So
> rm -f hack.c
> sh /usr/src/sys/conf/newvers.sh MPLS
> cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmis
> sing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -a
> nsi  -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include  -D_KERNEL -
> include opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
> linking MPLS
> if_ethersubr.o: In function `ether_demux':
> if_ethersubr.o(.text+0x666): undefined reference to `lt_find_by_label_ptr'
> if_ethersubr.o(.text+0x68c): undefined reference to `lt_find_by_label_ptr'
> if_ethersubr.o(.text+0x6fd): undefined reference to `lt_find_by_label_ptr'
> rtsock.o: In function `route_output':
> rtsock.o(.text+0x8c6): undefined reference to `lt_add_ptr'
> rtsock.o(.text+0x8d6): undefined reference to `lt_add_ptr'
> rtsock.o(.text+0x8e6): undefined reference to `lt_rm_ptr'
> rtsock.o(.text+0x8f6): undefined reference to `lt_rm_ptr'
> rtsock.o(.text+0x909): undefined reference to `PrintLabelTable_ptr'
> rtsock.o(.text+0x912): undefined reference to `PrintLabelTable_ptr'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/MPLS.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
> ****************************************************************************
> *************************************************
>
>
> Any quick help would be really appreciated.
>
> Syed Kamran Raza
> Nortel Networks
>
>
>
>

------_=_NextPart_001_01C042A2.59ABF270-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message