zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.53k stars 2.34k forks source link

build on vxworks7 failed #4557

Open NickYangZzz opened 1 year ago

NickYangZzz commented 1 year ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

I am a newer for libzmq. I am failed to build zmq on vxworks7. build error is as following:

src/ip.cpp:795:14: error: use of undeclared identifier 'socketpair' int rc = socketpair (AF_UNIX, type, 0, sv);

and my build command is such as: ./configure --build=x86_64-linux-gnu --host=aarch64-vxworks CC=$CC_DIR CXX=$CXX_DIR --prefix=$PROJ_TARGET --disable-dependency-tracking

ZMQ_HAVE_VXWORKS defined in builds/vxworks/platform.hpp, but it seems not used.

Environment

Minimal test code / Steps to reproduce the issue

What's the actual result? (include assertion message & call stack if applicable)

What's the expected result?

NickYangZzz commented 1 year ago

checking whether we are using clang C++ compiler... yes checking whether we are using gcc >= 4 C++ compiler... yes checking whether to enable debugging information... no checking whether to enable code coverage... no checking if TIPC is available and supports nonblocking connect... no checking whether to enable TSan... no checking whether to enable ASan... no configure: error: unsupported system: vxworks. Making all in doc make[1]: Entering directory '/home/kevin/code/fy_work/third_party/build/s32g_vxworks/obj/release/libzmq/doc' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/kevin/code/fy_work/third_party/build/s32g_vxworks/obj/release/libzmq/doc' make[1]: Entering directory '/home/kevin/code/fy_work/third_party/build/s32g_vxworks/obj/release/libzmq' CXX src/libzmq_la-ip.lo CXX src/libzmq_la-signaler.lo CXX src/libzmq_la-socket_base.lo CXX src/libzmq_la-socks.lo CXX src/libzmq_la-socks_connecter.lo CXX src/libzmq_la-stream.lo src/ip.cpp:795:14: error: use of undeclared identifier 'socketpair' int rc = socketpair (AF_UNIX, type, 0, sv); ^ 1 error generated. make[1]: [Makefile:5619: src/libzmq_la-ip.lo] Error 1 make[1]: Waiting for unfinished jobs....

bluca commented 1 year ago

can you send a PR to fix it?

jingdanyang6967634 commented 1 year ago

libzmq version:5.2.5? newest vrsion 4.3.4

yuzu-ogura commented 3 months ago

hello, I'm looking for a cross compiler for vxworks on Linux, Could you tell me how do you get the cross compiler? thanks a log