ghostop14 / gr-grnet

GNURadio TCP/UDP source and sink blocks rewritten in C++/Boost. UDP block has header/crc options available as well.
GNU General Public License v3.0
32 stars 18 forks source link

Error on "Linking CXX executable test-netsource" #13

Open crystallon opened 4 years ago

crystallon commented 4 years ago

[ 42%] Built target gnuradio-grnet [ 45%] Building CXX object lib/CMakeFiles/test-grnet.dir/test_grnet.cc.o [ 47%] Building CXX object lib/CMakeFiles/test-grnet.dir/qa_grnet.cc.o [ 50%] Building CXX object lib/CMakeFiles/test-grnet.dir/qa_tcp_sink.cc.o [ 52%] Linking CXX executable test-grnet [ 52%] Built target test-grnet [ 55%] Building CXX object lib/CMakeFiles/test-netsource.dir/test_netsource.cc.o [ 57%] Building CXX object lib/CMakeFiles/test-netsource.dir/tcp_source_impl.cc.o [ 60%] Building CXX object lib/CMakeFiles/test-netsource.dir/udp_source_impl.cc.o [ 62%] Linking CXX executable test-netsource /usr/bin/ld: CMakeFiles/test-netsource.dir/tcp_source_impl.cc.o: undefined reference to symbol '_ZN3pmt12dict_has_keyERKN5boost13intrusive_ptrINS_8pmtbaseEEES5' //usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.7.10: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status lib/CMakeFiles/test-netsource.dir/build.make:153: recipe for target 'lib/test-netsource' failed make[2]: [lib/test-netsource] Error 1 CMakeFiles/Makefile2:178: recipe for target 'lib/CMakeFiles/test-netsource.dir/all' failed make[1]: [lib/CMakeFiles/test-netsource.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.10 DISTRIB_CODENAME=artful DISTRIB_DESCRIPTION="Ubuntu 17.10"

GNU Radio version: 3.7.10

Thanks!

crystallon commented 4 years ago

Also i found in google some people with same trouble:

https://pastebin.com/hfHjRsEF

https://pastebin.com/ewrZhZDR

ghostop14 commented 4 years ago

Hi @crystallon, I just tested building against 3.7.10 again and it seems to link fine. Doing some googling I wonder if it's a boost issue or boost/gnuradio package issue for Ubuntu 17. Did you install gnuradio from the repo or from source?

Couple of immediate thoughts come to mind:

  1. Remove any repo-based gnuradio and build/install from source (or use pybombs). If there's a boost mismatch from a repo package that should hopefully fix it.
  2. Upgrade to Ubuntu 18 where I know the packages should work (although it may upgrade you to GNU Radio 3.8). gr-grnet is 3.8 (and even gnuradio master / 3.9 compatible on the grnet master branch).