Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2000 14:52:21 -0500
From:      "Eugenia Lambiri" <elambiri@nortelnetworks.com>
To:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   Building a custom kernel in 4.1
Message-ID:  <75C9A75D295AD31184E70008C79189D20409F6F9@zcard00b.ca.nortel.com>

next in thread | raw e-mail | index | archive | help
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_01C03F86.40DDD020
Content-Type: text/plain


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:

****************************************************************************
*************************************************
 cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi  -nostdinc -I- -I. -I/usr/src/sys
-I/usr/src/sys/../include  -D_KERNEL -include opt_global.h -elf
-mpreferred-stack-boundary=2  config.c
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi  -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
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi  -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.

Eugenia Lambiri
Nortel Networks


------_=_NextPart_001_01C03F86.40DDD020
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Building a custom kernel in 4.1</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">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)?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">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:</FONT></P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
********************************************************************</FO=
NT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Arial">cc -c -O -Wall -Wredundant-decls =
-Wnested-externs -Wstrict-prototypes&nbsp; -Wmissing-prototypes =
-Wpointer-arith -Winline -Wcast-qual&nbsp; -fformat-extensions =
-ansi&nbsp; -nostdinc -I- -I. -I/usr/src/sys =
-I/usr/src/sys/../include&nbsp; -D_KERNEL -include opt_global.h =
-elf&nbsp; -mpreferred-stack-boundary=3D2&nbsp; config.c</FONT></P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">cc -c -O -Wall =
-Wredundant-decls -Wnested-externs -Wstrict-prototypes&nbsp; =
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual&nbsp; =
-fformat-extensions -ansi&nbsp; -nostdinc -I- -I. -I/usr/src/sys =
-I/usr/src/sys/../include&nbsp; -D_KERNEL -include opt_global.h =
-elf&nbsp; -mpreferred-stack-boundary=3D2&nbsp; setdef1.c</FONT></P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">touch hack.c</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">cc -elf -shared =
-nostdlib hack.c -o hack.So</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">rm -f hack.c</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">sh =
/usr/src/sys/conf/newvers.sh MPLS </FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">cc -c -O -Wall =
-Wredundant-decls -Wnested-externs -Wstrict-prototypes&nbsp; =
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual&nbsp; =
-fformat-extensions -ansi&nbsp; -nostdinc -I- -I. -I/usr/src/sys =
-I/usr/src/sys/../include&nbsp; -D_KERNEL -include opt_global.h =
-elf&nbsp; -mpreferred-stack-boundary=3D2&nbsp; vers.c</FONT></P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">linking MPLS</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">if_ethersubr.o: In =
function `ether_demux':</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">if_ethersubr.o(.text+0x666): undefined reference to =
`lt_find_by_label_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">if_ethersubr.o(.text+0x68c): undefined reference to =
`lt_find_by_label_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">if_ethersubr.o(.text+0x6fd): undefined reference to =
`lt_find_by_label_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">rtsock.o: In =
function `route_output':</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">rtsock.o(.text+0x8c6): undefined reference to =
`lt_add_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">rtsock.o(.text+0x8d6): undefined reference to =
`lt_add_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">rtsock.o(.text+0x8e6): undefined reference to =
`lt_rm_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">rtsock.o(.text+0x8f6): undefined reference to =
`lt_rm_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">rtsock.o(.text+0x909): undefined reference to =
`PrintLabelTable_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">rtsock.o(.text+0x912): undefined reference to =
`PrintLabelTable_ptr'</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">*** Error code =
1</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Stop in =
/usr/obj/usr/src/sys/MPLS.</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">*** Error code =
1</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Stop in =
/usr/src.</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">*** Error code =
1</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
********************************************************************</FO=
NT></P>
<BR>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Any quick help would =
be really appreciated.</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Eugenia =
Lambiri</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Nortel =
Networks</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C03F86.40DDD020--


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




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