And also remove
else if (r->rtm.rtm_family == AF_MPLS)
part

From: Kevin Yan
Sent: Friday, November 02, 2018 3:15 PM
To: 'alp.ars...@xflowresearch.com' <alp.ars...@xflowresearch.com>; 
vpp-dev@lists.fd.io
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

for(int i = 1; label != 0; i++)

change to :
int I;
for(i = 1; label != 0; i++)

From: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com> 
[mailto:alp.ars...@xflowresearch.com]
Sent: Friday, November 02, 2018 3:11 PM
To: Kevin Yan <kevin....@mavenir.com<mailto:kevin....@mavenir.com>>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: RE: [E] [vpp-dev] VPPSB Netlink build failing

Tried removing both macros (RTNLGRP_MPLS_ROUTE & RTA_VIA), failed with another 
MPLS related error in the router plugin.

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/router'
  CC       router/tap_inject_netlink.lo
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'get_mpls_label_stack':
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: error: 'for' loop 
initial declarations are only allowed in C99 mode
   for(int i = 1; label != 0; i++) {
   ^
/vpp/build-data/../router/router/tap_inject_netlink.c:154:3: note: use option 
-std=c99 or -std=gnu99 to compile your code
/vpp/build-data/../router/router/tap_inject_netlink.c: In function 
'add_del_route':
/vpp/build-data/../router/router/tap_inject_netlink.c:200:9: error: 'for' loop 
initial declarations are only allowed in C99 mode
         for(int i = 0; i < MPLS_STACK_DEPTH && stack[i] != 0; i++) {
         ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: error: 'AF_MPLS' 
undeclared (first use in this function)
   else if (r->rtm.rtm_family == AF_MPLS)
                                 ^
/vpp/build-data/../router/router/tap_inject_netlink.c:228:33: note: each 
undeclared identifier is reported only once for each function it appears in
In file included from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/mem.h:55:0,
                 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/vec.h:42,
                 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/format.h:44,
                 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf.h:41,
                 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/elf_clib.h:41,
                 from 
/vpp/build-root/install-vpp_debug-native/vpp/include/vlib/vlib.h:44,
                 from 
/vpp/build-root/install-vpp_debug-native/netlink/include/librtnl/netns.h:19,
                 from /vpp/build-data/../router/router/tap_inject_netlink.c:17:
/vpp/build-data/../router/router/tap_inject_netlink.c:241:44: error: 
dereferencing pointer to incomplete type
       clib_memcpy (&rpath.frp_addr.ip4, via->rtvia_addr, sizeof 
(rpath.frp_addr.ip4));
                                            ^
/vpp/build-root/install-vpp_debug-native/vpp/include/vppinfra/string.h:153:48: 
note: in definition of macro 'clib_memcpy'
#define clib_memcpy(d,s,n) memcpy_s_inline(d,n,s,n)
                                                ^
make[1]: *** [router/tap_inject_netlink.lo] Error 1
make[1]: Leaving directory `/vpp/build-root/build-vpp_debug-native/router'
make: *** [router-build] Error 2

It is compiling after I removed the whole else block, not sure how it will 
affect the plugin.

One question, after the build is completed, how do I install it to my system? I 
can see the install directory with all the binaries, but how do I get them to 
proper locations, like I would if I installed using the rpms.



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Kevin Yan
Sent: Friday, November 2, 2018 11:38 AM
To: alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>; 
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [E] [vpp-dev] VPPSB Netlink build failing

I also met this error when compiling vppsb on centos, just remove the MPLS 
related macro,and re-compile

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of 
alp.ars...@xflowresearch.com<mailto:alp.ars...@xflowresearch.com>
Sent: Friday, November 02, 2018 1:55 PM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [E] [vpp-dev] VPPSB Netlink build failing

Dear All,

I am trying to build the latest VPP with router and netlink plugins on CentOS 
7.5. Here are the steps that I followed.

# cd /vpp
# ln -sf /vppsb/router/
# ln -sf /vppsb/netlink/
# ln -sf /vppsb/router/router.mk build-data/packages/
# ln -sf /vppsb/netlink/netlink.mk build-data/packages/
#
# make V=0 PLATFORM=vpp TAG=vpp_debug netlink-install router-install

The command fails with the following error:

make[1]: Entering directory `/vpp/build-root/build-vpp_debug-native/netlink'
  CC       librtnl/netns.lo
  CC       librtnl/rtnl.lo
/vpp/build-data/../netlink/librtnl/rtnl.c: In function 'rtnl_socket_open':
/vpp/build-data/../netlink/librtnl/rtnl.c:269:39: error: 'RTNLGRP_MPLS_ROUTE' 
undeclared (first use in this function)
     grpmask(RTNLGRP_NOTIFY) | grpmask(RTNLGRP_MPLS_ROUTE),
                                       ^
/vpp/build-data/../netlink/librtnl/rtnl.c:269:39: note: each undeclared 
identifier is reported only once for each function it appears in
/vpp/build-data/../netlink/librtnl/netns.c:69:5: error: 'RTA_VIA' undeclared 
here (not in a function)
   _(RTA_VIA, via, 1)                            \
     ^
/vpp/build-data/../netlink/librtnl/netns.c:82:13: note: in definition of macro 
'_'
     .type = t, .unique = u,                     \
             ^
/vpp/build-data/../netlink/librtnl/netns.c:86:3: note: in expansion of macro 
'ns_foreach_rta'
   ns_foreach_rta
   ^
make[1]: *** [librtnl/rtnl.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [librtnl/netns.lo] Error 1
make[1]: Leaving directory `/vpp/build-root/build-vpp_debug-native/netlink'
make: *** [netlink-build] Error 2

Can anyone help me with this? Or point me towards the versions of VPP and VPPSB 
where they are working with each other.

Regards,
Alp Arslan
________________________________
This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to 
secur...@mavenir.com<mailto:secur...@mavenir.com>. This message contains the 
views of its author and may not necessarily reflect the views of Mavenir 
Systems, Inc. or its affiliates, who employ systems to monitor email messages, 
but make no representation that such messages are authorized, secure, 
uncompromised, or free from computer viruses, malware, or other defects. Thank 
You
________________________________
This e-mail message may contain confidential or proprietary information of 
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of 
the intended recipient(s). If you are not the intended recipient of this 
message, you are hereby notified that any review, use or distribution of this 
information is absolutely prohibited and we request that you delete all copies 
in your control and contact us by e-mailing to secur...@mavenir.com. This 
message contains the views of its author and may not necessarily reflect the 
views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor 
email messages, but make no representation that such messages are authorized, 
secure, uncompromised, or free from computer viruses, malware, or other 
defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11071): https://lists.fd.io/g/vpp-dev/message/11071
Mute This Topic: https://lists.fd.io/mt/27825214/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to