# Undefined symbol when running gnuradio-companion with hackrf

**URL:** <https://www.ruby-forum.com/t/undefined-symbol-when-running-gnuradio-companion-with-hackrf/231919>\
**Category:** GNU Radio\
**Created:** [September 6, 2014, 6:11am UTC](https://www.ruby-forum.com/t/undefined-symbol-when-running-gnuradio-companion-with-hackrf/231919 "2014-09-06T06:11:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 6, 2014, 6:11am UTC](https://www.ruby-forum.com/t/undefined-symbol-when-running-gnuradio-companion-with-hackrf/231919/1 "2014-09-06T06:11:02Z")

</div>

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  
(何以解憂？唯有杜康。–曹操)

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 6, 2014, 8:55pm UTC](https://www.ruby-forum.com/t/undefined-symbol-when-running-gnuradio-companion-with-hackrf/231919/2 "2014-09-06T20:55:39Z")

</div>

On Fri, Sep 5, 2014 at 8:45 PM, Richard Sharpe  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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  
(何以解憂？唯有杜康。–曹操)
