Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2003 02:02:22 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Scottman <fiopp@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Kernel build returns Error code 1
Message-ID:  <20030114000222.GD3695@gothmog.gr>
In-Reply-To: <20030113182419.14899.qmail@web80302.mail.yahoo.com>
References:  <20030113182419.14899.qmail@web80302.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-01-13 10:24, fiopp@yahoo.com (Scottman) wrote:
> I'm trying to add sound support to my FreeBSD Release 4.6.2 kernel
> but it will not build successfully. Here is the error output I get
> (tail of make output):
>
> <<<<<<<<<<<<<<<<<<<<<<<<<<
> touch hack.c
> cc -elf -shared -nostdlib hack.c -o hack.So
> rm -f hack.c
> sh ../../conf/newvers.sh PATKERNEL 
> cc -c -O -pipe  -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -c
> linking kernel
> if.o: In function `if_setlladdr':
> if.o(.text+0x1bc4): undefined reference to
> `arp_ifinit'
> *** Error code 1
>
> Stop in /usr/src/sys/compile/PATKERNEL.
> >>>>>>>>>>>>>>>>>>>>>>>

This is not a copy paste of the message.  Nevertheless, you will need
to add the `options ether' line that you removed from your GENERIC
kernel to get things to work correctly.  The `options ether' stuff is
not used only by ethernet drivers.  Since it doesn't cost much, I keep
it in my kernel configs anyway.

> I'm only one month old in the Unix/FreeBSD environment and don't
> really know what should be done to fix this.  I have included my
> kernel at the end of this message for reference. I just know that I
> get some warnings about some NET, INET and INET6 files... Could this
> be related to these options?
>
> options INET    #InterNETworking
> options INET6  #IPv6 communications protocols

Possibly.  I suggest that you start with GENERIC and run buildkernel a
few times deleting or adding options a few at a time.  It's also a
nice idea to avoid mailers that do evil things to whitespace, since it
took me too long to read through the differences of your kernel and
GENERIC to see if what I suspected (the `ether' stuff) was true.

- Giorgos


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?20030114000222.GD3695>