zeromq / zmqpp

0mq 'highlevel' C++ bindings
http://zeromq.github.io/zmqpp
Mozilla Public License 2.0
439 stars 195 forks source link

test simple monitor issue #246

Open siddhinath081 opened 2 years ago

siddhinath081 commented 2 years ago

src/tests/test_socket.cpp(600): error: in "socket/test_simple_monitor": check "tcp://0.0.0.0:0" == message.get(1) has failed [tcp://0.0.0.0:0 != tcp://127.0.0.1:44169]

I'm facing this issue.

patrick-luck commented 2 years ago

I am having this same issue as well on Ubuntu 20.04 LTS.

patrick-luck commented 2 years ago

I resolved this issue by doing the following commands found at the URL below. It seems that you must install czmq as well, if you are using zmqpp. The URL: https://github.com/zeromq/czmq#building-on-linux-and-macos

sudo apt-get update

sudo apt-get install -y git build-essential libtool pkg-config autotools-dev autoconf automake cmake uuid-dev libpcre3-dev valgrind

// only execute this next line if interested in updating the man pages as well (adds to build time): sudo apt-get install -y asciidoc

git clone git://github.com/zeromq/libzmq.git cd libzmq ./autogen.sh // do not specify "--with-libsodium" if you prefer to use internal tweetnacl security implementation (recommended for development) ./configure --with-libsodium make check sudo make install sudo ldconfig cd ..

git clone git://github.com/zeromq/czmq.git cd czmq ./autogen.sh && ./configure && make check sudo make install sudo ldconfig cd ..

More info can be found at the link.

zarkin404 commented 1 year ago

Temporary workaround:

Comment line 600 and line 606 in src/tests/test_socket.cpp, and run the commands below:

rm build/max-g++/obj/tests/test_socket.*
make && make check

Everything works fine.