Hello All,
Thank you for your answer.
I did a command seen in this snapshot :
[email protected]:/usr/local/lib$ nm
libgnuradio-ieee_868_915.so |grep _ZN2gr6blocks12count_bits16Ej
U _ZN2gr6blocks12count_bits16Ej
[email protected]:/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
[email protected]:/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: [email protected]
To: [email protected]
CC: [email protected]; [email protected]; [email protected]
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 [email protected] wrote:
Thank you, I had the same error when I did sudo ldconfig.
Can you give me an other suggestion.
From: [email protected]
Date: Mon, 10 Feb 2014 13:40:34 -0500
Subject: Re: [Discuss-gnuradio] .so: undefined symbol:
_ZN2gr6blocks12count_bits16E
To: [email protected]
CC: [email protected]; [email protected]
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 F. [email protected]
wrote:
Usually a “make clean” will solve this.
–n
On Mon, Feb 10, 2014 at 9:57 AM, raf raf [email protected] 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_sinkThe 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
import ieee_868_915
File
“/usr/local/lib/python2.7/dist-packages/ieee_868_915/init.py”, line
45, in
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
_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
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio