Hi Hongjun, Thanks for the patch. I tried to compile VPPSB project with the latest master and latest VPP stable/1810 but I am getting this error:
@@@@ Building router in /vpp/build-root/build-vpp_debug-native/router @@@@ make[1]: Entering directory '/vpp/build-root/build-vpp_debug-native/router' CC router/tap_inject.lo CC router/tap_inject_netlink.lo CC router/tap_inject_node.lo CC router/tap_inject_tap.lo /vpp/build-data/../router/router/tap_inject_node.c: In function ‘tap_inject_tap_send_buffer’: /vpp/build-data/../router/router/tap_inject_node.c:45:13: error: implicit declaration of function ‘writev’; did you mean ‘write’? [-Werror=implicit-function-declaration] n_bytes = writev (fd, &iov, 1); ^~~~~~ write /vpp/build-data/../router/router/tap_inject_node.c: In function ‘tap_rx’: /vpp/build-data/../router/router/tap_inject_node.c:231:13: error: implicit declaration of function ‘readv’; did you mean ‘read’? [-Werror=implicit-function-declaration] n_bytes = readv (fd, iov, MTU_BUFFERS); ^~~~~ read cc1: all warnings being treated as errors Makefile:483: recipe for target 'router/tap_inject_node.lo' failed make[1]: *** [router/tap_inject_node.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/vpp/build-root/build-vpp_debug-native/router' Makefile:691: recipe for target 'router-build' failed make: *** [router-build] Error 2 Thanks On Sun, Oct 7, 2018 at 7:25 PM Ni, Hongjun <hongjun...@intel.com> wrote: > > Hi guys, > > I have submitted a patch to fix the build issue in VPPSB project: > https://gerrit.fd.io/r/#/c/15135/ Fix build issue due to vpp's function > parameters change > I have tested it and it works well in my server. > > Thanks, > Hongjun > > -----Original Message----- > From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of carlito > nueno > Sent: Friday, September 28, 2018 9:45 AM > To: memarnejad...@gmail.com > Cc: vpp-dev@lists.fd.io > Subject: Re: [vpp-dev] Unable to build router plugin > > Thanks for the tip Mehran. I will take a look and report back. > On Thu, Sep 27, 2018 at 12:16 AM Mehran Memarnejad <memarnejad...@gmail.com> > wrote: > > > > Hi carlito, > > > > I've had problems muck like yours. Sometimes VPP updates its functions > > while vppsb is still the same, so you need to change it to make it work. > > In my problem I just updated the vppsb's outdated function to the new one > > and it worked. > > As you know, vppsb is a plugin for vpp and it calls vpp's functions, > > so any change in vpp's function affects vppsb e.g. function singnature > > change > > > > > > On Thursday, September 27, 2018, carlito nueno <carlitonu...@gmail.com> > > wrote: > >> > >> Hi all, > >> > >> I am trying to build the router-plugin: > >> make V=0 PLATFORM=vpp TAG=vpp_debug install-deb netlink-install > >> router-install > >> > >> I am using the Vagrantfile present in vpp repo and am pulling the > >> current master (as of September 26 2018). I am also pulling the > >> current master of vppsb. > >> > >> But I am getting this error: > >> > >> @@@@ Building router in /vpp/build-root/build-vpp_debug-native/router > >> @@@@ > >> make[1]: Entering directory '/vpp/build-root/build-vpp_debug-native/router' > >> CC router/tap_inject.lo > >> CC router/tap_inject_netlink.lo > >> /vpp/build-data/../router/router/tap_inject_netlink.c: In function > >> ‘add_del_neigh’: > >> /vpp/build-data/../router/router/tap_inject_netlink.c:140:9: error: > >> too many arguments to function ‘vnet_unset_ip6_ethernet_neighbor’ > >> vnet_unset_ip6_ethernet_neighbor (vm, sw_if_index, > >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from > >> /vpp/build-data/../router/router/tap_inject_netlink.c:19:0: > >> /vpp/build-root/install-vpp_debug-native/vpp/include/vnet/ip/ip6_neighbor.h:84:12: > >> note: declared here > >> extern int vnet_unset_ip6_ethernet_neighbor (vlib_main_t * vm, > >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> Makefile:483: recipe for target 'router/tap_inject_netlink.lo' failed > >> make[1]: *** [router/tap_inject_netlink.lo] Error 1 > >> make[1]: *** Waiting for unfinished jobs.... > >> make[1]: Leaving directory '/vpp/build-root/build-vpp_debug-native/router' > >> Makefile:691: recipe for target 'router-build' failed > >> make: *** [router-build] Error 2 > >> > >> Any advice? > >> > >> Thanks
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10861): https://lists.fd.io/g/vpp-dev/message/10861 Mute This Topic: https://lists.fd.io/mt/26280661/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-