[macOS] Build fails: `com.c: error: use of undeclared identifier 'CBAUD'`
Building on macOS does not work since configure requires udev
even when it is disabled, but this is a Linux-specific thing, there is no libudev
on macOS.
---> Extracting ModemManager-1.22.0.tar.bz2
Executing: cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/libmm-glib/ModemManager-1.22.0.tar.bz2' | /usr/bin/tar -xf -
---> Configuring libmm-glib
Executing: cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0" && /opt/local/bin/meson setup --prefix=/opt/local -Dat_command_via_dbus=false -Dbuiltin_plugins=false -Dexamples=false -Dgtk_doc=false -Dintrospection=true -Dmbim=false -Dpolkit=no -Dpowerd_suspend_resume=false -Dqmi=false -Dqrtr=false -Dsystemd_journal=false -Dsystemd_suspend_resume=false -Dtests=false -Dudev=false -Dvapi=true /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0 /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/build --wrap-mode=nodownload
The Meson build system
Version: 1.5.2
Source dir: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0
Build dir: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/build
Build type: native build
Project name: ModemManager
Project version: 1.22.0
C compiler for the host machine: ccache /usr/bin/clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
C linker for the host machine: /usr/bin/clang ld64 1053.12
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python3 found: YES (/usr/bin/python3)
Program /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0/build-aux/mm-mkenums found: YES (/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0/build-aux/mm-mkenums)
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-cast-function-type: YES
Compiler for C supports arguments -Wno-packed: YES
Compiler for C supports arguments -Wno-float-equal: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Compiler for C supports arguments -Waggregate-return: YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Wdouble-promotion: YES
Compiler for C supports arguments -Wduplicated-branches: NO
Compiler for C supports arguments -Wduplicated-cond: NO
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Winline: YES
Compiler for C supports arguments -Wjump-misses-init: NO
Compiler for C supports arguments -Wlogical-op: NO
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wmaybe-uninitialized: NO
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnull-dereference: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wrestrict: NO
Compiler for C supports arguments -Wreturn-type: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wsuggest-attribute=format: NO
Compiler for C supports arguments -Wswitch-default: YES
Compiler for C supports arguments -Wswitch-enum: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wunused-but-set-variable: YES
Compiler for C supports arguments -Wwrite-strings: YES
Found pkg-config: YES (/opt/local/bin/pkg-config) 0.29.2
Run-time dependency gio-unix-2.0 found: YES 2.78.4
Run-time dependency glib-2.0 found: YES 2.78.4
Run-time dependency gmodule-2.0 found: YES 2.78.4
Run-time dependency gio-2.0 found: YES 2.78.4
Run-time dependency gobject-2.0 found: YES 2.78.4
Run-time dependency dbus-1 found: YES 1.14.10
Run-time dependency bash-completion found: YES 2.14.0
meson.build:193:2: ERROR: Assert failed: udevdir must be explicitly given if udev support is disabled
A full log can be found at /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/build/meson-logs/meson-log.txt
Command failed: cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0" && /opt/local/bin/meson setup --prefix=/opt/local -Dat_command_via_dbus=false -Dbuiltin_plugins=false -Dexamples=false -Dgtk_doc=false -Dintrospection=true -Dmbim=false -Dpolkit=no -Dpowerd_suspend_resume=false -Dqmi=false -Dqrtr=false -Dsystemd_journal=false -Dsystemd_suspend_resume=false -Dtests=false -Dudev=false -Dvapi=true /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/ModemManager-1.22.0 /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_comms_libmm-glib/libmm-glib/work/build --wrap-mode=nodownload
Exit code: 1