AW: ModemManager 1.14.2 Setup - undefined symbol: mm_bearer_stats_get_failed_attempts
Federico Murciano
Federico.Murciano at dai-labor.de
Tue Sep 22 11:45:02 UTC 2020
Hey Aleksander,
I just tried again and now it seems to be correctly installed. Thanks a lot for the clear instructions. I had to change the libmbim ./configure as it was giving me an error that ModemManager could not find it in /usr/lib/. I did:
--libdir=/usr/lib/
instead of
--libdir=/usr/lib/x86_64-linux-gnu/
Now when I started my Modem again, after entering the SIM PIN the modem dissapeared and it could not be find. After some minutes it appeared again but with a different number device ( it changed from 0 to 1). I did already the firmware upgrade so it should not be happening. Some tips for that? I managed to ping a website through the interface but then it happened again that the modem couldnt be find and after a while it was active in device number 3.
Thanks in advance,
Best regards,
Federico
This is the terminal output:
edge1 at dai-edge1:~/Modem-Install/ModemManager-1.14.2$ sudo mmcli -i 0
-----------------------
General | dbus path: /org/freedesktop/ModemManager1/SIM/0
-----------------------
Properties | iccid: 89490200001644703376
edge1 at dai-edge1:~/Modem-Install/ModemManager-1.14.2$ sudo mmcli -i 0 --pin=4927
successfully sent PIN code to the SIM
edge1 at dai-edge1:~/Modem-Install/ModemManager-1.14.2$ sudo mmcli -m 0 --enable --timeout=120
error: couldn't find modem
edge1 at dai-edge1:~/Modem-Install/ModemManager-1.14.2$ sudo mmcli -L
No modems were found
edge1 at dai-edge1:~/Modem-Install/ModemManager-1.14.2$ sudo mmcli -L
/org/freedesktop/ModemManager1/Modem/1 [Quectel] RM500QGL_VH
--
Federico Murciano
B.Sc. Telecommunications Engineer
federico.murciano at dai-labor.de
Tel. +49 (0) 30/314 -74 025
Future in touch.
DAI-Labor
Technische Universität Berlin
Fakultät IV – Elektrotechnik & Informatik Sekretariat TEL 14 Ernst-Reuter-Platz 7
10587 Berlin, Germany
www.dai-labor.de
DAI-Labor - Distributed Artificial Intelligence Laboratory Chief Executive Director: Prof. Dr. Dr. h.c. Sahin Albayrak
________________________________________
Von: Aleksander Morgado <aleksander at aleksander.es>
Gesendet: Dienstag, 22. September 2020 12:02
An: Federico Murciano
Cc: modemmanager-devel at lists.freedesktop.org
Betreff: Re: ModemManager 1.14.2 Setup - undefined symbol: mm_bearer_stats_get_failed_attempts
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