Bit of a long-shot, but it is plausible that autotools didn’t rebuild completely after you added your plugin files I suppose. It’s sometimes worth cleaning the tree to force it. “make wipe” or to be doubly sure “git clean -fxd” (making sure you have your local files added to git etc)
Chris From: Sara Gittlin [mailto:[email protected]] Sent: Monday, April 16, 2018 11:29 AM To: Luke, Chris <[email protected]> Cc: [email protected] Subject: Re: [vpp-dev] Build error with my_plugin.api.h file. Thank you Neale and Chris Neale - this is my_policer.api file: ( i dont have other files related to api) option version = "1.0.0"; autoreply define my_policer_if_action { /* Client identifier, set from api_main.my_client_index */ u32 client_index; /* Arbitrary context, so client can match reply to request */ u32 context; /* Enable / disable the feature */ u8 action; /* Interface handle */ u32 sw_if_index; }; Chris this is the line from my_policer.am<http://my_policer.am> file API_FILES += my_policer/my_policer.api -Sara On Mon, Apr 16, 2018 at 6:18 PM, Luke, Chris <[email protected]<mailto:[email protected]>> wrote: Do you list the .api files in the variable API_FILES in your plugin .am file? Chris From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Sara Gittlin Sent: Monday, April 16, 2018 11:08 AM To: [email protected]<mailto:[email protected]> Subject: Re: [vpp-dev] Build error with my_plugin.api.h file. I see that this file (and the my_plugin.api.json) are not auto generated in the build Why ? -Sara On Mon, Apr 16, 2018 at 5:27 PM, Sara Gittlin <[email protected]<mailto:[email protected]>> wrote: Hello, I've encountered this build error few times and managed to get rid of it somehow. the error is always with the my_plugin.api.h file. Can you tell me what is the problem here ? ----------------- /bin/sh ./config.status config.status: creating Makefile config.status: creating plugins/Makefile config.status: creating vpp-api/python/Makefile config.status: creating vpp-api/java/Makefile config.status: creating vpp-api/vapi/Makefile config.status: creating vpp-api/vom/Makefile config.status: executing libtool commands config.status: executing depfiles commands make all-recursive make[3]: Entering directory '/home/vpp/build-root/build-vpp-native/vpp' Making all in . make[4]: Entering directory '/home/vpp/build-root/build-vpp-native/vpp' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp' Making all in plugins make[4]: Entering directory '/home/vpp/build-root/build-vpp-native/vpp/plugins' APIGEN my_forwarder/my_forwarder.api.h APIGEN my_policer/my_policer.api.h (null):53 syntax error make[4]: *** [Makefile:3301: my_forwarder/my_forwarder.api.h] Error 1 make[4]: *** Waiting for unfinished jobs.... (null):53 syntax error make[4]: *** [Makefile:3301: my_policer/my_policer.api.h] Error 1 make[4]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp/plugins' make[3]: *** [Makefile:7757: all-recursive] Error 1 make[3]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp' make[2]: *** [Makefile:3967: all] Error 2 make[2]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp' make[1]: *** [Makefile:686: vpp-build] Error 2 make[1]: Leaving directory '/home/vpp/build-root' make: *** [Makefile:339: build-release] Error 2 Thank you -Sara
