When I try to emerge Keepalived version 1.1.6 or 1.1.5 on Kernel 2.6 I got some errors: make[2]: Leaving directory `/var/tmp/portage/keepalived-1.1.6/work/keepalived-1.1.6/keepalived/libipvs-2.6' Building ../bin/keepalived libipvs-2.6/libipvs.o(.text+0x0): In function `ipvs_cmp_services': : multiple definition of `ipvs_cmp_services' libipvs-2.6/libipvs.a(libipvs.o)(.text+0x0): first defined here libipvs-2.6/libipvs.o(.text+0x7d): In function `ipvs_cmp_dests': : multiple definition of `ipvs_cmp_dests' ..... collect2: ld returned 1 exit status make[1]: *** [all] Error 1 make[1]: Leaving directory `/var/tmp/portage/keepalived-1.1.6/work/keepalived-1.1.6/keepalived' make: *** [all] Error 2 !!! ERROR: sys-cluster/keepalived-1.1.6 failed. !!! Function src_compile, Line 26, Exitcode 2 !!! make failed (myconf=--prefix=/) Reproducible: Always Steps to Reproduce: emerge /usr/portage/sys-cluster/keepalived-1.1.6 Actual Results: make[2]: Leaving directory `/var/tmp/portage/keepalived-1.1.6/work/keepalived-1.1.6/keepalived/libipvs-2.6' Building ../bin/keepalived libipvs-2.6/libipvs.o(.text+0x0): In function `ipvs_cmp_services': : multiple definition of `ipvs_cmp_services' libipvs-2.6/libipvs.a(libipvs.o)(.text+0x0): first defined here libipvs-2.6/libipvs.o(.text+0x7d): In function `ipvs_cmp_dests': : multiple definition of `ipvs_cmp_dests' ..... collect2: ld returned 1 exit status make[1]: *** [all] Error 1 make[1]: Leaving directory `/var/tmp/portage/keepalived-1.1.6/work/keepalived-1.1.6/keepalived' make: *** [all] Error 2 !!! ERROR: sys-cluster/keepalived-1.1.6 failed. !!! Function src_compile, Line 26, Exitcode 2 !!! make failed (myconf=--prefix=/) The version 1.1.7 works fine on Kernal 2.6. I made a custom ebuild for version 1.1.7 (downloaded from the project's web page) and works perfect.
Created attachment 34490 [details, diff] Ebuild file for version 1.1.7
Created attachment 34491 [details, diff] Digest file for 1.1.7 ebuild
I checked in the ebuild for 1.1.7. Thanks for your help.
closing.