simtrace2-sniff crashes wih undefined symbol: usb_open_claim_interface
Hi all. It is the very first time I see this error. I'm using a fresh Ubuntu 20.04. Any clue? $ simtrace2-sniff simtrace2-sniff: symbol lookup error: simtrace2-sniff: undefined symbol: usb_open_claim_interface $ lsusb | grep Osmo Bus 002 Device 002: ID 1d50:60e3 OpenMoko, Inc. Osmocom SIMtrace 2 Find attached a $ strace simtrace2-sniff output in case it helps. Also attached the list of osmocom and simtrace libraries installed. -- *J. Félix Ontañón* Director of Research and Innovation Pod Group A Giesecke+Devrient Company felix.ontanon@podgroup.com UK: +44 (0)1223 850 900 <+44%201223%20850900> USA: +1 415 707 0500 <+1+415+707+0500> ES: +34 954 050 200 <++34+954+050+200> www.podgroup.com <https://podgroup.com/> [image: Facebook] <https://www.facebook.com/podgroupIoT> [image: Twitter] <https://twitter.com/PodGroup_IoT> [image: LinkedIn] <https://www.linkedin.com/company/podgroup> [image: Instagram] <https://www.instagram.com/podgroup_iot>
Dear Felix, On Fri, Nov 12, 2021 at 06:16:23PM +0100, J. Félix Ontañón wrote:
It is the very first time I see this error. I'm using a fresh Ubuntu 20.04.
Unfortuantely you didn't specify how you installed simtrace2, i.e. where those pacakges listed below originate from:
libosmocodec0_1.4.1_amd64 libosmocodec-doc_1.4.1_all libosmocoding0_1.4.1_amd64 libosmocoding-doc_1.4.1_all libosmocore_1.4.1_amd64 libosmocore16_1.4.1_amd64 libosmocore-dbg_1.4.1_amd64 libosmocore-dev_1.4.1_amd64 libosmocore-doc_1.4.1_all libosmocore-utils_1.4.1_amd64 libosmoctrl0_1.4.1_amd64 libosmoctrl-doc_1.4.1_all libosmogb11_1.4.1_amd64 libosmogb-doc_1.4.1_all libosmogsm15_1.4.1_amd64 libosmogsm-doc_1.4.1_all libosmosim2_1.4.1_amd64 libosmo-simtrace2-0_0.5.2_amd64 libosmo-simtrace2-dev_0.5.2_amd64 libosmousb0_1.4.1_amd64 libosmovty4_1.4.1_amd64 libosmovty-doc_1.4.1_all osmocom-latest_0.0.0_amd64 simtrace2-firmware_0.5.2_all simtrace2-utils_0.5.2_amd64
maybe you have a mixture of distribution-built packages (libosmocroe?) and osmocom-latest (simtrace2?)
$ simtrace2-sniff simtrace2-sniff: symbol lookup error: simtrace2-sniff: undefined symbol: usb_open_claim_interface
This is a function implemented in libosmocore commit
commit d462e3fa7b22b046b1c3d7cb46be5760b6fd308a Author: Harald Welte <laforge@osmocom.org> Date: Sun Dec 15 20:04:51 2019 +0100
i.e. any version of libosmocore >= 1.3.0. The usb support is built automatically unless somebody compiles libosmocore with "./configure --disable-libusb" So in any case, IMHO, this kind of error can only occur if: a) your simtrace2 software was built against a libosmocore with libusb support b) your runtime system has a libosmocore _without_ libusb installed Regards, Harald -- - Harald Welte <laforge@osmocom.org> http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
Hi Harald, you nailed it. The packages were an old custom built with some custom parameters. By just installing the osmocom Ubuntu 20.04 apt repository ( https://download.opensuse.org/repositories/network:/osmocom:/latest/xUbuntu_...) simtrace2 runned perfectly. Thanks. On Sat, 13 Nov 2021 at 09:40, Harald Welte <laforge@osmocom.org> wrote:
Dear Felix,
On Fri, Nov 12, 2021 at 06:16:23PM +0100, J. Félix Ontañón wrote:
It is the very first time I see this error. I'm using a fresh Ubuntu 20.04.
Unfortuantely you didn't specify how you installed simtrace2, i.e. where those pacakges listed below originate from:
libosmocodec0_1.4.1_amd64 libosmocodec-doc_1.4.1_all libosmocoding0_1.4.1_amd64 libosmocoding-doc_1.4.1_all libosmocore_1.4.1_amd64 libosmocore16_1.4.1_amd64 libosmocore-dbg_1.4.1_amd64 libosmocore-dev_1.4.1_amd64 libosmocore-doc_1.4.1_all libosmocore-utils_1.4.1_amd64 libosmoctrl0_1.4.1_amd64 libosmoctrl-doc_1.4.1_all libosmogb11_1.4.1_amd64 libosmogb-doc_1.4.1_all libosmogsm15_1.4.1_amd64 libosmogsm-doc_1.4.1_all libosmosim2_1.4.1_amd64 libosmo-simtrace2-0_0.5.2_amd64 libosmo-simtrace2-dev_0.5.2_amd64 libosmousb0_1.4.1_amd64 libosmovty4_1.4.1_amd64 libosmovty-doc_1.4.1_all osmocom-latest_0.0.0_amd64 simtrace2-firmware_0.5.2_all simtrace2-utils_0.5.2_amd64
maybe you have a mixture of distribution-built packages (libosmocroe?) and osmocom-latest (simtrace2?)
$ simtrace2-sniff simtrace2-sniff: symbol lookup error: simtrace2-sniff: undefined symbol: usb_open_claim_interface
This is a function implemented in libosmocore commit
commit d462e3fa7b22b046b1c3d7cb46be5760b6fd308a Author: Harald Welte <laforge@osmocom.org> Date: Sun Dec 15 20:04:51 2019 +0100
i.e. any version of libosmocore >= 1.3.0. The usb support is built automatically unless somebody compiles libosmocore with "./configure --disable-libusb"
So in any case, IMHO, this kind of error can only occur if:
a) your simtrace2 software was built against a libosmocore with libusb support b) your runtime system has a libosmocore _without_ libusb installed
Regards, Harald -- - Harald Welte <laforge@osmocom.org> http://laforge.gnumonks.org/
============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
participants (2)
-
Harald Welte -
J. Félix Ontañón