grgsm / Warning: failed to XInitThreads() / make install error

245 views
Skip to first unread message

josefh...@hushmail.com

unread,
Feb 22, 2022, 10:19:55 AM2/22/22
to gr-...@googlegroups.com
Hello list

had to reinstall grgsm to a newly installed Ubuntu 1804:( This time I get an
error during "sudo make install" and probably as a result of this, after executing
"grgsm_livemon -h" as well...

My idea is that I tried to install and compile it exactly as I did it the first time
a month ago... But I not totally sure if this is the case as well with the path.....


Any ideas are appreciated very much!

Joe





test@ub1804-gsm:~/gr-gsm-master/build$ grgsm_livemon -h
Warning: failed to XInitThreads()
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

Usage: grgsm_livemon: [options]

Interactive monitor of a single C0 channel with analysis performed by
Wireshark (command to run wireshark: sudo wireshark -k -f udp -Y gsmtap -i lo)

Options:
-h, --help show this help message and exit



***************
test@ub1804-gsm:~/gr-gsm-master/build$ sudo make install
[sudo] password for test:
Scanning dependencies of target grgsm


[ 91%] Shebangin grgsm_livemon
[ 92%] Generating grgsm_livemon_headless
Gtk-Message: 11:22:43.420: Failed to load module "canberra-gtk-module"
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown




***************
test@ub1804-gsm:~$ sudo apt-get install -y \cmake \autoconf \libtool \pkg-config \build-essential \python-docutils \libcppunit-dev \swig \doxygen \liblog4cpp5-dev \python-scipy \python-gtk2 \gnuradio-dev \gr-osmosdr \libosmocore-dev

cd gr-gsm

mkdir build

cd build

cmake ..

mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/

sudo make install




***************
test@ub1604-GSM:~$ export PYTHONPATH=/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages


test@ub1604-GSM:~$ echo $PATH
/home/test/bin:/home/test/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


Nikos Balkanas

unread,
Feb 24, 2022, 1:51:45 AM2/24/22
to josefh...@hushmail.com, gr-...@googlegroups.com
Hi Joe,

Seems you are missing a gtk package.
Type:

> dpkg -l "libcanberra-gtk-module*"
If you don't have it, install libcanberra-gtk-module.

HTH
Nikos
> --
> You received this message because you are subscribed to the Google Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gr-gsm+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/20220222151953.5E0FB80E2D9%40smtp.hushmail.com.

josefh...@hushmail.com

unread,
Feb 26, 2022, 3:11:05 AM2/26/22
to gr-...@googlegroups.com, nbal...@gmail.com
Thank you Nikos for the feedback! It seems that there is still something wrong (pls see error message at the end of this post) ....
Regards,
Joe

test@ub1804-gsm:~$ sudo dpkg -l "libcanberra-gtk-module*"
[sudo] password for test:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un libcanberra-gt <none> <none> (no description available)
test@ub1804-gsm:~$



test@ub1804-gsm:~$ sudo apt-get install libcanberra-gtk-module
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-20 linux-headers-4.15.0-20-generic linux-image-4.15.0-20-generic
linux-modules-4.15.0-20-generic linux-modules-extra-4.15.0-20-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libcanberra-gtk0
The following NEW packages will be installed:
libcanberra-gtk-module libcanberra-gtk0
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 17,9 kB of archives.
After this operation, 84,0 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libcanberra-gtk0 amd64 0.30-5ubuntu1 [7.864 B]
Get:2 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libcanberra-gtk-module amd64 0.30-5ubuntu1 [10,0 kB]
Fetched 17,9 kB in 0s (58,2 kB/s)
Selecting previously unselected package libcanberra-gtk0:amd64.
(Reading database ... 235610 files and directories currently installed.)
Preparing to unpack .../libcanberra-gtk0_0.30-5ubuntu1_amd64.deb ...
Unpacking libcanberra-gtk0:amd64 (0.30-5ubuntu1) ...
Selecting previously unselected package libcanberra-gtk-module:amd64.
Preparing to unpack .../libcanberra-gtk-module_0.30-5ubuntu1_amd64.deb ...
Unpacking libcanberra-gtk-module:amd64 (0.30-5ubuntu1) ...
Setting up libcanberra-gtk0:amd64 (0.30-5ubuntu1) ...
Setting up libcanberra-gtk-module:amd64 (0.30-5ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...




test@ub1804-gsm:~$ grgsm_livemon -h

Nikos Balkanas

unread,
Feb 26, 2022, 6:44:10 AM2/26/22
to josefh...@hushmail.com, gr-...@googlegroups.com
Hi,

Seems livemon can't find libX11.so. Check its path.
Strange. This is a main library. You can't get Ubuntu up without it:(

HTH
Nikos

Abdul wahab

unread,
Feb 26, 2022, 7:23:52 AM2/26/22
to gr-gsm

Hi Nikos,
Sorry for jumping into the discussion,
"Kindly shed some light on if "GSM frame number and time shown in Wireshark" are assigned by Wireshark locally or these are communicated in GSM packets between BTS and MS"

Nikos Balkanas

unread,
Feb 26, 2022, 10:41:28 PM2/26/22
to Abdul wahab, gr-gsm
Hi Abdul,

Wireshark doesn't make up data.
gr-gsm creates the pseudo gsm packets that wireshark displays.
I am not sure if gr-gsm extracts this information from the gsm
packets, or it generates its own,
without checking the code for that.
It would be easier for you to check it. If when you restart livemon it
always starts from frame #1, then gr-gsm assigns them.
Else it reads them off the packets.
Important data like time slots or msg types and data, are always
extracted from gsm data.

HTH
Nikos
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/0c2afa15-05cb-436f-bfb3-2230ec1a2f05n%40googlegroups.com.

josefh...@hushmail.com

unread,
Mar 1, 2022, 12:26:11 PM3/1/22
to gr-...@googlegroups.com, nbal...@gmail.com
Hello and thank's in advance!
Joe

->>Seems livemon can't find libX11.so. Check its path.
test@ub1804-gsm:~$ locate libX11.so
/snap/gnome-3-26-1604/104/usr/lib/x86_64-linux-gnu/libX11.so.6
/snap/gnome-3-26-1604/104/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/libX11.so.6
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
/snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libX11.so
/snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libX11.so.6
/snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
/snap/gnome-3-38-2004/99/usr/lib/x86_64-linux-gnu/libX11.so
/snap/gnome-3-38-2004/99/usr/lib/x86_64-linux-gnu/libX11.so.6
/snap/gnome-3-38-2004/99/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
/snap/gnome-logs/25/usr/lib/x86_64-linux-gnu/libX11.so.6
/usr/lib/x86_64-linux-gnu/libX11.so.6
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0

Nikos Balkanas

unread,
Mar 2, 2022, 4:59:51 AM3/2/22
to josefh...@hushmail.com, gr-...@googlegroups.com
Hi,

You seem to be missing a link.
> cd /usr/lib/x86_64_linux-gnu/
> sudo ln -s libX11.so.6 libX11.so

and try again. If it doesn't work go to /etc/ld.conf and check if
x86_64-linux-gnu is in there:)

HTH
Nikos
Reply all
Reply to author
Forward
0 new messages