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] On Behalf Of 
alp.ars...@xflowresearch.com
Sent: Friday, November 02, 2018 1:55 PM
To: 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. 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 (#11068): https://lists.fd.io/g/vpp-dev/message/11068
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