I think its the same if we define SAMPLE_MAIN variable in SAMPLE.C file
or if we remove the key word EXTERN in SAMPLE.H. I have tried removing
EXTERN and it works but defining SAMPLE_MAIN in .c file should also
work.

On 2018-07-20 19:02, Damjan Marion via Lists.Fd.Io wrote:

> This should be the proper fix for your issue: 
> 
> https://gerrit.fd.io/r/#/c/13589/ 
> 
> Please confirm... 
> 
> -- 
> Damjan 
> 
> On 20 Jul 2018, at 15:52, [email protected] wrote: 
> 
> When I ran vpp 18.07 in interactive mode I found that vpp was unable to load 
> SAMPLE_PLUGIN due to an error of undefined variable *SAMPLE_MAIN* used in 
> SAMPLE.C file. However, *SAMPLE_MAIN* is defined in SAMPLE.H file as follows. 
> 
> extern sample_main_t sample_main; 
> 
> Removing keyword EXTERN worked for me. Now vpp 18.07 successfully loads 
> SAMPLE_PLUGIN.
> 
> On 2018-07-18 18:22, [email protected] wrote: 
> 
> Hello All, 
> 
> I am trying to build vpp STABLE/1807 with sample plugin enabled on UBUNTU 
> 16.04.2 using following guide. 
> 
> https://docs.fd.io/vpp/18.07/sample_plugin_doc.html 
> 
> Build process goes without any error and then I make .DEB packages and 
> install these packages on a different host (ubuntu 16.04.2) but when I check 
> vpp plugins using VPPCTL SHOW PLUGINS command; I see many plugins except 
> SAMPLE plugin. I also don't see any sample plugin under /usr/lib/vpp_plugins 
> directory. Should I need to do any additional step. 
> 
> NOTE: I did the same process for vpp STABLE/1707 and it went through 
> perfectly fine and I was able to use and test vpp sample plugin. 
> 
> Thanks 
> 
> Regards, 
> 
> Abdul Malik 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#9876): https://lists.fd.io/g/vpp-dev/message/9876
> Mute This Topic: https://lists.fd.io/mt/23670834/1123042
> Group Owner: [email protected]
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#9898): https://lists.fd.io/g/vpp-dev/message/9898
> Mute This Topic: https://lists.fd.io/mt/23670834/675642
> Group Owner: [email protected]
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9899): https://lists.fd.io/g/vpp-dev/message/9899
Mute This Topic: https://lists.fd.io/mt/23670834/1123042
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9900): https://lists.fd.io/g/vpp-dev/message/9900
Mute This Topic: https://lists.fd.io/mt/23670834/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to