vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, As I said in a private mail, I'm really interrested in this feature. I applied your patch but kernel compilation fails ################################################## ###################### cc -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wno-format -Wno-main -fno-builtin-printf -fno-builtin-log -O2 -nostdinc -I. -I/usr/src/sys/arch/i386/compile/GENERIC/../../../../arch -I/usr/src/sys/arch/i386/compile/GENERIC/../../../.. -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_35 -DCOMPAT_43 -DLKM -DFFS -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DXFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -DNFSSERVER -DCD9660 -DMSDOSFS -DFDESC -DFIFO -DKERNFS -DPORTAL -DPROCFS -DNULLFS -DUMAPFS -DUNION -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DBOOT_CONFIG -DI386_CPU -DI486_CPU -DI586_CPU -DI686_CPU -DGPL_MATH_EMULATE -DUSER_PCICONF -DUSER_LDT -DAPERTURE -DCOMPAT_SVR4 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_BSDOS -DCOMPAT_AOUT -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DPCIAGP -D_KERNEL -Di386 -c /usr/src/sys/arch/i386/compile/GENERIC/../../../../net/if.c /usr/src/sys/arch/i386/compile/GENERIC/../../../../net/if.c: In function `if_detach': /usr/src/sys/arch/i386/compile/GENERIC/../../../../net/if.c:489: `IFT_CARP' undeclared (first use in this function) /usr/src/sys/arch/i386/compile/GENERIC/../../../../net/if.c:489: (Each undeclared identifier is reported only once /usr/src/sys/arch/i386/compile/GENERIC/../../../../net/if.c:489: for each function it appears in.) *** Error code 1 Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 1499 of Makefile). ################################################## ###################### What I did is copy/paste from "Index: sys/net/if_ethersubr.c" till EOF in CARP_without_address_on_the_physical_interface-2.patch and run "sudo patch -p0 < CARP_without_address_on_the_physical_interface-2.patch". Attached is the patch result. Something wrong in my applied process ? PS: I run OpenBSD 3.6 (RELEASE). -- Kind regards, ----------------------------------------- Joel CARNAT ----------------------------------------- In theory, there is no difference between theory and practice; in practice, however, there is. Yogi Berra ----------------------------------------- Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/net/if_ethersubr.c |================================================= ================== |RCS file: /cvs/src/sys/net/if_ethersubr.c,v |retrieving revision 1.81 |diff -u -r1.81 if_ethersubr.c |--- sys/net/if_ethersubr.c 28 Nov 2004 23:39:45 -0000 1.81 |+++ sys/net/if_ethersubr.c 6 Dec 2004 20:35:59 -0000 -------------------------- Patching file sys/net/if_ethersubr.c using Plan A... Hunk #1 succeeded at 233 (offset -5 lines). Hunk #2 succeeded at 246 (offset -5 lines). Hunk #3 succeeded at 528 (offset -5 lines). Hunk #4 failed at 550. Hunk #5 succeeded at 671 (offset -3 lines). 1 out of 5 hunks failed--saving rejects to sys/net/if_ethersubr.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netinet/if_ether.c |================================================= ================== |RCS file: /cvs/src/sys/netinet/if_ether.c,v |retrieving revision 1.54 |diff -u -r1.54 if_ether.c |--- sys/netinet/if_ether.c 21 Jun 2004 23:50:37 -0000 1.54 |+++ sys/netinet/if_ether.c 6 Dec 2004 21:03:45 -0000 -------------------------- Patching file sys/netinet/if_ether.c using Plan A... Hunk #1 succeeded at 557. Hunk #2 succeeded at 645. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netinet/ip_carp.c |================================================= ================== |RCS file: /cvs/src/sys/netinet/ip_carp.c,v |retrieving revision 1.72 |diff -u -r1.72 ip_carp.c |--- sys/netinet/ip_carp.c 30 Nov 2004 00:17:18 -0000 1.72 |+++ sys/netinet/ip_carp.c 6 Dec 2004 23:17:38 -0000 -------------------------- Patching file sys/netinet/ip_carp.c using Plan A... Hunk #1 succeeded at 29. Hunk #2 succeeded at 40. Hunk #3 succeeded at 92. Hunk #4 succeeded at 141. Hunk #5 succeeded at 166 (offset -5 lines). Hunk #6 succeeded at 182 (offset -5 lines). Hunk #7 succeeded at 289 (offset -5 lines). Hunk #8 succeeded at 384 with fuzz 1 (offset -5 lines). #3 succeeded at 92. Hunk #4 succeeded at 141. Hunk #5 succeeded at 166 (offset -5 lines). Hunk #6 succeeded at 182 (offset -5 lines). Hunk #7 succeeded at 289 (offset -5 lines). Hunk #8 succeeded at 384 with fuzz 1 (offset -5 lines). Hunk #9 succeeded at 408 with fuzz 2 (offset -1 lines). Hunk #10 succeeded at 469 with fuzz 1 (offset -8 lines). Hunk #11 succeeded at 496 with fuzz 2 (offset -2 lines). Hunk #12 succeeded at 526 (offset -11 lines). Hunk #13 failed at 554. Hunk #14 failed at 693. Hunk #15 succeeded at 733 (offset -2 lines). Hunk #16 succeeded at 749 (offset -11 lines). Hunk #17 succeeded at 831 (offset -3 lines). Hunk #18 failed at 853. Hunk #19 succeeded at 879 (offset -13 lines). Hunk #20 succeeded at 917 (offset -1 lines). Hunk #21 succeeded at 953 (offset -19 lines). Hunk #22 succeeded at 994 (offset 1 line). Hunk #23 succeeded at 1048 with fuzz 1 (offset -27 lines). Hunk #24 succeeded at 1095 (offset -1 lines). Hunk #25 succeeded at 1219 (offset -30 lines). Hunk #26 succeeded at 1345 (offset -1 lines). Hunk #27 succeeded at 1378 (offset -30 lines). Hunk #28 succeeded at 1533 (offset -1 lines). Hunk #29 succeeded at 1519 (offset -30 lines). Hunk #30 succeeded at 1642 (offset -1 lines). Hunk #31 succeeded at 1704 (offset -30 lines). Hunk #32 succeeded at 1790 (offset -1 lines). Hunk #33 succeeded at 1797 (offset -30 lines). Hunk #34 succeeded at 1851 (offset -1 lines). Hunk #35 succeeded at 1837 (offset -30 lines). Hunk #36 succeeded at 1894 (offset -1 lines). Hunk #37 succeeded at 1878 (offset -30 lines). Hunk #38 succeeded at 1965 with fuzz 1 (offset -2 lines). Hunk #39 succeeded at 1982 (offset -30 lines). Hunk #40 succeeded at 2045 (offset -2 lines). No such line 1941 in input file, ignoring Hunk #41 succeeded at 2040 (offset -30 lines). 3 out of 41 hunks failed--saving rejects to sys/netinet/ip_carp.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netinet/ip_carp.h |================================================= ================== |RCS file: /cvs/src/sys/netinet/ip_carp.h,v |retrieving revision 1.8 |diff -u -r1.8 ip_carp.h |--- sys/netinet/ip_carp.h 29 Jul 2004 22:12:15 -0000 1.8 |+++ sys/netinet/ip_carp.h 6 Dec 2004 20:41:12 -0000 -------------------------- Patching file sys/netinet/ip_carp.h using Plan A... Hunk #1 succeeded at 109. Hunk #2 succeeded at 123. Hunk #3 succeeded at 152. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netinet/in_proto.c |================================================= ================== |RCS file: /cvs/src/sys/netinet/in_proto.c,v |retrieving revision 1.41 |diff -u -r1.41 in_proto.c |--- sys/netinet/in_proto.c 17 Sep 2004 11:32:53 -0000 1.41 |+++ sys/netinet/in_proto.c 20 Nov 2004 17:59:21 -0000 -------------------------- Patching file sys/netinet/in_proto.c using Plan A... Hunk #1 succeeded at 304 (offset 12 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netinet6/in6_proto.c |================================================= ================== |RCS file: /cvs/src/sys/netinet6/in6_proto.c,v |retrieving revision 1.45 |diff -u -r1.45 in6_proto.c |--- sys/netinet6/in6_proto.c 18 Oct 2004 03:59:33 -0000 1.45 |+++ sys/netinet6/in6_proto.c 20 Nov 2004 17:59:21 -0000 -------------------------- Patching file sys/netinet6/in6_proto.c using Plan A... Hunk #1 succeeded at 220. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netinet6/in6_ifattach.c |================================================= ================== |RCS file: /cvs/src/sys/netinet6/in6_ifattach.c,v |retrieving revision 1.36 |diff -u -r1.36 in6_ifattach.c |--- sys/netinet6/in6_ifattach.c 7 May 2004 14:42:27 -0000 1.36 |+++ sys/netinet6/in6_ifattach.c 20 Nov 2004 17:59:21 -0000 -------------------------- Patching file sys/netinet6/in6_ifattach.c using Plan A... Hunk #1 succeeded at 577. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sbin/ifconfig/ifconfig.c |================================================= ================== |RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v |retrieving revision 1.121 |diff -u -r1.121 ifconfig.c |--- sbin/ifconfig/ifconfig.c 1 Dec 2004 15:57:44 -0000 1.121 |+++ sbin/ifconfig/ifconfig.c 6 Dec 2004 20:07:53 -0000 -------------------------- Patching file sbin/ifconfig/ifconfig.c using Plan A... Hunk #1 succeeded at 198 (offset -5 lines). Hunk #2 succeeded at 297 (offset -9 lines). Hunk #3 succeeded at 2716 (offset -163 lines). Hunk #4 failed at 2839. 1 out of 4 hunks failed--saving rejects to sbin/ifconfig/ifconfig.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/net/if.c |================================================= ================== |RCS file: /cvs/src/sys/net/if.c,v |retrieving revision 1.95 |diff -u -r1.95 if.c |--- sys/net/if.c 4 Dec 2004 16:16:45 -0000 1.95 |+++ sys/net/if.c 5 Dec 2004 03:31:36 -0000 -------------------------- Patching file sys/net/if.c using Plan A... Hunk #1 succeeded at 79. Hunk #2 succeeded at 486. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/net/if.h |================================================= ================== |RCS file: /cvs/src/sys/net/if.h,v |retrieving revision 1.60 |diff -u -r1.60 if.h |--- sys/net/if.h 3 Dec 2004 17:31:03 -0000 1.60 |+++ sys/net/if.h 6 Dec 2004 21:20:53 -0000 -------------------------- Patching file sys/net/if.h using Plan A... Hunk #1 succeeded at 180. done |