# Error while compiling gnuradio 3.4.0

**URL:** <https://www.ruby-forum.com/t/error-while-compiling-gnuradio-3-4-0/227193>\
**Category:** GNU Radio\
**Created:** [March 7, 2013, 12:14am UTC](https://www.ruby-forum.com/t/error-while-compiling-gnuradio-3-4-0/227193 "2013-03-07T00:14:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amabdelsalam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/958977/32.png) [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Post date:** [March 7, 2013, 12:14am UTC](https://www.ruby-forum.com/t/error-while-compiling-gnuradio-3-4-0/227193/1 "2013-03-07T00:14:12Z")

</div>

HI all,  
I am trying to compiles gnuradio 3.4.0 with an old boost library and  
compilation fails with these error.  
I found an old thread that says that problem is linking policy  
[http://lists.gnu.org/archive/html/discuss-gnuradio/2011-03/msg00465.html](http://lists.gnu.org/archive/html/discuss-gnuradio/2011-03/msg00465.html)  
any ideas ?  
Thanks

libtool: link: g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o  
.libs/benchmark\_dotprod\_fff benchmark\_dotprod\_fff.o  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so  
-lboost\_filesystem /usr/lib/i386-linux-gnu/libltdl.so -pthread  
/usr/bin/ld: warning: libboost\_thread.so.1.40.0, needed by  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0, not found (try  
using -rpath or -rpath-link)  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to `boost::thread::start_thread()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::this\_thread::interruption\_point()’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to `typeinfo for boost::lock_error' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::thread\_resource\_error::~thread\_resource\_error()’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to `boost::thread_resource_error::thread_resource_error()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::lock\_error::~lock\_error()’  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to  
`boost::this_thread::disable_interruption::~disable_interruption()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `typeinfo for boost::thread\_resource\_error’  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to `typeinfo for boost::detail::thread_data_base' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::detail::get\_current\_thread\_data()’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to `boost::this_thread::interruption_requested()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::lock\_error::lock\_error()’  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to `boost::detail::thread_data_base::~thread_data_base()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::this\_thread::sleep(boost::posix\_time::ptime  
const&)’  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to `boost::thread::~thread()' ~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined reference to `boost:🧵:interrupt()’  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to `boost::thread::join()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::system::get\_system\_category()’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to  
`boost::filesystem::detail::status_api(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to `boost::filesystem::detail::create\_directory\_api(std::basic\_string\<char,  
std::char\_traits, std::allocator \> const&)’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to `boost::system::get_generic_category()' ~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined reference to `vtable for boost::detail::thread\_data\_base’  
~/gnuradio-3.4.0/gruel/src/lib/.libs/libgruel-3.4.0.so.0: undefined  
reference to  
`boost::this_thread::disable_interruption::disable_interruption()' collect2: ld returned 1 exit status make[7]: *** [benchmark_dotprod_fff] Error 1 make[7]: Leaving directory `~/gnuradio-3.4.0/gnuradio-core/src/tests’  
make[6]: \*\*\* [all] Error 2  
make[6]: Leaving directory `~/gnuradio-3.4.0/gnuradio-core/src/tests' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `~/gnuradio-3.4.0/gnuradio-core/src’  
make[4]: \*\*\* [all] Error 2  
make[4]: Leaving directory `~/gnuradio-3.4.0/gnuradio-core/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `~/gnuradio-3.4.0/gnuradio-core’

---

<div class="post-metadata">

**Author:** ![amabdelsalam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/958977/32.png) [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Post date:** [March 7, 2013, 12:18am UTC](https://www.ruby-forum.com/t/error-while-compiling-gnuradio-3-4-0/227193/2 "2013-03-07T00:18:18Z")

</div>

On Wed, Mar 6, 2013 at 6:12 PM, Ahmed A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> HI all,  
> I am trying to compiles gnuradio 3.4.0 with an old boost library and  
> compilation fails with these error.  
> I found an old thread that says that problem is linking policy  
> [[Discuss-gnuradio] build error: test\_gruel.o: undefined reference to sym](http://lists.gnu.org/archive/html/discuss-gnuradio/2011-03/msg00465.html)  
> any ideas ?  
> Thanks

Are you sure you have the Boost threads development library installed  
(Boost is made up of a number of packages, so just having Boost  
doesn’t mean you have all of the necessary ones).

Tom

---

<div class="post-metadata">

**Author:** ![amabdelsalam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/958977/32.png) [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Post date:** [March 7, 2013, 10:55pm UTC](https://www.ruby-forum.com/t/error-while-compiling-gnuradio-3-4-0/227193/3 "2013-03-07T22:55:35Z")

</div>

I had installed all boost packages at /opt/boost\_1\_40\_0/  
here are boost libraries compiled

$ ls  
libboost\_date\_time.a libboost\_math\_c99f.so.1.40.0  
libboost\_prg\_exec\_monitor.so.1.40.0 libboost\_system.a  
libboost\_date\_time.so libboost\_math\_c99l.a  
libboost\_program\_options.a libboost\_system.so  
libboost\_date\_time.so.1.40.0 libboost\_math\_c99l.so  
libboost\_program\_options.so libboost\_system.so.1.40.0  
libboost\_filesystem.a libboost\_math\_c99l.so.1.40.0  
libboost\_program\_options.so.1.40.0 libboost\_test\_exec\_monitor.a  
libboost\_filesystem.so libboost\_math\_c99.so.1.40.0  
libboost\_python.a libboost\_thread.a  
libboost\_filesystem.so.1.40.0 libboost\_math\_tr1.a  
libboost\_python.so libboost\_thread.so  
libboost\_graph.a libboost\_math\_tr1.so  
libboost\_python.so.1.40.0 libboost\_thread.so.1.40.0  
libboost\_graph.so libboost\_math\_tr1f.a  
libboost\_regex.a libboost\_unit\_test\_framework.a  
libboost\_graph.so.1.40.0 libboost\_math\_tr1f.so  
libboost\_regex.so libboost\_unit\_test\_framework.so  
libboost\_iostreams.a libboost\_math\_tr1f.so.1.40.0  
libboost\_regex.so.1.40.0  
libboost\_unit\_test\_framework.so.1.40.0  
libboost\_iostreams.so libboost\_math\_tr1l.a  
libboost\_serialization.a libboost\_wave.a  
libboost\_iostreams.so.1.40.0 libboost\_math\_tr1l.so  
libboost\_serialization.so libboost\_wave.so  
libboost\_math\_c99.a libboost\_math\_tr1l.so.1.40.0  
libboost\_serialization.so.1.40.0 libboost\_wave.so.1.40.0  
libboost\_math\_c99.so libboost\_math\_tr1.so.1.40.0  
libboost\_signals.a libboost\_wserialization.a  
libboost\_math\_c99f.a libboost\_prg\_exec\_monitor.a  
libboost\_signals.so libboost\_wserialization.so  
libboost\_math\_c99f.so libboost\_prg\_exec\_monitor.so  
libboost\_signals.so.1.40.0 libboost\_wserialization.so.1.40.0

and i invoked the configure using  
$ ./configure --enable-usrp --enable-gr-usrp --with-boost=$BOOST\_PREFIX  
I made sure that Makefiles contains /opt/boost\_1\_40\_0/include and link  
to  
/opt/boost\_1\_40\_0/lib

still gives same errors.  
Any Ideas ?
