Hi Yusuke,

It seems to me your OS kernel does not support the latest netlink macros
such as RTNLGRP_MPLS_ROUTE.

Thanks
Chad

2018-05-22 7:01 GMT-04:00 Yusuke Tatsumi <ytats...@yahoo-corp.jp>:

> Hi vpp routing guys,
>
> I have tried vppsb plugins (router, netlink) and these plugins work well
> with
> - vpp: v18.04
> - vppsb: ce5ab87645e7472b99e23686047e4141a7a315b0
> - Bird: 1.4.5-2.el7.x86_64
>
> I noticed that vppsb current master can't be built.
> It seems to be caused by 2ab698c963b12219aecf72d001ae28c173548933 commit
> but I don't know how to fix this error.
> Can someone help to fix this issue?
>
> 0. References
> - https://github.com/FRRouting/frr/wiki/Alternate-forwarding-planes:-VPP
> - https://wiki.fd.io/view/VPP_Sandbox/router
>
> 1. build env.
> - CentOS 7.3.1611 w/ kernel 3.10.0-693.21.1.el7.x86_64
> - On baremetal server, NOT on vagrant.
>
> 2. build steps.
>  cd ~/
>  mkdir router-build-working-dir
>  cd router-build-working-dir
>  git clone https://gerrit.fd.io/r/vpp
>  git clone https://gerrit.fd.io/r/vppsb
>  cd vpp
>  git checkout v18.04
>  ln -sf ../vppsb/netlink
>  ln -sf ../vppsb/router
>  cd build-data/packages/
>  ln -sf ../../../vppsb/router/router.mk
>  ln -sf ../../../vppsb/netlink/netlink.mk
>  cd ../../build-root
>  make V=0 PLATFORM=vpp TAG=vpp_debug netlink-install router-install
>
> 3. result.
> ---
> @@@@ Building netlink in /home/ytatsumi/router-build-wo
> rking-dir/vpp/build-root/build-vpp_debug-native/netlink @@@@
> make[1]: Entering directory `/home/ytatsumi/router-build-w
> orking-dir/vpp/build-root/build-vpp_debug-native/netlink'
>   CC       librtnl/netns.lo
>   CC       librtnl/rtnl.lo
> /home/ytatsumi/router-build-working-dir/vpp/build-data/../netlink/librtnl/rtnl.c:
> In function 'rtnl_socket_open':
> /home/ytatsumi/router-build-working-dir/vpp/build-data/../netlink/librtnl/rtnl.c:266:39:
> error: 'RTNLGRP_MPLS_ROUTE' undeclared (first use in this function)
>      grpmask(RTNLGRP_NOTIFY) | grpmask(RTNLGRP_MPLS_ROUTE),
>                                        ^
> /home/ytatsumi/router-build-working-dir/vpp/build-data/../netlink/librtnl/rtnl.c:266:39:
> note: each undeclared identifier is reported only once for each function it
> appears in
> /home/ytatsumi/router-build-working-dir/vpp/build-data/../netlink/librtnl/netns.c:69:5:
> error: 'RTA_VIA' undeclared here (not in a function)
>    _(RTA_VIA, via, 1)                            \
>      ^
> /home/ytatsumi/router-build-working-dir/vpp/build-data/../netlink/librtnl/netns.c:82:13:
> note: in definition of macro '_'
>      .type = t, .unique = u,                     \
>              ^
> /home/ytatsumi/router-build-working-dir/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
> ---
>
> 4. deploy *.so files (If plugin build success)
> cd router-build-working-dir
> sudo cp vpp/build-root/install-vpp_debug-native/netlink/lib64/librtnl.so.0.0.0
> /usr/lib64/librtnl.so
> sudo cp 
> vpp/build-root/install-vpp_debug-native/netlink/lib64/testrtnl_plugin.so.0.0.0
> /usr/lib/vpp_plugins/testrtnl_plugin.so
> sudo cp vpp/build-root/install-vpp_debug-native/router/lib64/router.so.0.0.0
> /usr/lib/vpp_plugins/router.so
> sudo ln -sf /usr/lib64/librtnl.so /usr/lib64/librtnl.so.0
>
> # BTW, does anyone have plan to make "make pkg-rpm"?
> # From operation perspective, it is too hard to usebinary w/o rpm package..
>
> Thanks,
> Tatsumi.
>
> —
> 立見 祐介
> ヤフー株式会社
> テクノロジーグループ システム統括本部 サイトオペレーション本部 インフラ技術1部 プライベートクラウド
> TEL: 03-6898-3081
> maill: ytats...@yahoo-corp.jp
>
> —
> Yusuke Tatsumi
> Private Cloud
> Site Operations Division
> System Management Group
> Yahoo Japan Corporation
> Direct: +81 (3) 6898 3081
> mail: ytats...@yahoo-corp.jp
>
> 
>
>

Reply via email to