Re: ModemManager 1.14.2 Setup - undefined symbol: mm_bearer_stats_get_failed_attempts
Aleksander Morgado
aleksander at aleksander.es
Tue Sep 22 10:02:53 UTC 2020
Hey Federico,
> I am using two 5G Modems for a project that I need to set up. I managed to have a connection with them using the ModemManager package but it seems that only versions above 1.14 are supporting 5G features so I decided to install them. I installed the following from source in that order:
>
>
> libmbim-1.24.2
Please build and install libmbim like this:
$ ./configure --prefix=/usr && make && sudo make install
>
> libqmi-1.26.4
Please build and install libqmi like this:
$ ./configure --prefix=/usr && make && sudo make install
>
> ModemManager-1.14.2
>
Please build and install MM like this:
$ ./configure --prefix=/usr && make && sudo make install
BUT, if you're using Ubuntu or Debian add the following to all the
configure commands above in addition to --prefix:
--libdir=/usr/lib/x86_64-linux-gnu/
>
> I tried to install ModemManager with and without --prefix=/usr as I saw in another post but I still didn´t manage to make it work. When I write in terminal ModemManager I get the following message:
>
>
> ModemManager: symbol lookup error: ModemManager: undefined symbol: mm_bearer_stats_get_failed_attempts
>
This looks like the ModemManager process attempting to load libmm-glib
from the wrong place. This may be because you installed the library in
/usr/lib while the system libraries are first looked up in
/usr/lib/x86_64-linux-gnu/ (as in the Debian/Ubuntu case referred
above).
>
> Before that I also got a message when I execute ModemManager that said /usr/lib/libqmi-glib.so.5 could not be find in that directory. I copied that files in the /usr/lib directory and then I got the mm_bearer_stats_get_failed_attempts error.
This kind of manual copying libs here and there to attempt to make it
work is not the way forward :D
Also, remember, don't run "make install" multiple times in multiple
different prefixes. If you configured without prefix and you did a
make install, everything would have been installed in /usr/local. If
you want to test configuring with prefix, you should better "sudo make
uninstall" the previous build to clean everything that you had
installed, and only then restart re-configuring and building. A lot of
people don't know about "make uninstall" and it's really handy to
avoid having tons of different libraries and programs forgotten out
there in your filesystem.
>
>
> If someone could give me a hand on how to come forward with this it would be really appreciated.
>
Let me know if those things helped.
Cheers!
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list