On Mar 16, 2007, at 9:35 PM, Toan. Bach Quang Bao wrote:


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 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

*** 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.
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to