discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Linking gr-digital in OOT Module (Success on OSX,


From: Garver, Paul W
Subject: Re: [Discuss-gnuradio] Linking gr-digital in OOT Module (Success on OSX, fails on Linux)
Date: Mon, 14 Nov 2016 14:19:52 +0000

Hi Sylvain,


Thanks for the debugging tip. With those changes, I get:


>>> import pwg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pwg/__init__.py", line 32, in <module>
    from pwg_swig import *
  File "/usr/local/lib/python2.7/dist-packages/pwg/pwg_swig.py", line 28, in <module>
    _pwg_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/pwg/pwg_swig.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pwg_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-pwg-1.0.0git.so.0.0.0: undefined symbol: _ZN2gr7trellis26viterbi_algorithm_combinedIfhEEviiiRKSt6vectorIiSaIiEES6_RKS2_IS4_SaIS4_EESA_iiiiRKS2_IT_SaISB_EENS_7digital21trellis_metric_type_tEPKSB_PT0_

This appears to be a linking error related to gr-trellis. It leads me to believe that simply adding TRELLIS to GR_REQUIRED_COMPONENTS in the OOT module's root CMake may not be sufficient. Somehow OSX and Clang handle this differently.


But an ldd on the OOT module's library clearly show gr-trellis is linked. 


linux-vdso.so.1 =>  (0x00007ffe5437b000)
libboost_system.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.55.0 (0x00007f5df3fa0000)
libgnuradio-runtime-3.7.11git.so.0.0.0 => /usr/local/lib/libgnuradio-runtime-3.7.11git.so.0.0.0 (0x00007f5df3cae000)
libgnuradio-pmt-3.7.11git.so.0.0.0 => /usr/local/lib/libgnuradio-pmt-3.7.11git.so.0.0.0 (0x00007f5df3a5b000)
libgnuradio-trellis-3.7.11git.so.0.0.0 => /usr/local/lib/libgnuradio-trellis-3.7.11git.so.0.0.0 (0x00007f5df379d000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5df348e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5df3277000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5df2ead000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5df2c8f000)
libvolk.so.1.3 => /usr/local/lib/libvolk.so.1.3 (0x00007f5df27cf000)
libboost_program_options.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.55.0 (0x00007f5df2559000)
libboost_filesystem.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.55.0 (0x00007f5df2341000)
libboost_thread.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.55.0 (0x00007f5df2126000)
liblog4cpp.so.5 => /usr/lib/liblog4cpp.so.5 (0x00007f5df1ee6000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5df1cde000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5df19d5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5df43df000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f5df17bb000)



From: Sylvain Munaut <address@hidden>
Sent: Sunday, November 13, 2016 11:26:20 AM
To: Garver, Paul W
Cc: Cinaed Simson; address@hidden
Subject: Re: [Discuss-gnuradio] Linking gr-digital in OOT Module (Success on OSX, fails on Linux)
 
Little tip in general:

in the python/  directory, look at the __init__.py file and remove the
try / except around the "from xxx_swig import *".

This will then actually _print_ the error preventing the SWIG import ...

Cheers,

   Sylvain

reply via email to

[Prev in Thread] Current Thread [Next in Thread]