Kernel compilation problem on 4.1

Jonathan Perkin sketchy at netcraft.com
Thu Oct 19 17:25:09 BST 2000


On Thu, Oct 19, 2000 at 04:16:41pm +0100, Aleksandar Simic' wrote:

> I am experiencing a problem when trying to compile a kernel on my
> freshly installed FreeBSD 4.1(CD version).
> 
> If I disable the following option the kernel compiles fine: 
> 
> options         INET                    #InterNETworking
> 
> but doesn't live the system in a very useful condition. :)

And hardly surprising :)  Why on earth would you want to remove *all*
networking code?  Even if you don't want to connect the box to the
outside world, the majority of apps still need loopback connections at
least for internal IPC.

> This is the error I get:
> 
> sh ../../conf/newvers.sh ALEX
> cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing
> -prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -no
> stdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -include opt_global.h -elf
>  -mpreferred-stack-boundary=2  vers.c
> linking kernel
> igmp.o: In function `igmp_sendpkt':
> igmp.o(.text+0x5e9): undefined reference to `loif'
> ip_output.o: In function `ip_mloopback':
> ip_output.o(.text+0x1992): undefined reference to `if_simloop'
> *** Error code 1
> Stop in /usr/src/sys/compile/ALEX.
> 
> And this is my kernel configuration file:

[snip]

> #pseudo-device	loop		# Network loopback

^ and that would be why.  You'll be wanting to uncomment that again.

-- 
  Jonathan Perkin  <sketchy at netcraft.com>  Voice: +44 (01225) 404422
ech`echo xiun | tr nu oc | sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
 System Administrator - Netcraft, Bath, UK - http://www.netcraft.com/




More information about the Ukfreebsd mailing list