Date: Fri, 16 Mar 2007 22:16:00 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Error Compile Kernel Message-ID: <C9E2A25B-393B-4260-BA03-1443066A455F@u.washington.edu> In-Reply-To: <209FBDF00C0A3342AA3C36DA144681443D51BF@BACKEND.vinagame.com.vn> References: <209FBDF00C0A3342AA3C36DA144681443D51BF@BACKEND.vinagame.com.vn>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 16, 2007, at 9:35 PM, Toan. Bach Quang Bao wrote: > Dear, > > > > I have compile kernel: > > > > cd /usr/src/sys/i386/conf > > mkdir /root/kernels > > cp GENERIC /root/kernels/MYKERNEL > > ln -s /root/kernels/MYKERNEL > > /usr/sbin/config MYKERNEL > > cd ../compile/MYKERNEL > > make depend > > make > > make install > > > > But when I "make" it have error: > > > > # make > > linking kernel.debug > > ip_input.o(.text+0x200): In function `ip_init': > > ../../../netinet/ip_input.c:312: undefined reference to > `nf_sockopt_init' > > *** Error code 1 > > > > Stop in /usr/src/sys/i386/compile/MYKERNEL. > > > > Please help me. > > > > Thanks & Best Regard, > > Bach Quang Bao Toan You're missing a dependency in your kernel config. Best way to resolve this with the most learning experience is to take your drivers included in your kernel and go "man {driver name}". The man page lists all the dependencies for the required driver. As a hint though, I bet the driver you're missing is net related, most likely dealing with bpf, ether, or options INET. Make sure to run make clean when changing options if you have NO_CLEAN set to yes in /etc/make.conf. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C9E2A25B-393B-4260-BA03-1443066A455F>