1.20.2: biuild fails
autoconf output:
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --bindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --disable-dependency-tracking --exec-prefix=/usr --includedir=/usr/include --infodir=/usr/share/info --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --program-prefix= --runstatedir=/run --sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc --disable-compile-warnings --disable-rpath --disable-static --enable-all-plugins --enable-gtk-doc --enable-introspection --with-dist-version=1.20.2-2.fc35 --with-mbim --with-polkit=permissive --with-qmi --with-systemd-journal --with-systemd-suspend-resume --with-udev-base-dir=/usr/lib/udev
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-redhat-linux-gnu-gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking dependency style of /usr/bin/gcc... none
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for x86_64-redhat-linux-gnu-gcc... (cached) /usr/bin/gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) yes
checking for /usr/bin/gcc option to enable C11 features... (cached) none needed
checking whether /usr/bin/gcc understands -c and -o together... (cached) yes
checking dependency style of /usr/bin/gcc... (cached) none
checking whether ln -s works... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/gcc-nm
checking the name lister (/usr/bin/gcc-nm) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-gnu-file... no
checking for file... file
checking for x86_64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-ar... /usr/bin/gcc-ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... /usr/bin/gcc-ranlib
checking command to parse /usr/bin/gcc-nm output from /usr/bin/gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/gcc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/gcc static flag -static works... no
checking if /usr/bin/gcc supports -c -o file.o... yes
checking if /usr/bin/gcc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether C compiler accepts -Werror=unknown-warning-option... no
checking whether C compiler accepts -Wno-suggest-attribute=format... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -Werror=unknown-warning-option... (cached) no
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,--no-as-needed... yes
checking whether the linker accepts -Wl,--fatal-warnings... yes
checking whether the linker accepts -Wl,-fatal_warnings... no
checking whether the linker accepts -Wl,--no-as-needed... yes
checking whether C compiler accepts -Werror=unknown-warning-option... (cached) no
checking whether C compiler accepts -Wno-suggest-attribute=format... (cached) yes
checking whether C compiler accepts -fno-strict-aliasing... (cached) yes
checking for x86_64-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... yes
checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by /usr/bin/gcc... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for glib-2.0 >= 2.56.0
gmodule-2.0
gobject-2.0
gio-2.0
gio-unix-2.0... yes
checking for glib-2.0 >= 2.56.0
gobject-2.0
gio-2.0
gio-unix-2.0... yes
checking for glib-2.0 >= 2.56.0
gobject-2.0
gio-2.0... yes
checking for xsltproc... yes
checking whether to build with code coverage support... no
checking for gobject-introspection... yes
checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for vapigen... yes
checking for gudev-1.0 >= 232... yes
checking for libsystemd >= 209... yes
checking for libsystemd-login >= 183... no
checking for libelogind >= 209... no
checking for polkit-gobject-1 >= 0.97... yes
checking for mbim-glib >= 1.28.0... yes
checking for qmi-glib >= 1.32.0... yes
checking for qrtr-glib >= 1.0.0... no
configure: WARNING: cache variable pkg_cv_GTKDOC_DEPS_VERSION contains a newline
configure: WARNING: cache variable pkg_cv_LIBMM_GLIB_VERSION contains a newline
configure: WARNING: cache variable pkg_cv_MMCLI_VERSION contains a newline
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating data/ModemManager.pc
config.status: creating data/mm-glib.pc
config.status: creating data/dispatcher-connection/Makefile
config.status: creating data/dispatcher-fcc-unlock/Makefile
config.status: creating data/tests/Makefile
config.status: creating data/tests/org.freedesktop.ModemManager1.service
config.status: creating include/Makefile
config.status: creating include/ModemManager-version.h
config.status: creating build-aux/Makefile
config.status: creating libqcdm/Makefile
config.status: creating libqcdm/src/Makefile
config.status: creating libqcdm/tests/Makefile
config.status: creating src/Makefile
config.status: creating src/tests/Makefile
config.status: creating plugins/Makefile
config.status: creating test/Makefile
config.status: creating tools/Makefile
config.status: creating tools/tests/Makefile
config.status: creating tools/tests/services/org.freedesktop.ModemManager1.service
config.status: creating introspection/Makefile
config.status: creating introspection/tests/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating docs/man/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/api/Makefile
config.status: creating docs/reference/api/version.xml
config.status: creating docs/reference/libmm-glib/Makefile
config.status: creating docs/reference/libmm-glib/version.xml
config.status: creating libmm-glib/Makefile
config.status: creating libmm-glib/generated/Makefile
config.status: creating libmm-glib/generated/tests/Makefile
config.status: creating libmm-glib/tests/Makefile
config.status: creating vapi/Makefile
config.status: creating cli/Makefile
config.status: creating examples/Makefile
config.status: creating examples/modem-watcher-python/Makefile
config.status: creating examples/modem-watcher-javascript/Makefile
config.status: creating examples/sms-python/Makefile
config.status: creating examples/network-scan-python/Makefile
config.status: creating examples/sms-c/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
ModemManager 1.20.2
==============================================
Build:
compiler: /usr/bin/gcc
cflags: -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -std=gnu89
ldflags: -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1
warn cflags: -fno-strict-aliasing
warn ldflags: -Wl,--no-as-needed
maintainer mode: yes
release: yes
tests: yes
System paths:
prefix: /usr
configuration directory: /etc/ModemManager
D-Bus system directory: /etc/dbus-1/system.d
udev base directory: /usr/lib/udev
systemd unit directory: /usr/lib/systemd/system
Features:
udev: yes
policykit: permissive
mbim: yes
qmi: yes
qrtr: no
systemd suspend/resume: yes
powerd suspend/resume: no
systemd journal: yes
at command via dbus: no
Shared utils:
icera: yes
sierra: yes
option: yes
novatel: yes
xmm: yes
telit: yes
foxconn: yes
Plugins:
generic: yes
altair lte: yes
anydata: yes
broadmobi: yes
cinterion: yes
dell: yes
dlink: yes
fibocom: yes
foxconn: yes
gosuncn: yes
haier: yes
huawei: yes
iridium: yes
linktop: yes
longcheer: yes
mbm: yes
motorola: yes
mtk: yes
nokia: yes
nokia icera: yes
novatel: yes
novatel lte: yes
option: yes
option hso: yes
pantech: yes
qcom-soc: yes
quectel: yes
samsung: yes
sierra legacy: yes
sierra: yes
simtech: yes
telit: yes
thuraya: yes
tplink: yes
ublox: yes
via: yes
wavecom: yes
x22x: yes
zte: yes
Miscellaneous:
gobject introspection: yes
vala bindings: yes
documentation: yes
code coverage: no
configure: WARNING: cache variable pkg_cv_GTKDOC_DEPS_VERSION contains a newline
configure: WARNING: cache variable pkg_cv_LIBMM_GLIB_VERSION contains a newline
configure: WARNING: cache variable pkg_cv_MMCLI_VERSION contains a newline
and build fails wiith:
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ModemManager-1.20.2/src'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGINDIR=\"/usr/lib64/ModemManager\" -DFCCUNLOCKDIRPACKAGE=\"/usr/lib64/ModemManager/fcc-unlock.d\" -DFCCUNLOCKDIRUSER=\"/etc/ModemManager/fcc-unlock.d\" -DCONNECTIONDIRPACKAGE=\"/usr/lib64/ModemManager/connection.d\" -DCONNECTIONDIRUSER=\"/etc/ModemManager/connection.d\" -DMM_COMPILATION -fno-strict-aliasing -I/usr/include/gio-unix-2.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_DISABLE_DEPRECATION_WARNINGS -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I.. -I../include -I../include -I../libqcdm/src -I../libmm-glib -I../libmm-glib/generated -I../libmm-glib/generated/tests -I./kerneldevice -I/usr/include/libqmi-glib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmbim-glib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -std=gnu89 -c -o ModemManager-main.o `test -f 'main.c' || echo './'`main.c
In file included from /usr/include/libqmi-glib/libqmi-glib.h:32,
from mm-port-qmi.h:25,
from mm-base-modem.h:40,
from mm-device.h:23,
from mm-filter.h:22,
from mm-base-manager.h:26,
from main.c:31:
/usr/include/libqmi-glib/qmi-device.h:40:11: fatal error: libqrtr-glib.h: No such file or directory
40 | # include <libqrtr-glib.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.