[PATCH] common/mlx5: fix build on Linux in dlopen link mode

Thomas Monjalon thomas at monjalon.net
Tue Apr 8 09:47:17 CEST 2025


When using the Meson option "ibverbs_link=dlopen",
a glue library is built.

After the recent change requiring eal_export.h,
the build stopped because the internal EAL include directory
was unknown to this glue library:

	drivers/common/mlx5/linux/mlx5_glue.c:19:10: fatal error:
	eal_export.h: No such file or directory

Fixes: c7020bb20fc7 ("build: mark exported symbols")

Reported-by: Ali Alnubani <alialnu at nvidia.com>
Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
 drivers/common/mlx5/linux/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/common/mlx5/linux/meson.build b/drivers/common/mlx5/linux/meson.build
index 58d0328c6d..5548a56199 100644
--- a/drivers/common/mlx5/linux/meson.build
+++ b/drivers/common/mlx5/linux/meson.build
@@ -237,7 +237,7 @@ if dlopen_ibverbs
     dlopen_sources = files('mlx5_glue.c')
     dlopen_install_dir = [ eal_pmd_path + '-glue' ]
     dlopen_includes = [global_inc]
-    dlopen_includes += include_directories('../../../../lib/eal/include/generic')
+    dlopen_includes += include_directories('../../../../lib/eal/common')
     dlopen_includes += include_directories('..')
     shared_lib = shared_library(
             dlopen_lib_name,
-- 
2.47.1



More information about the dev mailing list