Error Compile Kernel
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Error Compile Kernel
Dear Kris, I'm sorry, I have install FreeBSD # uname -an FreeBSD freebsd 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Sat Mar 17 11:06:39 ICT 2007 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/GENERIC i386 After I install LVS http://dragon.linux-vs.org/~dragonfly/ wget http://dragon.linux-vs.org/~dragonfly/software/ipvs_freebsd-0.4.0.tar.gz After I install with guide: 1. Patch the FreeBSD kernel: cp patch/5.4-RELEASE/* /usr/src; cd /usr/src; patch -p0 uipc_socket.c.patch patch -p0 ip_input.c.patch patch -p0 socketvar.h.patch patch -p0 sys_conf_options.patch patch -p0 sys_i386_conf_GENERIC.patch 2. Rebuilding FreeBSD kernel: cd /usr/src/sys/arch/i386/conf; config GENERIC; cd ../compile/GENERIC; make depend; make; make install; And then: # make Have error: 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 Have a good day. Please help me. :) Thanks Best Regard, Bach Quang Bao Toan System Engineer -Original Message- From: Kris Kennaway [mailto:[EMAIL PROTECTED] Sent: Saturday, March 17, 2007 12:20 PM To: Toan. Bach Quang Bao Cc: freebsd-questions@freebsd.org Subject: Re: Error Compile Kernel On Sat, Mar 17, 2007 at 11:35:47AM +0700, Toan. Bach Quang Bao wrote: ip_input.o(.text+0x200): In function `ip_init': ../../../netinet/ip_input.c:312: undefined reference to `nf_sockopt_init' You forgot to mention what version of FreeBSD you are trying to compile, but I can't find any remotely similar function call in that file (or in the entire kernel) in either 6.x or 7.x. Are you sure this isn't a local modification you made? Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Error Compile Kernel
Dear Kris, I see, but not install it on FreeBSD 6.2? If you have a solution, please help me. Thanks and best regards. System Engineer -Original Message- From: Kris Kennaway [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:39 AM To: Toan. Bach Quang Bao Cc: Kris Kennaway; freebsd-questions@freebsd.org Subject: Re: Error Compile Kernel On Mon, Mar 19, 2007 at 08:45:16AM +0700, Toan. Bach Quang Bao wrote: Dear Kris, I'm sorry, I have install FreeBSD # uname -an FreeBSD freebsd 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Sat Mar 17 11:06:39 ICT 2007 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/GENERIC i386 After I install LVS http://dragon.linux-vs.org/~dragonfly/ wget http://dragon.linux-vs.org/~dragonfly/software/ipvs_freebsd-0.4.0.tar.gz After I install with guide: 1.Patch the FreeBSD kernel: cp patch/5.4-RELEASE/* /usr/src; cd /usr/src; patch -p0 uipc_socket.c.patch patch -p0 ip_input.c.patch patch -p0 socketvar.h.patch patch -p0 sys_conf_options.patch patch -p0 sys_i386_conf_GENERIC.patch 2.Rebuilding FreeBSD kernel: cd /usr/src/sys/arch/i386/conf; config GENERIC; cd ../compile/GENERIC; make depend; make; make install; And then: # make Have error: 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 Have a good day. Please help me. :) Pretty clearly those third party patches you installed are intended for FreeBSD 5.4-RELEASE, not 6.2-RELEASE. Anyway it is not a FreeBSD issue. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Error Compile Kernel
Dear Kris, Thank you. Have a good day. System Engineer -Original Message- From: Kris Kennaway [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:57 AM To: Toan. Bach Quang Bao Cc: Kris Kennaway; freebsd-questions@freebsd.org Subject: Re: Error Compile Kernel On Mon, Mar 19, 2007 at 09:40:00AM +0700, Toan. Bach Quang Bao wrote: Dear Kris, I see, but not install it on FreeBSD 6.2? If you have a solution, please help me. You're going to have to talk to whoever wrote that patch, we can't help you. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]