Re: [vpp-dev] Sample plugin doest not show up with vpp 18.07

2018-07-20 Thread abdul . malik
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, abdul.ma...@sofioni.com 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, abdul.ma...@sofioni.com 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: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [abdul.ma...@sofioni.com]
> -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=-
> 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: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [dmar...@me.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
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: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
[abdul.ma...@sofioni.com]
-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
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: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Sample plugin doest not show up with vpp 18.07

2018-07-20 Thread abdul . malik
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, abdul.ma...@sofioni.com 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: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [abdul.ma...@sofioni.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
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/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Sample plugin doest not show up with vpp 18.07

2018-07-18 Thread abdul . malik
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/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-