Re: Undefined symbol: zmq_strerror in OOT C++ block

2023-02-16 Thread Johannes Demel

Hi,

the error comes up when you try to `import satmisc_python`. This is the 
Pybind11 Bindings part of your module.


Fortunately, the bindings exist and are found. Also, the library 
`libgnuradio-satmisc.so` exists. This is the file where your blocks get 
compiled into.
However, this library is looking for a symbol `zmq_strerror` that it 
can't find. You probably didn't link your module against ZMQ.

This is probably missing in your module:
https://github.com/gnuradio/gnuradio/blob/78d89e1466864d305fbb8a5b25a7e1e94efc18c4/gr-zeromq/lib/CMakeLists.txt#L31

Cheers
Johannes

On 16.02.23 15:02, Guillermo Lena wrote:
I have ported an OOT block from 3.8 to 3.10 by creating a new module and 
block with gr_modtool in GNU Radio 3.10 and copying the 3.8 code into de 
3.10 corresponding files. I have built it with cmake .. make etc 
successfully. This blocks involves CSP and ZMQ. When I run a flowgraph 
where this block is, i get the following error:


Traceback (most recent call last):
   File "/home/gnuradio/persistent-folder/satlab/srs3_radio_lime.py", 
line 38, in 

     from gnuradio import satmisc
   File 
"/usr/local/lib/python3.10/dist-packages/gnuradio/satmisc/__init__.py", 
line 18, in 

     from .satmisc_python import *
ImportError: 
/usr/local/lib/x86_64-linux-gnu/libgnuradio-satmisc.so.1.0.0: undefined 
symbol: zmq_strerror


I do not know exactly where this error comes from and would much 
apreciate any hints on how to fix this.


smime.p7s
Description: S/MIME Cryptographic Signature


Undefined symbol: zmq_strerror in OOT C++ block

2023-02-16 Thread Guillermo Lena
I have ported an OOT block from 3.8 to 3.10 by creating a new module and block 
with gr_modtool in GNU Radio 3.10 and copying the 3.8 code into de 3.10 
corresponding files. I have built it with cmake .. make etc successfully. This 
blocks involves CSP and ZMQ. When I run a flowgraph where this block is, i get 
the following error:

Traceback (most recent call last):
  File "/home/gnuradio/persistent-folder/satlab/srs3_radio_lime.py", line 38, 
in 
from gnuradio import satmisc
  File "/usr/local/lib/python3.10/dist-packages/gnuradio/satmisc/__init__.py", 
line 18, in 
from .satmisc_python import *
ImportError: /usr/local/lib/x86_64-linux-gnu/libgnuradio-satmisc.so.1.0.0: 
undefined symbol: zmq_strerror

I do not know exactly where this error comes from and would much apreciate any 
hints on how to fix this.