[dpdk-dev] [dpdk v1] net/mlx5: fix possible building error

Ali Alnubani alialnu at mellanox.com
Sun Mar 1 18:09:45 CET 2020


Hi Tonghao,

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of
> xiangxia.m.yue at gmail.com
> Sent: Saturday, February 29, 2020 12:27 PM
> To: Matan Azrad <matan at mellanox.com>; dev at dpdk.org
> Cc: Tonghao Zhang <xiangxia.m.yue at gmail.com>; stable at dpdk.org
> Subject: [dpdk-dev] [dpdk v1] net/mlx5: fix possible building error
> 
> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> 
> When setting the CONFIG_RTE_BUILD_SHARED_LIB to y, and build the mlx5
> pmd, there is a building error.
> To fix it, add RTE_IBVERBS_LINK_DLOPEN to include relative codes.
> 
> > mlx5_common.o: In function `mlx5_glue_init':
> > drivers/common/mlx5/mlx5_common.c:324: undefined reference to
> `dlclose'
> 
> Fixes: 7b4f1e6bd367 ("common/mlx5: introduce common library")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> ---
>  drivers/common/mlx5/mlx5_common.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 

I test this case on multiple environments and don't see the build failure. Can you please provide more information about yours, and how to reproduce this?

Thanks,
Ali


More information about the dev mailing list