ModemManager 1.14.2 Setup - undefined symbol error and/or '' was moved error

Dani Anderson dani.anderson at
Wed Oct 21 15:59:04 UTC 2020

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

this was done using the command:

./configure -prefix=/usr/ --libdir=/usr/lib/


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


sudo make install

This also seemed to complete successfully, with no obvious errors or warnings. However, when running
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


Starting with libmbmim.

While this seems to succeed, there were some warnings of note:

libtool: install: /usr/bin/install -c .libs/ /usr/lib/x86_64-linux-gnu/

libtool: install: (cd /usr/lib/x86_64-linux-gnu && { ln -s -f || { rm -f && ln -s; }; })

libtool: install: (cd /usr/lib/x86_64-linux-gnu && { ln -s -f || { rm -f && ln -s; }; })

libtool: install: /usr/bin/install -c .libs/libmbim-glib.lai /usr/lib/x86_64-linux-gnu/

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/' 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
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' 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/' was moved.
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' was moved.
CCLD     test-message
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' was moved.
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' 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/' was moved.
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' was moved.
CC       test_compat_utils-test-compat-utils.o
CCLD     test-compat-utils
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' was moved.
libtool: warning: library '/usr/lib/x86_64-linux-gnu/' 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
/usr/bin/grep: /usr/lib/ No such file or directory
/usr/bin/sed: can't read /usr/lib/ No such file or directory
libtool:   error: '/usr/lib/' is not a valid libtool archive
make[4]: * [Makefile:974:] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ModemManager-devel mailing list