[Debian-on-mobile-maintainers] Bug#1086284: libmbim: FTBFS: undefined reference to `mbim_access_media_type_get_type'
Evangelos Ribeiro Tzaras
devrtz at fortysixandtwo.eu
Thu Oct 31 00:23:17 GMT 2024
Hi Santiago and thank you for your report!
I've condensed the relevant parts of the log down
and should hopefully soon find some time to look at it.
On Tue, 2024-10-29 at 19:46 +0100, Santiago Vila wrote:
> Package: src:libmbim
> Version: 1.30.0-1
> Severity: serious
> Tags: ftbfs
>
> Dear maintainer:
>
> During a rebuild of all packages in unstable, your package failed to
> build:
>
> ---------------------------------------------------------------------
> -----------
> [...]
> debian/rules binary
> dh binary --with gir
> dh_update_autotools_config
> dh_autoreconf
> debian/rules override_dh_auto_configure
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_configure -- -Ddefault_library=both -Dgtk_doc=true
> cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb
> LC_ALL=C.UTF-8 meson setup .. --wrap-mode=nodownload --
> buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> --libdir=lib/x86_64-linux-gnu -Dpython.bytecompile=-1 -
> Ddefault_library=both -Dgtk_doc=true
> The Meson build system
> Version: 1.6.0
> Source dir: /<<PKGBUILDDIR>>
> Build dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
> Build type: native build
> Project name: libmbim
> Project version: 1.30.0
[...]
The doc build is failing to find a couple of symbols:
>
> [122/124] /usr/bin/meson --internal gtkdoc --
> sourcedir=/<<PKGBUILDDIR>> --builddir=/<<PKGBUILDDIR>>/obj-x86_64-
> linux-gnu --subdir=docs/reference/libmbim-glib --
> headerdirs=/<<PKGBUILDDIR>>/src/libmbim-
> glib/generated/.@@/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-
> glib/generated/.@@/<<PKGBUILDDIR>>/src/libmbim-
> glib/.@@/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-glib/. --
> mainfile=libmbim-glib-docs.xml --modulename=libmbim-glib --
> moduleversion= --mode=auto --gtkdoc-scan=/usr/bin/gtkdoc-scan --
> gtkdoc-scangobj=/usr/bin/gtkdoc-scangobj --gtkdoc-
> mkdb=/usr/bin/gtkdoc-mkdb --gtkdoc-mkhtml=/usr/bin/gtkdoc-mkhtml --
> gtkdoc-fixxref=/usr/bin/gtkdoc-fixxref --namespace=mbim --htmlargs=
> '--scanargs=--rebuild-types@@--deprecated-
> guards="MBIM_DISABLE_DEPRECATED"' --scanobjsargs= --gobjects-types-
> file=/<<PKGBUILDDIR>>/docs/reference/libmbim-glib/libmbim-glib.types
> --fixxrefargs=--html-dir=/usr/share/gtk-doc/html/libmbim-glib@@--
> extra-dir=/usr/share/gtk-doc/html/glib@@--extra-dir=/usr/share/gtk-
> doc/html/gio --mkdbargs= --html-assets= --content-
> files=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/docs/reference/libmbim-
> glib/libmbim-glib-sections.txt@@/<<PKGBUILDDIR>>/obj-x86_64-linux-
> gnu/docs/reference/libmbim-glib/version.xml --expand-content-files= -
> -ignore-headers=mbim-helpers.h@@mbim-helpers-netlink.h@@mbim-message-
> private.h@@mbim-net-port-manager.h@@mbim-net-port-manager-
> wdm.h@@mbim-net-port-manager-wwan.h@@wwan.h --installdir= --cc=cc --
> ld=cc '--cflags=-I/<<PKGBUILDDIR>>/src/libmbim-glib/. -
> I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-glib/. -
> I/<<PKGBUILDDIR>>/src/libmbim-glib/generated/. -
> I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-glib/generated/. -
> DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -
> DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -
> DGLIB_DISABLE_DEPRECATION_WARNINGS -I/usr/include/glib-2.0 -
> I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6
> -pthread -I/usr/include/libmount -I/usr/include/blkid -
> I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/. -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-
> map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-
> protection -Wformat -Werror=format-security -fcf-protection -Wdate-
> time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -Wno-unused-parameter -Wno-
> cast-function-type -Wno-packed' '--ldflags=-lglib-2.0 -lgio-2.0 -
> lgobject-2.0 -Wl,-z,relro -Wl,-z,now -g -O2 -Werror=implicit-
> function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
> protector-strong -fstack-clash-protection -Wformat -Werror=format-
> security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2'
> FAILED: docs/reference/libmbim-glib/libmbim-glib-decl.txt
> /usr/bin/meson --internal gtkdoc --sourcedir=/<<PKGBUILDDIR>> --
> builddir=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --
> subdir=docs/reference/libmbim-glib --
> headerdirs=/<<PKGBUILDDIR>>/src/libmbim-
> glib/generated/.@@/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-
> glib/generated/.@@/<<PKGBUILDDIR>>/src/libmbim-
> glib/.@@/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-glib/. --
> mainfile=libmbim-glib-docs.xml --modulename=libmbim-glib --
> moduleversion= --mode=auto --gtkdoc-scan=/usr/bin/gtkdoc-scan --
> gtkdoc-scangobj=/usr/bin/gtkdoc-scangobj --gtkdoc-
> mkdb=/usr/bin/gtkdoc-mkdb --gtkdoc-mkhtml=/usr/bin/gtkdoc-mkhtml --
> gtkdoc-fixxref=/usr/bin/gtkdoc-fixxref --namespace=mbim --htmlargs=
> '--scanargs=--rebuild-types@@--deprecated-
> guards="MBIM_DISABLE_DEPRECATED"' --scanobjsargs= --gobjects-types-
> file=/<<PKGBUILDDIR>>/docs/reference/libmbim-glib/libmbim-glib.types
> --fixxrefargs=--html-dir=/usr/share/gtk-doc/html/libmbim-glib@@--
> extra-dir=/usr/share/gtk-doc/html/glib@@--extra-dir=/usr/share/gtk-
> doc/html/gio --mkdbargs= --html-assets= --content-
> files=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/docs/reference/libmbim-
> glib/libmbim-glib-sections.txt@@/<<PKGBUILDDIR>>/obj-x86_64-linux-
> gnu/docs/reference/libmbim-glib/version.xml --expand-content-files= -
> -ignore-headers=mbim-helpers.h@@mbim-helpers-netlink.h@@mbim-message-
> private.h@@mbim-net-port-manager.h@@mbim-net-port-manager-
> wdm.h@@mbim-net-port-manager-wwan.h@@wwan.h --installdir= --cc=cc --
> ld=cc '--cflags=-I/<<PKGBUILDDIR>>/src/libmbim-glib/. -
> I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-glib/. -
> I/<<PKGBUILDDIR>>/src/libmbim-glib/generated/. -
> I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-glib/generated/. -
> DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -
> DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -
> DGLIB_DISABLE_DEPRECATION_WARNINGS -I/usr/include/glib-2.0 -
> I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6
> -pthread -I/usr/include/libmount -I/usr/include/blkid -
> I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/. -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-
> map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-
> protection -Wformat -Werror=format-security -fcf-protection -Wdate-
> time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -Wno-unused-parameter -Wno-
> cast-function-type -Wno-packed' '--ldflags=-lglib-2.0 -lgio-2.0 -
> lgobject-2.0 -Wl,-z,relro -Wl,-z,now -g -O2 -Werror=implicit-
> function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
> protector-strong -fstack-clash-protection -Wformat -Werror=format-
> security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2'
> Building documentation for libmbim-glib
> ERROR: Error in gtkdoc helper script:
>
> ERROR: ['/usr/bin/gtkdoc-scangobj', '--types=/<<PKGBUILDDIR>>/obj-
> x86_64-linux-gnu/docs/reference/libmbim-glib/libmbim-glib.types', '--
> module=libmbim-glib', '--run=', '--cflags=-
> I/<<PKGBUILDDIR>>/src/libmbim-glib/. -I/<<PKGBUILDDIR>>/obj-x86_64-
> linux-gnu/src/libmbim-glib/. -I/<<PKGBUILDDIR>>/src/libmbim-
> glib/generated/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libmbim-
> glib/generated/. -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -
> DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -
> DGLIB_DISABLE_DEPRECATION_WARNINGS -I/usr/include/glib-2.0 -
> I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6
> -pthread -I/usr/include/libmount -I/usr/include/blkid -
> I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/. -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-
> map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-
> protection -Wformat -Werror=format-security -fcf-protection -Wdate-
> time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -Wno-unused-parameter -Wno-
> cast-function-type -Wno-packed', '--ldflags=-lglib-2.0 -lgio-2.0 -
> lgobject-2.0 -Wl,-z,relro -Wl,-z,now -g -O2 -Werror=implicit-
> function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
> protector-strong -fstack-clash-protection -Wformat -Werror=format-
> security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2', '--cc=cc',
> '--ld=cc', '--output-dir=/<<PKGBUILDDIR>>/obj-x86_64-linux-
> gnu/docs/reference/libmbim-glib'] failed with status 1
> /usr/bin/ld: libmbim-glib-scan.o: in function `get_object_types':
> ./obj-x86_64-linux-gnu/./obj-x86_64-linux-gnu/libmbim-glib-
> scan.c:162:(.text.startup+0x30): undefined reference to
> `mbim_access_media_type_get_type'
> /usr/bin/ld: ./obj-x86_64-linux-gnu/./obj-x86_64-linux-gnu/libmbim-
> glib-scan.c:163:(.text.startup+0x3c): undefined reference to
> `mbim_activation_command_get_type'
> /usr/bin/ld: ./obj-x86_64-linux-gnu/./obj-x86_64-linux-gnu/libmbim-
> glib-scan.c:164:(.text.startup+0x48): undefined reference to
> `mbim_activation_state_get_type'
>
[...]
I have recently workeed on gi-docgen things upstream for chatty,
so I'm reasonably sure that I can look into this issue soon.
> ninja: build stopped: subcommand failed.
> dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja
> -j1 -v returned exit code 1
> make: *** [debian/rules:7: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess returned
> exit status 2
> ---------------------------------------------------------------------
> -----------
I will try reproducing this locally.
--
Cheers,
Evangelos
PGP: B938 6554 B7DD 266B CB8E 29A9 90F0 C9B1 8A6B 4A19
More information about the Debian-on-mobile-maintainers
mailing list