# Bfile sink base undefined symbol error

**URL:** <https://www.ruby-forum.com/t/bfile-sink-base-undefined-symbol-error/242113>\
**Category:** GNU Radio\
**Created:** [May 28, 2015, 1:25pm UTC](https://www.ruby-forum.com/t/bfile-sink-base-undefined-symbol-error/242113 "2015-05-28T13:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 28, 2015, 1:25pm UTC](https://www.ruby-forum.com/t/bfile-sink-base-undefined-symbol-error/242113/1 "2015-05-28T13:25:09Z")

</div>

Hi all guys,

I encounter following error when running my test:

ImportError: /usr/local/lib/libgnuradio-TPMS.so: undefined symbol:  
\_ZN2gr6blocks14file\_sink\_baseC2EPKcb

There was a similar problem explained here:

> <https://stackoverflow.com/questions/28859517/gnuradio-importerror-undefined-symbol>

I use gnuradio 3.6.5.1.  
After doing suggested c++filter I got:  
gr::blocks::file\_sink\_base::file\_sink\_base(char const\*, bool)

And yes, one of my blocks is derived from file sink base class in the  
similar way as it was donein default gnuradio file sink:

class RDK\_API file\_sink\_lim\_b : virtual public gr\_sync\_block,  
virtual public  
blocks::file\_sink\_base

In the suggested solution,the guy sugest adding extra lines in cmake  
file,  
which I did:

set(GR\_REQUIRED\_COMPONENTS BLOCKS)  
find\_package(Gnuradio “3.6.5.1”)

later  
${GNURADIO\_ALL\_INCLUDE\_DIRS}

and  
${GNURADIO\_ALL\_LIBRARIES}

Then, after running cmake in my build folder, it can be seen that  
everything was found:  
Checking for GNU Radio Module: BLOCKS

- INCLUDES=/usr/local/include/gnuradio
- LIBS=/usr/local/lib/libgnuradio-blocks.so  
GNURADIO\_BLOCKS\_FOUND = TRUE

But still I have the same error. What else could be done. If worth of  
mentioning, my module is made on RHEL6 maschine, while this error  
occures  
on ubuntu after copying my source files (basically everything except  
build  
folder)

Thanx
