Hello everyone, We're trying to install ModemManager 1.14.2 on Ubuntu 20.04 (5.4.0-52-generic) and are encountering a few problems.
>From a fresh OS install, all dependencies were retrieved using the typical >sudo apt-get install ... method. We are installing libmbim 1.24.4 from source and libqmi 1.26.4 from source. Following the instructions from this mailing list topic https://lists.freedesktop.org/archives/modemmanager-devel/2020-September/008164.html this was done using the command: ./configure -prefix=/usr/ --libdir=/usr/lib/ Make Sudo make install Following successful completion (no obvious errors or warning), we moved on to installing ModemManager 1.14.2 from source. ./configure -prefix=/usr/ --libdir=/usr/lib/ --with-qmi=yes Make sudo make install This also seemed to complete successfully, with no obvious errors or warnings. However, when running mmcli or sudo ModemManager the resulting output is: ModemManager: symbol lookup error: ModemManager: undefined symbol: mm_bearer_stats_get_total_rx_bytes In an attempt to debug this (as this appeared very similar to the error in the previously linked mailing list entry), we then uninstalled ModemManager, libmbim, and libqmi sudo make uninstall And repeated the installation with --libdir=/usr/lib/x86_64-linux-gnu/ Starting with libmbmim. While this seems to succeed, there were some warnings of note: libtool: install: /usr/bin/install -c .libs/libmbim-glib.so.4.5.0 /usr/lib/x86_64-linux-gnu/libmbim-glib.so.4.5.0 libtool: install: (cd /usr/lib/x86_64-linux-gnu && { ln -s -f libmbim-glib.so.4.5.0 libmbim-glib.so.4 || { rm -f libmbim-glib.so.4 && ln -s libmbim-glib.so.4.5.0 libmbim-glib.so.4; }; }) libtool: install: (cd /usr/lib/x86_64-linux-gnu && { ln -s -f libmbim-glib.so.4.5.0 libmbim-glib.so || { rm -f libmbim-glib.so && ln -s libmbim-glib.so.4.5.0 libmbim-glib.so; }; }) libtool: install: /usr/bin/install -c .libs/libmbim-glib.lai /usr/lib/x86_64-linux-gnu/libmbim-glib.la libtool: install: /usr/bin/install -c .libs/libmbim-glib.a /usr/lib/x86_64-linux-gnu/libmbim-glib.a libtool: install: chmod 644 /usr/lib/x86_64-linux-gnu/libmbim-glib.a libtool: install: ranlib /usr/lib/x86_64-linux-gnu/libmbim-glib.a libtool: warning: remember to run 'libtool --finish /usr/lib' /usr/bin/mkdir -p '/usr/include/libmbim-glib' And also Making install in mbimcli make[2]: Entering directory '/home/nuc/tarbals/libmbim_1.24.4.orig/libmbim-1.24.4/src/mbimcli' make[3]: Entering directory '/home/nuc/tarbals/libmbim_1.24.4.orig/libmbim-1.24.4/src/mbimcli' /usr/bin/mkdir -p '/usr/bin' /bin/bash ../../libtool --mode=install /usr/bin/install -c mbimcli '/usr/bin' libtool: warning: '../../src/libmbim-glib/libmbim-glib.la' has not been installed in '/usr/lib' libtool: install: /usr/bin/install -c .libs/mbimcli /usr/bin/mbimcli When repeating the installation process for libqmi, there were some more warnings, that seem related CC libqmi_glib_la-qmi-proxy.lo CC libqmi_glib_la-qmi-endpoint-mbim.lo CC libqmi_glib_compat_la-qmi-compat.lo CCLD libqmi-glib-compat.la CCLD libqmi-glib.la libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. make[4]: Leaving directory '/home/nuc/tarbals/libqmi_1.26.4.orig/libqmi-1.26.4/src/libqmi-glib' Making all in test make[4]: Entering directory '/home/nuc/tarbals/libqmi_1.26.4.orig/libqmi-1.26.4/src/libqmi-glib/test' CCLD test-utils libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. test-message.o CCLD test-message libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. CC test-fixture.o CC test-port-context.o CC test-generated.o CCLD test-generated libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. CC test_compat_utils-test-compat-utils.o CCLD test-compat-utils libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. libtool: warning: library '/usr/lib/x86_64-linux-gnu/libmbim-glib.la' was moved. Again this seems to succeed as an installation. However, when trying to complete the ModemManager installation, the resulting error during make is: CC mm-helper-enums-types.lo CCLD libhelpers.la /usr/bin/grep: /usr/lib/libmbim-glib.la: No such file or directory /usr/bin/sed: can't read /usr/lib/libmbim-glib.la: No such file or directory libtool: error: '/usr/lib/libmbim-glib.la' is not a valid libtool archive make[4]: * [Makefile:974: libhelpers.la] Error 1 Assumably this fatal error is a result of the previous warnings from the libqmi installation. At this point, I'm afraid we've run out of ideas. Any help or advice appreciated. Best Regards, Dani Anderson University of Strathclyde, Glasgow, Scotland Dept. of Electronic and Electrical Engineering
_______________________________________________ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel