Re: iproute2 compile and linking errors on Fedora 19

2018-11-27 Thread Phil Sutter
Hi, On Mon, Nov 26, 2018 at 04:06:27PM -0800, Stephen Hemminger wrote: > On Tue, 31 Oct 2017 16:28:20 -0700 > Cong Wang wrote: > > > On Tue, Oct 31, 2017 at 2:10 PM, Stephen Hemminger > > wrote: > > > > > > IPPROTO_MH comes from include/uapi/linux/in6.h > > > Maybe it is trying to use old kerne

Re: iproute2 compile and linking errors on Fedora 19

2018-11-26 Thread Stephen Hemminger
On Tue, 31 Oct 2017 16:28:20 -0700 Cong Wang wrote: > On Tue, Oct 31, 2017 at 2:10 PM, Stephen Hemminger > wrote: > > > > IPPROTO_MH comes from include/uapi/linux/in6.h > > Maybe it is trying to use old kernel headers from libc. > > So newer iproute2 is not supposed to work with older > kerne

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Stephen Hemminger
On Tue, 31 Oct 2017 16:28:20 -0700 Cong Wang wrote: > On Tue, Oct 31, 2017 at 2:10 PM, Stephen Hemminger > wrote: > > > > IPPROTO_MH comes from include/uapi/linux/in6.h > > Maybe it is trying to use old kernel headers from libc. > > So newer iproute2 is not supposed to work with older > kerne

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Cong Wang
On Tue, Oct 31, 2017 at 2:10 PM, Stephen Hemminger wrote: > > IPPROTO_MH comes from include/uapi/linux/in6.h > Maybe it is trying to use old kernel headers from libc. So newer iproute2 is not supposed to work with older kernel header??

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Stephen Hemminger
On Tue, 31 Oct 2017 10:58:46 -0700 Cong Wang wrote: > Hi, > > The latest iproute2 in git fails with the following compile error on > Fedora 19 (I know it is very old!): > > xfrm_state.c: In function ‘usage’: > xfrm_state.c:104:36: error: ‘IPPROTO_MH’ undeclared (first use in this > function) >

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Stephen Hemminger
On Tue, 31 Oct 2017 12:25:15 -0700 Eric Dumazet wrote: > On Tue, 2017-10-31 at 15:16 -0400, Roman Mashak wrote: > > Eric Dumazet writes: > > > > > > [...] > > > > > CC iplink_xstats.o > > > CC ipseg6.o > > > LINK ip > > > xfrm_state.o: In function `xfrm_state_mod

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Eric Dumazet
On Tue, 2017-10-31 at 15:16 -0400, Roman Mashak wrote: > Eric Dumazet writes: > > > [...] > > > CC iplink_xstats.o > > CC ipseg6.o > > LINK ip > > xfrm_state.o: In function `xfrm_state_modify.constprop.3': > > xfrm_state.c:(.text+0x2458): undefined reference to `strl

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Roman Mashak
Eric Dumazet writes: [...] > CC iplink_xstats.o > CC ipseg6.o > LINK ip > xfrm_state.o: In function `xfrm_state_modify.constprop.3': > xfrm_state.c:(.text+0x2458): undefined reference to `strlcpy' > ipnetns.o: In function `netns_identify_pid': > ipnetns.c:(.text+0x12

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Eric Dumazet
On Tue, 2017-10-31 at 11:27 -0700, Cong Wang wrote: > On Tue, Oct 31, 2017 at 10:58 AM, Cong Wang wrote: > > Hi, > > > > The latest iproute2 in git fails with the following compile error on > > Fedora 19 (I know it is very old!): > > v4.11.0 compiles and links fine. Same problem here, using Ubun

Re: iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Cong Wang
On Tue, Oct 31, 2017 at 10:58 AM, Cong Wang wrote: > Hi, > > The latest iproute2 in git fails with the following compile error on > Fedora 19 (I know it is very old!): v4.11.0 compiles and links fine.

iproute2 compile and linking errors on Fedora 19

2017-10-31 Thread Cong Wang
Hi, The latest iproute2 in git fails with the following compile error on Fedora 19 (I know it is very old!): xfrm_state.c: In function ‘usage’: xfrm_state.c:104:36: error: ‘IPPROTO_MH’ undeclared (first use in this function) fprintf(stderr, "%s", strxf_proto(IPPROTO_MH));