Date: Sun, 3 May 2009 17:49:48 +1000 (EST) From: "Sam Wan" <sam@ip6.com.au> To: "Sam Wan" <sam@ip6.com.au> Cc: freebsd-net@freebsd.org Subject: Re: How to complie keepliaved from Port. Message-ID: <25839.220.233.42.226.1241336988.squirrel@secure.ip6.com.au> In-Reply-To: <24472.220.233.42.226.1241324030.squirrel@secure.ip6.com.au> References: <24472.220.233.42.226.1241324030.squirrel@secure.ip6.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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?25839.220.233.42.226.1241336988.squirrel>