Undefined symbol when running gnuradio-companion with hackrf

Hi folks,

I managed to get pybombs to install and build on my Fedora 19 system
with hackrf and gr-osmosdr.

However, when I run with an osmocom source and the HackRF connected I
get the following error. Has anyone seen this? What causes it?

Executing: “/home/rsharpe/pybombs/top_block.py”

Traceback (most recent call last):
File “/home/rsharpe/pybombs/top_block.py”, line 17, in
import osmosdr
File
“/home/rsharpe/target/lib64/python2.7/site-packages/osmosdr/init.py”,
line 26, in
from osmosdr_swig import *
File
“/home/rsharpe/target/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py”,
line 26, in
_osmosdr_swig = swig_import_helper()
File
“/home/rsharpe/target/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py”,
line 22, in swig_import_helper
_mod = imp.load_module(’_osmosdr_swig’, fp, pathname, description)
ImportError:
/home/rsharpe/target/lib64/libgnuradio-osmosdr-0.1.4git.so.0.0.0:
undefined symbol: _ZN2gr6blocks8throttle4makeEmdb

Done


Regards,
Richard Sharpe
(何以解憂?唯有杜康。–曹操)

On Fri, Sep 5, 2014 at 8:45 PM, Richard Sharpe
[email protected] wrote:

Traceback (most recent call last):
_mod = imp.load_module(‘_osmosdr_swig’, fp, pathname, description)
ImportError: /home/rsharpe/target/lib64/libgnuradio-osmosdr-0.1.4git.so.0.0.0:
undefined symbol: _ZN2gr6blocks8throttle4makeEmdb

Done

Found the problem, although it tool a while. I had the gnuradio RPMs
on the system as well, and ldd showed me the problem:

[rsharpe@localhost src]$ ldd
/home/rsharpe/target/lib64/libgnuradio-osmosdr-0.1.4git.so.0.0.0 |
more
linux-vdso.so.1 => (0x00007fff0a5fe000)
libboost_thread-mt.so.1.53.0 => /lib64/libboost_thread-mt.so.1.53.0 (0x0
0007f543fe6f000)
libboost_system-mt.so.1.53.0 => /lib64/libboost_system-mt.so.1.53.0 (0x0
0007f543fc6a000)
libgnuradio-runtime-3.7.6git.so.0.0.0 => /home/rsharpe/target/lib64/libg
nuradio-runtime-3.7.6git.so.0.0.0 (0x00007f543f996000)
libgnuradio-pmt-3.7.6git.so.0.0.0 => /home/rsharpe/target/lib64/libgnura
dio-pmt-3.7.6git.so.0.0.0 (0x00007f543f74e000)
libgnuradio-blocks-3.6.5.so.0.0.0 => /lib64/libgnuradio-blocks-3.6.5.so.
0.0.0 (0x00007f543f36c000)
----------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libgnuradio-iqbalance.so => /home/rsharpe/target/lib64/libgnuradio-iqbal
ance.so (0x00007f543f157000)
libosmosdr.so.0 => /home/rsharpe/target/lib/libosmosdr.so.0 (0x00007f543
ef52000)

The library is being picked up from the wrong place. That library does
not have the symbol that the more recent one does.


Regards,
Richard Sharpe
(何以解憂?唯有杜康。–曹操)