Date: Sun, 3 May 2009 19:09:41 +1000 (EST) From: "Sam Wan" <sam@ip6.com.au> To: "Sam Wan" <sam@ip6.com.au> Cc: freebsd-net@freebsd.org, Sam Wan <sam@ip6.com.au> Subject: Re: How to complie keepliaved from Port. Message-ID: <26848.220.233.42.226.1241341781.squirrel@secure.ip6.com.au> In-Reply-To: <25839.220.233.42.226.1241336988.squirrel@secure.ip6.com.au> References: <24472.220.233.42.226.1241324030.squirrel@secure.ip6.com.au> <25839.220.233.42.226.1241336988.squirrel@secure.ip6.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
I have patched the following files, with some errors. Please provide suggestion about what I should do. Very appreciate for any suggestion. Thanks ASTest72RC2# patch -p0 < uipc_socket.c.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/kern/uipc_socket.c.orig Mon Aug 15 13:09:33 2005 |+++ sys/kern/uipc_socket.c Sun Aug 21 10:51:47 2005 -------------------------- Patching file sys/kern/uipc_socket.c using Plan A... Hunk #1 failed at 37. Hunk #2 succeeded at 1374 with fuzz 2 (offset 1309 lines). Hunk #3 succeeded at 1514 with fuzz 2 (offset -6 lines). patch: **** misordered hunks! output would be garbled ASTest72RC2# patch -p0 < ip_input.c.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/netinet/ip_input.c.orig Mon Aug 15 13:09:45 2005 |+++ sys/netinet/ip_input.c Sun Aug 21 10:49:56 2005 -------------------------- Patching file sys/netinet/ip_input.c using Plan A... Hunk #1 succeeded at 38 (offset 2 lines). Hunk #2 succeeded at 266 with fuzz 1 (offset -31 lines). done ASTest72RC2# patch -p0 < socketvar.h.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/sys/socketvar.h.orig Sat Jul 9 12:24:40 2005 |+++ sys/sys/socketvar.h Sun Aug 21 10:51:13 2005 -------------------------- Patching file sys/sys/socketvar.h using Plan A... Hunk #1 failed at 37. Hunk #2 succeeded at 367 (offset -197 lines). 1 out of 2 hunks failed--saving rejects to sys/sys/socketvar.h.rej done ASTest72RC2# patch -p0 < sys_conf_options.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/conf/options.orig Mon Aug 15 13:08:59 2005 |+++ sys/conf/options Sun Aug 21 10:52:38 2005 -------------------------- Patching file sys/conf/options using Plan A... Hunk #1 succeeded at 751 (offset 49 lines). done ASTest72RC2# patch -p0 < sys_i386_conf_GENERIC.patch sys_i386_conf_GENERIC.patch: No such file or directory. ASTest72RC2# >> >> Hi, >> >> Is there anyone knows how to compile keepalived from the port? >> >> Its patch only available up to version 7.0. >> When I followed its instruction to patch 4 files, 1 or 2 of those have >> been *rej*, and when I ignored and continue to build it, kernel >> compilation caused error. >> >> Is there a new keepalived patch for freebsd 7.1 and 7.2? >> >> Thanks >> >> > > Hi, this is what I encountered during make keepalived: > > ASTest72RC2# make > ===> Vulnerability check disabled, database not found > => keepalived-FreeBSD-1.1.11.tar.gz doesn't seem to exist in > /usr/ports/distfiles/. > => Attempting to fetch from > http://www.cultdeadsheep.org/~clement/FreeBSD/ipvs/. > keepalived-FreeBSD-1.1.11.tar.gz 100% of 208 kB 136 kBps > ===> Extracting for keepalived-1.1.11_1 > => MD5 Checksum OK for keepalived-FreeBSD-1.1.11.tar.gz. > => SHA256 Checksum OK for keepalived-FreeBSD-1.1.11.tar.gz. > ===> Patching for keepalived-1.1.11_1 > ===> Applying FreeBSD patches for keepalived-1.1.11_1 > ===> keepalived-1.1.11_1 depends on file: /usr/local/lib/libipvs.a - not > found > ===> Verifying install for /usr/local/lib/libipvs.a in > /usr/ports/net/ipvs > LVS on FreeBSD works only with 5.3-RELEASE and 5.4-RELEASE. > However it may work on 5-STABLE. If you are running FreeBSD 5.4-STABLE, > define > TRY_STABLE and check if patches apply correctly to your src tree > To build ipvs, I strongly encourage you to follow these instructions > 1. checkout supported src tree > 2. run "make patch-system" > 3. configure and build your kernel. (you need support of NetFilter > sockopt, add "options NF_SOCKOPT") > 4. Install your freshly compiled kernel > 5. install the port > 6. reboot your system > ===> Vulnerability check disabled, database not found > => ipvs-0.4.0_2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. > => Attempting to fetch from > http://www.cultdeadsheep.org/~clement/FreeBSD/ipvs/. > ipvs-0.4.0_2.tar.gz 100% of 74 kB 51 kBps > ===> Extracting for ipvs-0.4.0_2 > => MD5 Checksum OK for ipvs-0.4.0_2.tar.gz. > => SHA256 Checksum OK for ipvs-0.4.0_2.tar.gz. > ===> Patching for ipvs-0.4.0_2 > ===> Configuring for ipvs-0.4.0_2 > ===> Building for ipvs-0.4.0_2 > ===> ipvs > Warning: Object directory not changed from original > /usr/ports/net/ipvs/work/ipvs-0.4.0_2/ipvs > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > ip_vs_core.c > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > ip_vs_conn.c > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > ip_vs_sched.c > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > ip_vs_ctl.c > ip_vs_ctl.c: In function 'do_ip_vs_set_ctl': > ip_vs_ctl.c:1257: warning: implicit declaration of function 'suser' > ip_vs_ctl.c:1257: warning: nested extern declaration of 'suser' > ip_vs_ctl.c: At top level: > ip_vs_ctl.c:1627: error: variable 'ip_vs_sockopts' has initializer but > incomplete type > ip_vs_ctl.c:1628: error: extra brace group at end of initializer > ip_vs_ctl.c:1628: error: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1628: warning: excess elements in struct initializer > ip_vs_ctl.c:1628: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1628: warning: excess elements in struct initializer > ip_vs_ctl.c:1628: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1629: warning: excess elements in struct initializer > ip_vs_ctl.c:1629: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1629: warning: excess elements in struct initializer > ip_vs_ctl.c:1629: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1629: warning: excess elements in struct initializer > ip_vs_ctl.c:1629: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1630: warning: excess elements in struct initializer > ip_vs_ctl.c:1630: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1630: warning: excess elements in struct initializer > ip_vs_ctl.c:1630: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c:1631: warning: excess elements in struct initializer > ip_vs_ctl.c:1631: warning: (near initialization for 'ip_vs_sockopts') > ip_vs_ctl.c: In function 'ip_vs_control_init': > ip_vs_ctl.c:1645: warning: implicit declaration of function > 'nf_register_sockopt' > ip_vs_ctl.c:1645: warning: nested extern declaration of > 'nf_register_sockopt' > ip_vs_ctl.c: In function 'ip_vs_control_cleanup': > ip_vs_ctl.c:1675: warning: implicit declaration of function > 'nf_unregister_sockopt' > ip_vs_ctl.c:1675: warning: nested extern declaration of > 'nf_unregister_sockopt' > *** Error code 1 > > Stop in /usr/ports/net/ipvs/work/ipvs-0.4.0_2/ipvs. > *** Error code 1 > > Stop in /usr/ports/net/ipvs/work/ipvs-0.4.0_2. > *** Error code 1 > > Stop in /usr/ports/net/ipvs. > *** Error code 1 > > Stop in /usr/ports/net/keepalived. > > Thanks > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26848.220.233.42.226.1241341781.squirrel>