discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] .so: undefined symbol: _ZN2gr6blocks12count_bits1


From: raf raf
Subject: Re: [Discuss-gnuradio] .so: undefined symbol: _ZN2gr6blocks12count_bits16E
Date: Tue, 11 Feb 2014 09:28:59 +0100

Hello All,

Thank you for your answer.

I did a command seen in this snapshot :

address@hidden:/usr/local/lib$ nm libgnuradio-ieee_868_915.so |grep _ZN2gr6blocks12count_bits16Ej
                 U _ZN2gr6blocks12count_bits16Ej
address@hidden:/usr/local/lib$ c++flit _ZN2gr6blocks12count_bits16Ej
No command 'c++flit' found, did you mean:
 Command 'c++filt' from package 'binutils' (main)
c++flit: command not found
address@hidden:/usr/local/lib$ c++filt _ZN2gr6blocks12count_bits16Ej
gr::blocks::count_bits16(unsigned int)

The symbol is the instruction gr::blocks::count_bits16(unsigned int). I Changed this function by blocks::count_bits16(unsigned int), but i get a same error.




Date: Tue, 11 Feb 2014 10:02:37 +0530
Subject: Re: [Discuss-gnuradio] .so: undefined symbol: _ZN2gr6blocks12count_bits16E
From: address@hidden
To: address@hidden
CC: address@hidden; address@hidden; address@hidden

Hi raf,

I had similar problems when I was making OOT modules last summer. The problem with me was that I had not defined the destructor for my blocks in the .cc file.

You can run

cd /usr/local/lib/
nm libgnuradio-ieee_868_915.so | grep _ZN2gr6blocks12count_bits16Ej

and see if this symbol is undefined.

I had run

c++filt symbol-name

(replace symbol-name with _ZN2gr6blocks12count_bits16Ej in your case) to see what this symbol is.


On Tue, Feb 11, 2014 at 1:43 AM, raf raf <address@hidden> wrote:
Thank you, I had the same error when I did sudo ldconfig.

Can you give me an other suggestion. 




From: address@hidden
Date: Mon, 10 Feb 2014 13:40:34 -0500
Subject: Re: [Discuss-gnuradio] .so: undefined symbol: _ZN2gr6blocks12count_bits16E
To: address@hidden
CC: address@hidden; address@hidden


You could also try "sudo ldconfig". It looks like the linker can't find some required symbols.

Happy hacking!


On Mon, Feb 10, 2014 at 12:59 PM, Nick Foster <address@hidden> wrote:
Usually a "make clean" will solve this.

--n


On Mon, Feb 10, 2014 at 9:57 AM, raf raf <address@hidden> wrote:
Hi all gnuradio users,

I have an error when I try to execute a python script after adding a new block.

My block is add to a gnuradio 3.7 with gr_modtool with a command :

gr_modtool add -t sync packet_sink
The module containing a blocks is ieee_868_915. The error is  :

Traceback (most recent call last):
  File "./qa_symbols_to_chips_bs.py", line 25, in <module>
    import ieee_868_915
  File "/usr/local/lib/python2.7/dist-packages/ieee_868_915/__init__.py", line 45, in <module>
    from ieee_868_915_swig import *
  File "/usr/local/lib/python2.7/dist-packages/ieee_868_915/ieee_868_915_swig.py", line 26, in <module>
    _ieee_868_915_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/ieee_868_915/ieee_868_915_swig.py", line 22, in swig_import_helper
    _mod = imp.load_module('_ieee_868_915_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-ieee_868_915.so: undefined symbol: _ZN2gr6blocks12count_bits16Ej


I tried to delete a lib file libgnuradio-ieee_868_915.so and reinstall all a block, but it didn't give a result.


Please help me to fix this error.

Thank you.

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




--
Manu T S

reply via email to

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