[Bug 263783] USB MBIM: Support for LTE/4G USB modems (MBIM)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 15 Sep 2025 18:08:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263783

--- Comment #93 from Tomasz "CeDeROM" CEDRO <tomek@cedro.info> ---
Okay so meson.build file needs tiny update to find stuff at /usr/local/include
location (like #include <linux/types.h>). I can see there were reports for that
in meson upstream but still not added?

diff --git a/meson.build b/meson.build
index 85266d18..0b7d6d38 100644
--- a/meson.build
+++ b/meson.build
@@ -74,6 +74,7 @@ cc_flags = cc.get_supported_arguments([
   '-Wno-cast-function-type',
   # all message protocol structs are packed, never complain about it
   '-Wno-packed',
+  '-I/usr/local/include',
 ])

 # strict flags to use in debug builds


Then project can be generated for ninja build at build-bsd with:

meson setup build-bsd -Dmbim_qmux=false -Dqrtr=false -Dcollection=basic
-Dintrospection=false -Dman=false -Dudev=false -Drmnet=false
-Dmm_runtime_check=false -Dbash_completion=false

But it fails at:

../src/libqmi-glib/qmi-net-port-manager-rmnet.c:24:10: fatal error:
'linux/if_link.h' file not found
   24 | #include <linux/if_link.h>



We do not seem to have this header provided anywhere?

% pkg which -g if_link.h
if_link.h was not found in the database

After that there are lots of linux includes related issues so I give up for
now.

Will try vbox win7 and vendor tools to update firmware maybe this will work ;-)

-- 
You are receiving this mail because:
You are the assignee for the bug.