I get: make -C libipvs CFLAGS="-O2 -pipe -march=native" STATIC="" OPTFLAGS="-Wall -Wunused -Wstrict-prototypes" make[1]: Entering directory `/var/tmp/portage/sys-cluster/ipvsadm-1.27-r1/work/ipvsadm-1.27/libipvs' x86_64-pc-linux-gnu-gcc -fPIC -Wall -Wunused -Wstrict-prototypes -O2 -pipe -march=native -I.. -I. -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o libipvs.lo libipvs.c x86_64-pc-linux-gnu-gcc -fPIC -Wall -Wunused -Wstrict-prototypes -O2 -pipe -march=native -I.. -I. -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o ip_vs_nl_policy.lo ip_vs_nl_policy.c In file included from libipvs.h:13:0, from ip_vs_nl_policy.c:1: ip_vs.h:15:29: fatal error: netlink/netlink.h: No such file or directory compilation terminated. make[1]: *** [ip_vs_nl_policy.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from libipvs.h:13:0, from libipvs.c:23: ip_vs.h:15:29: fatal error: netlink/netlink.h: No such file or directory compilation terminated. make[1]: *** [libipvs.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-cluster/ipvsadm-1.27-r1/work/ipvsadm-1.27/libipvs' make: *** [libs] Error 2
Created attachment 369198 [details, diff] fix libnl 3 detection @pacho : please try the following 1.27-r1 ebuild patch Looks to me that the libnl-3 detection fails, if it works I'll commit to tree and fix the ebuild.
I still get: make -j5 -e 'INCLUDE=-I.. -I.' CC=x86_64-pc-linux-gnu-gcc HAVE_NL=1 STATIC= 'POPT_LIB=-lpopt ' make -C libipvs CFLAGS="-O2 -pipe -march=native" STATIC="" OPTFLAGS="-Wall -Wunused -Wstrict-prototypes" make[1]: Entering directory `/var/tmp/portage/sys-cluster/ipvsadm-1.27-r1/work/ipvsadm-1.27/libipvs' x86_64-pc-linux-gnu-gcc -fPIC -Wall -Wunused -Wstrict-prototypes -O2 -pipe -march=native -I.. -I. -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o libipvs.lo libipvs.c x86_64-pc-linux-gnu-gcc -fPIC -Wall -Wunused -Wstrict-prototypes -O2 -pipe -march=native -I.. -I. -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o ip_vs_nl_policy.lo ip_vs_nl_policy.c In file included from libipvs.h:13:0, from ip_vs_nl_policy.c:1: ip_vs.h:15:29: fatal error: netlink/netlink.h: No such file or directory compilation terminated. make[1]: *** [ip_vs_nl_policy.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from libipvs.h:13:0, from libipvs.c:23: ip_vs.h:15:29: fatal error: netlink/netlink.h: No such file or directory compilation terminated. make[1]: *** [libipvs.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-cluster/ipvsadm-1.27-r1/work/ipvsadm-1.27/libipvs' make: *** [libs] Error 2 :(
the problem is, that "make -C libipvs CFLAGS="..." overrides include path detection in libipvs/Makefile. So I'm adding a patch for the top level makefile utilizing the variable INLUDE to not mess with CFLAGS. Accordingly the ebuild must call make without overriding INCLUDE on the command line.
Created attachment 387776 [details, diff] libnl-inculde-path handling
Created attachment 387778 [details, diff] ipvsadm-1.27-r1.ebuild modifications
And, cannot the new path be specified at make line directly? :/
fixed in tree !