# Error building gnuradio 3.4.0

**URL:** <https://www.ruby-forum.com/t/error-building-gnuradio-3-4-0/227033>\
**Category:** GNU Radio\
**Created:** [March 1, 2013, 6:43am UTC](https://www.ruby-forum.com/t/error-building-gnuradio-3-4-0/227033 "2013-03-01T06:43:41Z")\
**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 1, 2013, 6:43am UTC](https://www.ruby-forum.com/t/error-building-gnuradio-3-4-0/227033/1 "2013-03-01T06:43:41Z")

</div>

Hi,  
I am trying to build old version of gnuradio 3.4.0 on ubuntu 12.04 but i  
keep getting these errors.

libtool: link: g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o  
.libs/usrp\_rx\_cfile usrp\_rx\_cfile.o  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so  
~/gnuradio-3.4.0/usrp/host/lib/.libs/libusrp.so  
…/…/gr-usrp/src/.libs/libgnuradio-usrp.so -L/usr/lib  
-lboost\_program\_options-mt /usr/lib/i386-linux-gnu/libltdl.so -pthread  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to  
`boost::filesystem3::detail::create_directory(boost::filesystem3::path const&, boost::system::error_code*)' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to`boost::filesystem3::path::operator/=(boost::filesystem3::path  
const&)’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to `boost::system::system_category()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to`boost::filesystem3::detail::status(boost::filesystem3::path  
const&, boost::system::error\_code\*)’  
~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so:  
undefined  
reference to `boost::filesystem3::path::wchar_t_codecvt_facet()' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to`boost::system::generic\_category()’  
collect2: ld returned 1 exit status  
make[5]: \*\*\* [usrp\_rx\_cfile] Error 1  
make[5]: Leaving directory `~/gnuradio-3.4.0/gr-usrp/apps' make[4]: *** [all] Error 2 make[4]: Leaving directory`~/gnuradio-3.4.0/gr-usrp/apps’  
make[3]: \*\*\* [all-recursive] Error 1  
make[3]: Leaving directory `~/gnuradio-3.4.0/gr-usrp' make[2]: *** [all] Error 2 make[2]: Leaving directory`~/gnuradio-3.4.0/gr-usrp’  
make[1]: \*\*\* [all-recursive] Error 1  
make[1]: Leaving directory `~/gnuradio-3.4.0’  
make: \*\*\* [all] Error 2

according to an old thread, old gnuradio has to be linked to older  
version  
of boost so i compiled boost 1.40.0  
and used it to build gnuradio.but i got same errors again.

How to fix this error?

---

<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 1, 2013, 3:12pm UTC](https://www.ruby-forum.com/t/error-building-gnuradio-3-4-0/227033/2 "2013-03-01T15:12:35Z")

</div>

On Fri, Mar 1, 2013 at 12:42 AM, Ahmed A.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined  
> const&, boost::system::error\_code\*)’  
> make[3]: Leaving directory `~/gnuradio-3.4.0/gr-usrp’
> 
> How to fix this error?

Make sure you do a ‘make clean’ and then reconfigure now that you have  
the different version of Boost installed. Make sure that the configure  
scripts are actually finding the right version of Boost as well. Then  
rebuild and see if that helps.

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 1, 2013, 4:49pm UTC](https://www.ruby-forum.com/t/error-building-gnuradio-3-4-0/227033/3 "2013-03-01T16:49:36Z")

</div>

Thanks, i did ‘make clean’ and rebuilt it but now i have these errors.  
they  
are still about linking to boost but different symbols.

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  
~/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, std::allocator \> 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<char>, std::allocator<char> > const&)' ~/gnuradio-3.4.0/gnuradio-core/src/lib/.libs/libgnuradio-core.so: undefined reference to`boost::system::get\_generic\_category()’  
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' make[2]: *** [all] Error 2 make[2]: Leaving directory`~/gnuradio-3.4.0/gnuradio-core’  
make[1]: \*\*\* [all-recursive] Error 1  
make[1]: Leaving directory `~/gnuradio-3.4.0’  
make: \*\*\* [all] Error 2
