yes, that autodetect presence of libibverbs shared library and if library is 
there then we link against it.

This likely needs to be removed or modified if you need to link statically...

> On 23 Oct 2017, at 09:10, Shachar Beiser <shacha...@mellanox.com> wrote:
> 
> I see in the vpp/src/configure , that is generated by the vpp/src/congiure.ac 
> , the following code :
>  
> #ifdef __cplusplus
> extern "C"
> #endif
> char ibv_fork_init ();
> int
> main ()
> {
> return ibv_fork_init ();
>   ;
>   return 0;
> }
> _ACEOF
> if ac_fn_c_try_link "$LINENO"; then :
>   ac_cv_lib_ibverbs_ibv_fork_init=yes
> else
>   ac_cv_lib_ibverbs_ibv_fork_init=no
> fi
>  
> this code effects on the issue in run time :
>  
> ubuntu@ubuntu:~/vpp.shacharbe$ <mailto:ubuntu@ubuntu:~/vpp.shacharbe$> vpp -c 
> /etc/vpp/startup.conf
> vlib_plugin_early_init:356: plugin path /usr/lib/vpp_plugins
> load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
> load_one_plugin:142: /usr/lib/vpp_plugins/dpdk_plugin.so: undefined symbol: 
> ibv_fork_init
> load_one_plugin:143: Failed to load plugin 'dpdk_plugin.so'
> Aborted
>  
>            -Shachar Beiser.
>     
>  
>  
>  
> From: Damjan Marion [mailto:dmarion.li...@gmail.com] 
> Sent: Sunday, October 22, 2017 6:38 PM
> To: Shachar Beiser <shacha...@mellanox.com>
> Cc: vpp-dev@lists.fd.io; Shahaf Shuler <shah...@mellanox.com>; Eyal Lavee 
> <ela...@mellanox.com>
> Subject: Re: [vpp-dev] vpp configure.ac ibv_fork_init
>  
>  
> 
> 
> On 22 Oct 2017, at 15:50, Shachar Beiser <shacha...@mellanox.com 
> <mailto:shacha...@mellanox.com>> wrote:
>  
> Hi ,
>  
>      I see in the vpp/src/configure.ac the following code :
>  
> AM_COND_IF([WITH_DPDK_MLX5_PMD],
> [
>   AC_CHECK_LIB([ibverbs], [ibv_fork_init],
>                [with_ibverbs_lib=yes],
>                [AC_MSG_ERROR([ibverbs library not found])])
> ])
>  
>      Can you explain what was the motivation to override the ibv_fork_init 
> prototype ?
>       
>  
> Hi Shachar,
>  
> Why do you mean by override the ibv_fork_init prototype?
>  
> Thanks,
>  
> Damjan

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to