Forum: GNU Radio error building gnuradio 3.4.0

Posted by Ahmed Alsawi (Guest)
on 2013-03-01 06:43
(Received via mailing list)
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?
Posted by Tom Rondeau (Guest)
on 2013-03-01 15:12
(Received via mailing list)
On Fri, Mar 1, 2013 at 12:42 AM, Ahmed Alsawi 
<ahmedalsawi2012@gmail.com> 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
Posted by Ahmed Alsawi (Guest)
on 2013-03-01 16:49
(Received via mailing list)
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<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<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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.