Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497890 - sys-cluster/ipvsadm-1.27-r1: build fails due missing header (missing depend?)
Summary: sys-cluster/ipvsadm-1.27-r1: build fails due missing header (missing depend?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 495944
  Show dependency tree
 
Reported: 2014-01-12 13:33 UTC by Pacho Ramos
Modified: 2016-01-27 12:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix libnl 3 detection (ipvsadm-libnl-3.patch,693 bytes, patch)
2014-01-31 13:45 UTC, Ultrabug
Details | Diff
libnl-inculde-path handling (ipvsadm-1.27-libnl-inculde-path.patch,984 bytes, patch)
2014-10-30 09:03 UTC, Sascha Lucas
Details | Diff
ipvsadm-1.27-r1.ebuild modifications (ipvsadm-1.27-r1.ebuild.patch,544 bytes, patch)
2014-10-30 09:04 UTC, Sascha Lucas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2014-01-12 13:33:07 UTC
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
Comment 1 Ultrabug gentoo-dev 2014-01-31 13:45:58 UTC
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.
Comment 2 Pacho Ramos gentoo-dev 2014-02-01 09:34:07 UTC
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

:(
Comment 3 Sascha Lucas 2014-10-30 09:02:29 UTC
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.
Comment 4 Sascha Lucas 2014-10-30 09:03:55 UTC
Created attachment 387776 [details, diff]
libnl-inculde-path handling
Comment 5 Sascha Lucas 2014-10-30 09:04:55 UTC
Created attachment 387778 [details, diff]
ipvsadm-1.27-r1.ebuild modifications
Comment 6 Pacho Ramos gentoo-dev 2014-12-28 19:25:42 UTC
And, cannot the new path be specified at make line directly? :/
Comment 7 Ultrabug gentoo-dev 2016-01-27 12:50:16 UTC
fixed in tree !