Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testutil_monitoring.cpp:330:26: error: unknown conversion type character 'l' in format #3824

Closed
Cilyan opened this issue Feb 11, 2020 · 12 comments
Labels

Comments

@Cilyan
Copy link

Cilyan commented Feb 11, 2020

Issue description

Building ZMQ on Windows through Alien::ZMQ::latest using MinGW fails due to use of a format option that is unsupported by MinGW inside some testing units.

Environment

  • libzmq version 4.3.2
  • OS: Windows 10
  • MinGW: 8.3.0

Minimal test code / Steps to reproduce the issue

Building under Windows using MinGW.

What's the actual result?

make[1]: Entering directory `/c/Users/xxxxx/.cpanm/work/1581446412.23356/Alien-ZMQ-latest-0.004/_alien/build_Trnx/zeromq-4.3.2'
Making all in doc
make[2]: Entering directory `/c/Users/xxxxx/.cpanm/work/1581446412.23356/Alien-ZMQ-latest-0.004/_alien/build_Trnx/zeromq-4.3.2/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/c/Users/xxxxx/.cpanm/work/1581446412.23356/Alien-ZMQ-latest-0.004/_alien/build_Trnx/zeromq-4.3.2/doc'
make[2]: Entering directory `/c/Users/xxxxx/.cpanm/work/1581446412.23356/Alien-ZMQ-latest-0.004/_alien/build_Trnx/zeromq-4.3.2'
  CC       external/unity/unity.o
  AR       external/unity/libunity.a
  CXX      tests/tests_libtestutil_a-testutil.o
  CXX      tests/tests_libtestutil_a-testutil_monitoring.o
tests/testutil_monitoring.cpp: In function 'void expect_monitor_event_v2(void*, int64_t, const char*, const char*)':
tests/testutil_monitoring.cpp:330:26: error: unknown conversion type character 'l' in format [-Werror=format=]
                          "Expected monitor event %llx, but received %llx\n",
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/testutil_monitoring.cpp:330:26: error: unknown conversion type character 'l' in format [-Werror=format=]
tests/testutil_monitoring.cpp:330:26: error: too many arguments for format [-Werror=format-extra-args]
tests/testutil_monitoring.cpp:330:26: error: unknown conversion type character 'l' in format [-Werror=format=]
tests/testutil_monitoring.cpp:330:26: error: unknown conversion type character 'l' in format [-Werror=format=]
tests/testutil_monitoring.cpp:330:26: error: too many arguments for format [-Werror=format-extra-args]
At global scope:
cc1plus.exe: error: unrecognized command line option '-Wno-tautological-constant-compare' [-Werror]
cc1plus.exe: error: unrecognized command line option '-Wno-atomic-alignment' [-Werror]
cc1plus.exe: all warnings being treated as errors
make[2]: *** [tests/tests_libtestutil_a-testutil_monitoring.o] Error 1
make[2]: Leaving directory `/c/Users/xxxxx/.cpanm/work/1581446412.23356/Alien-ZMQ-latest-0.004/_alien/build_Trnx/zeromq-4.3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/Users/xxxxx/.cpanm/work/1581446412.23356/Alien-ZMQ-latest-0.004/_alien/build_Trnx/zeromq-4.3.2'
external command failed at C:/Strawberry/perl/vendor/lib/Alien/Build/CommandSequence.pm line 87.
gmake: *** [Makefile:1023: _alien/mm/build] Error 2

What's the expected result?

Build succeeds

@bluca
Copy link
Member

bluca commented Feb 11, 2020

Looks like the repository you are looking for is https://github.com/zmughal-p5CPAN/p5-Alien-ZMQ-latest

@Cilyan
Copy link
Author

Cilyan commented Feb 11, 2020

I expect that this is a ZMQ issue, not Alien's. At least from what I understand.

@bluca
Copy link
Member

bluca commented Feb 11, 2020

So if you remove Alien entirely, can you still reproduce it? On the CI the mingw build is compiling correctly: https://ci.appveyor.com/project/zeromq/libzmq/build/job/x0l1qxyd0ov5dyr2

@Cilyan
Copy link
Author

Cilyan commented Feb 11, 2020

The issue seems the have hit others

tofjw/p5-Alien-ZMQ-latest@4f525ab

@Cilyan
Copy link
Author

Cilyan commented Feb 12, 2020

It looks like your Appveyor is using MinGW 6.4.0, while Strawberry Perl's is 8.3.0.

I tested to remove the offending line in testutil_monitoring.cpp and had another issue in in thread.cpp, probably because __except is no longer accepted here with the new version of MinGW.

As I wanted to follow the same process as your Appveyor, I used CMake instead of the autotools in a second test. The build order is different so I fall immediately into the thread.cpp issue, but basically the problem is the same and is linked to the different version of MinGW.

Maybe the newer version is more strict, or Strawberry Perl doesn't include all the necessary files, while MSYS2 does?

Alien::Build::CommandSequence> + mkdir build_libzmq
Alien::Build::CommandSequence> + cd build_libzmq
Alien::Build::CommandSequence> + cmake -G MinGW Makefiles -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true -DCMAKE_INSTALL_PREFIX:PATH=W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/blib/lib/auto/share/dist/Alien-ZMQ-latest -DWITH_LIBSODIUM="OFF" -DENABLE_CURVE="ON" -DCMAKE_MAKE_PROGRAM="gmake" ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Strawberry/c/bin/g++.exe
-- Check for working CXX compiler: C:/Strawberry/c/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Detected ZMQ Version - 4.3.2
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_C11
-- Performing Test COMPILER_SUPPORTS_C11 - Success
-- Performing Test CXX_HAS_TAUT_WARNING
-- Performing Test CXX_HAS_TAUT_WARNING - Success
-- Performing Test CC_HAS_TAUT_WARNING
-- Performing Test CC_HAS_TAUT_WARNING - Success
-- Using tweetnacl for CURVE security
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for epoll_create
-- Looking for epoll_create - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of struct pollfd
-- Check size of struct pollfd - failed
-- Looking for pollset_create
-- Looking for pollset_create - not found
-- Looking for poll
-- Looking for poll - not found
-- Using polling method in I/O threads: select
-- Using polling method in zmq_poll(er)_* API: select
-- Using 64 bytes alignment for lock-free data structures
-- Looking for include file windows.h
-- Looking for include file windows.h - found
-- Detected _WIN32_WINNT from CMAKE_SYSTEM_VERSION: 0x0A00
-- Looking for include file condition_variable
-- Looking for include file condition_variable - found
-- Using condition_variable_t implementation: stl11
-- Looking for include file ifaddrs.h
-- Looking for include file ifaddrs.h - not found
-- Looking for include file sys/uio.h
-- Looking for include file sys/uio.h - not found
-- Looking for include file sys/eventfd.h
-- Looking for include file sys/eventfd.h - not found
-- Looking for WSAStartup
-- Looking for WSAStartup - found
-- Looking for UuidCreateSequential
-- Looking for UuidCreateSequential - found
-- Looking for GetAdaptersAddresses
-- Looking for GetAdaptersAddresses - found
-- Looking for fopen in ws2
-- Looking for fopen in ws2 - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - not found
-- Looking for fork
-- Looking for fork - not found
-- Looking for gethrtimei
-- Looking for gethrtimei - not found
-- Looking for mkdtemp
-- Looking for mkdtemp - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for strnlen
-- Looking for strnlen - found
-- Performing Test HAVE_FLAG_-Wall
-- Performing Test HAVE_FLAG_-Wall - Failed
-- Performing Test HAVE_FLAG_-Wextra
-- Performing Test HAVE_FLAG_-Wextra - Failed
-- Performing Test HAVE_FLAG_-Wno-long-long
-- Performing Test HAVE_FLAG_-Wno-long-long - Failed
-- Performing Test HAVE_FLAG_-Wno-uninitialized
-- Performing Test HAVE_FLAG_-Wno-uninitialized - Failed
-- Performing Test HAVE_FLAG_-pedantic
-- Performing Test HAVE_FLAG_-pedantic - Failed
-- Checking whether noexcept is supported
-- Performing Test ZMQ_HAVE_NOEXCEPT
-- Performing Test ZMQ_HAVE_NOEXCEPT - Success
-- Checking whether SOCK_CLOEXEC is supported
-- Performing Test ZMQ_HAVE_SOCK_CLOEXEC
-- Performing Test ZMQ_HAVE_SOCK_CLOEXEC - Failed
-- Checking whether O_CLOEXEC is supported
-- Performing Test ZMQ_HAVE_O_CLOEXEC
-- Performing Test ZMQ_HAVE_O_CLOEXEC - Failed
-- Checking whether SO_BINDTODEVICE is supported
-- Performing Test ZMQ_HAVE_SO_BINDTODEVICE
-- Performing Test ZMQ_HAVE_SO_BINDTODEVICE - Failed
-- Checking whether SO_KEEPALIVE is supported
-- Performing Test ZMQ_HAVE_SO_KEEPALIVE
-- Performing Test ZMQ_HAVE_SO_KEEPALIVE - Failed
-- Checking whether TCP_KEEPCNT is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPCNT
-- Performing Test ZMQ_HAVE_TCP_KEEPCNT - Failed
-- Checking whether TCP_KEEPIDLE is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPIDLE
-- Performing Test ZMQ_HAVE_TCP_KEEPIDLE - Failed
-- Checking whether TCP_KEEPINTVL is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPINTVL
-- Performing Test ZMQ_HAVE_TCP_KEEPINTVL - Failed
-- Checking whether TCP_KEEPALIVE is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPALIVE
-- Performing Test ZMQ_HAVE_TCP_KEEPALIVE - Failed
-- Checking whether TIPC is supported
-- Performing Test ZMQ_HAVE_TIPC
-- Performing Test ZMQ_HAVE_TIPC - Failed
-- Checking pthread_setname signature
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1 - Failed
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2 - Success
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3 - Failed
-- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME
-- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME - Failed
-- Checking pthread_setaffinity signature
-- Performing Test ZMQ_HAVE_PTHREAD_SETAFFINITY
-- Performing Test ZMQ_HAVE_PTHREAD_SETAFFINITY - Failed
-- Checking whether getrandom is supported
-- Performing Test ZMQ_HAVE_GETRANDOM
-- Performing Test ZMQ_HAVE_GETRANDOM - Failed
-- Could NOT find AsciiDoc (missing: ASCIIDOC_EXECUTABLE)
-- capsh not found, skipping tests that require CAP_NET_ADMIN
CMake Warning (dev) at tests/CMakeLists.txt:294 (message):
  Test 'test_socks' is not known to CTest.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq
Alien::Build::CommandSequence> + cmake --build .
gmake[1]: Entering directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
gmake[2]: Entering directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
gmake[3]: Entering directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
Scanning dependencies of target libzmq
gmake[3]: Leaving directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
gmake[3]: Entering directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
[  0%] Building C object CMakeFiles/libzmq.dir/src/tweetnacl.c.obj
[  0%] Building CXX object CMakeFiles/libzmq.dir/src/precompiled.cpp.obj
[  0%] Building CXX object CMakeFiles/libzmq.dir/src/address.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/client.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/clock.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/ctx.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/curve_mechanism_base.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/curve_client.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/curve_server.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/dealer.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/devpoll.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/dgram.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/dist.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/endpoint.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/epoll.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/err.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/fq.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/io_object.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/io_thread.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ip.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ipc_address.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ipc_connecter.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/ipc_listener.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/kqueue.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/lb.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/mailbox.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/mailbox_safe.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/mechanism.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/mechanism_base.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/metadata.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/msg.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/mtrie.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/norm_engine.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/object.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/options.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/own.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/null_mechanism.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pair.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pgm_receiver.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pgm_sender.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pgm_socket.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/pipe.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/plain_client.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/plain_server.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/poll.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/poller_base.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/polling_util.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/pollset.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/proxy.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/pub.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/pull.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/push.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/random.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/raw_encoder.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/raw_decoder.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/reaper.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/rep.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/req.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/router.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/select.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/server.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/session_base.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/signaler.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/socket_base.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/socks.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/socks_connecter.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/stream.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/stream_engine.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/sub.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/tcp.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/tcp_address.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/tcp_connecter.cpp.obj
[ 19%] Building CXX object CMakeFiles/libzmq.dir/src/tcp_listener.cpp.obj
[ 19%] Building CXX object CMakeFiles/libzmq.dir/src/thread.cpp.obj
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp: In member function 'void zmq::thread_t::applyThreadName()':
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp:136:5: error: expected 'catch' before '__except'
     __except (EXCEPTION_CONTINUE_EXECUTION) {
     ^~~~~~~~
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp:136:5: error: expected '(' before '__except'
     __except (EXCEPTION_CONTINUE_EXECUTION) {
     ^~~~~~~~
     (
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp:136:5: error: expected type-specifier before '__except'
     __except (EXCEPTION_CONTINUE_EXECUTION) {
     ^~~~~~~~
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp:136:13: error: expected ')' before '(' token
     __except (EXCEPTION_CONTINUE_EXECUTION) {
     ~~~~~~~~^~
             )
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp:136:14: error: expected '{' before '(' token
     __except (EXCEPTION_CONTINUE_EXECUTION) {
              ^
W:\Temp\p5-Alien-ZMQ-latest-master\Alien-ZMQ-latest-0.005\_alien\build_8PLJ\zeromq-4.3.2\src\thread.cpp:136:44: error: expected ';' before '{' token
     __except (EXCEPTION_CONTINUE_EXECUTION) {
                                            ^~
                                            ;
At global scope:
cc1plus.exe: warning: unrecognized command line option '-Wno-tautological-constant-compare'
gmake[3]: *** [CMakeFiles\libzmq.dir\build.make:1085: CMakeFiles/libzmq.dir/src/thread.cpp.obj] Error 1
gmake[3]: Leaving directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
gmake[2]: *** [CMakeFiles\Makefile2:316: CMakeFiles/libzmq.dir/all] Error 2
gmake[2]: Leaving directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'
gmake[1]: *** [Makefile:140: all] Error 2
gmake[1]: Leaving directory 'W:/Temp/p5-Alien-ZMQ-latest-master/Alien-ZMQ-latest-0.005/_alien/build_8PLJ/zeromq-4.3.2/build_libzmq'

@Cilyan
Copy link
Author

Cilyan commented Feb 12, 2020

Ok, my newly found issue is already reported there: #3586

@bluca
Copy link
Member

bluca commented Feb 12, 2020

I'm afraid I am not familiar with Strawberry Perl at all. Is the problem fixed with the issue you linked, then?

@Cilyan
Copy link
Author

Cilyan commented Feb 12, 2020

I need to test. I reverted to 4.3.1 which worked for both issues. I'll check for the master, but the process I use is designed to download a release, so I have to tweak some things manually first to get a "fake 4.3.3".

@Cilyan
Copy link
Author

Cilyan commented Feb 12, 2020

I just downloaded the master and tried to build it. I do not reproduce the first mentionned issue, but there is another one in testutil_unity.cpp. This seems to still be linked to incompatibilities between MinGW versions, because the Appveyor log shows that the latest build succeeded to compile this file (even if it failed in the end).

I'm a bit puzzled now, the only thing that changed from what I reported is the use of CMake to build and in this configuration, testutil_monitoring.cpp builds. I guess I will need to test this build using autotools, but honnestly, autotools on Windows without Alien, this is a real pain...

W:\Temp\libzmq-master\build_libzmq>cmake -G "MinGW Makefiles" -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true -DCMAKE_INSTALL_PREFIX:PATH=W:\Temp\libzmq-master\build_libzmq\dist -DWITH_LIBSODIUM="OFF" -DENABLE_CURVE="ON" -DCMAKE_MAKE_PROGRAM="gmake" ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Strawberry/c/bin/g++.exe
-- Check for working CXX compiler: C:/Strawberry/c/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Detected ZMQ Version - 4.3.3
-- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config (found version "")
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_C11
-- Performing Test COMPILER_SUPPORTS_C11 - Success
-- Performing Test CXX_HAS_TAUT_WARNING
-- Performing Test CXX_HAS_TAUT_WARNING - Success
-- Performing Test CC_HAS_TAUT_WARNING
-- Performing Test CC_HAS_TAUT_WARNING - Success
-- Checking for module 'libbsd'
--
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Using tweetnacl for CURVE security
-- Detected _WIN32_WINNT from CMAKE_SYSTEM_VERSION: 0x0A00
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for epoll_create
-- Looking for epoll_create - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of struct pollfd
-- Check size of struct pollfd - failed
-- Looking for pollset_create
-- Looking for pollset_create - not found
-- Looking for poll
-- Looking for poll - not found
-- Using polling method in I/O threads: select
-- Using polling method in zmq_poll(er)_* API: select
-- Using 64 bytes alignment for lock-free data structures
-- Looking for include file windows.h
-- Looking for include file windows.h - found
-- Looking for include files winsock2.h, afunix.h
-- Looking for include files winsock2.h, afunix.h - not found
-- Looking for include file condition_variable
-- Looking for include file condition_variable - found
-- Using condition_variable_t implementation: stl11
-- Looking for include file ifaddrs.h
-- Looking for include file ifaddrs.h - not found
-- Looking for include file sys/uio.h
-- Looking for include file sys/uio.h - not found
-- Looking for include file sys/eventfd.h
-- Looking for include file sys/eventfd.h - not found
-- Looking for WSAStartup
-- Looking for WSAStartup - found
-- Looking for UuidCreateSequential
-- Looking for UuidCreateSequential - found
-- Looking for GetAdaptersAddresses
-- Looking for GetAdaptersAddresses - found
-- Looking for fopen in ws2
-- Looking for fopen in ws2 - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - not found
-- Looking for fork
-- Looking for fork - not found
-- Looking for gethrtimei
-- Looking for gethrtimei - not found
-- Looking for mkdtemp
-- Looking for mkdtemp - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for strnlen
-- Looking for strnlen - found
-- Performing Test HAVE_FLAG_-Wall
-- Performing Test HAVE_FLAG_-Wall - Failed
-- Performing Test HAVE_FLAG_-Wextra
-- Performing Test HAVE_FLAG_-Wextra - Failed
-- Performing Test HAVE_FLAG_-Wno-long-long
-- Performing Test HAVE_FLAG_-Wno-long-long - Failed
-- Performing Test HAVE_FLAG_-Wno-uninitialized
-- Performing Test HAVE_FLAG_-Wno-uninitialized - Failed
-- Performing Test HAVE_FLAG_-pedantic
-- Performing Test HAVE_FLAG_-pedantic - Failed
-- Checking whether noexcept is supported
-- Performing Test ZMQ_HAVE_NOEXCEPT
-- Performing Test ZMQ_HAVE_NOEXCEPT - Success
-- Checking whether SOCK_CLOEXEC is supported
-- Performing Test ZMQ_HAVE_SOCK_CLOEXEC
-- Performing Test ZMQ_HAVE_SOCK_CLOEXEC - Failed
-- Checking whether O_CLOEXEC is supported
-- Performing Test ZMQ_HAVE_O_CLOEXEC
-- Performing Test ZMQ_HAVE_O_CLOEXEC - Failed
-- Checking whether SO_BINDTODEVICE is supported
-- Performing Test ZMQ_HAVE_SO_BINDTODEVICE
-- Performing Test ZMQ_HAVE_SO_BINDTODEVICE - Failed
-- Checking whether SO_KEEPALIVE is supported
-- Performing Test ZMQ_HAVE_SO_KEEPALIVE
-- Performing Test ZMQ_HAVE_SO_KEEPALIVE - Failed
-- Checking whether TCP_KEEPCNT is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPCNT
-- Performing Test ZMQ_HAVE_TCP_KEEPCNT - Failed
-- Checking whether TCP_KEEPIDLE is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPIDLE
-- Performing Test ZMQ_HAVE_TCP_KEEPIDLE - Failed
-- Checking whether TCP_KEEPINTVL is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPINTVL
-- Performing Test ZMQ_HAVE_TCP_KEEPINTVL - Failed
-- Checking whether TCP_KEEPALIVE is supported
-- Performing Test ZMQ_HAVE_TCP_KEEPALIVE
-- Performing Test ZMQ_HAVE_TCP_KEEPALIVE - Failed
-- Checking whether TIPC is supported
-- Performing Test ZMQ_HAVE_TIPC
-- Performing Test ZMQ_HAVE_TIPC - Failed
-- Checking pthread_setname signature
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1 - Failed
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2 - Success
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3
-- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3 - Failed
-- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME
-- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME - Failed
-- Checking pthread_setaffinity signature
-- Performing Test ZMQ_HAVE_PTHREAD_SET_AFFINITY
-- Performing Test ZMQ_HAVE_PTHREAD_SET_AFFINITY - Failed
-- Checking whether getrandom is supported
-- Performing Test ZMQ_HAVE_GETRANDOM
-- Performing Test ZMQ_HAVE_GETRANDOM - Failed
-- Could NOT find AsciiDoc (missing: ASCIIDOC_EXECUTABLE)
CMake Warning (dev) at tests/CMakeLists.txt:305 (message):
  Test 'test_socks' is not known to CTest.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:305 (message):
  Test 'test_ws_transport' is not known to CTest.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:305 (message):
  Test 'test_wss_transport' is not known to CTest.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: W:/Temp/libzmq-master/build_libzmq

W:\Temp\libzmq-master\build_libzmq>cmake --build .
Scanning dependencies of target libzmq
[  0%] Building C object CMakeFiles/libzmq.dir/src/tweetnacl.c.obj
[  0%] Building CXX object CMakeFiles/libzmq.dir/src/precompiled.cpp.obj
[  0%] Building CXX object CMakeFiles/libzmq.dir/src/address.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/client.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/clock.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/ctx.cpp.obj
[  1%] Building CXX object CMakeFiles/libzmq.dir/src/curve_mechanism_base.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/curve_client.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/curve_server.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/dealer.cpp.obj
[  2%] Building CXX object CMakeFiles/libzmq.dir/src/devpoll.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/dgram.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/dist.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/endpoint.cpp.obj
[  3%] Building CXX object CMakeFiles/libzmq.dir/src/epoll.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/err.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/fq.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/io_object.cpp.obj
[  4%] Building CXX object CMakeFiles/libzmq.dir/src/io_thread.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ip.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ipc_address.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ipc_connecter.cpp.obj
[  5%] Building CXX object CMakeFiles/libzmq.dir/src/ipc_listener.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/kqueue.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/lb.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/mailbox.cpp.obj
[  6%] Building CXX object CMakeFiles/libzmq.dir/src/mailbox_safe.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/mechanism.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/mechanism_base.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/metadata.cpp.obj
[  7%] Building CXX object CMakeFiles/libzmq.dir/src/msg.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/mtrie.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/norm_engine.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/object.cpp.obj
[  8%] Building CXX object CMakeFiles/libzmq.dir/src/options.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/own.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/null_mechanism.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/pair.cpp.obj
[  9%] Building CXX object CMakeFiles/libzmq.dir/src/peer.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pgm_receiver.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pgm_sender.cpp.obj
[ 10%] Building CXX object CMakeFiles/libzmq.dir/src/pgm_socket.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/pipe.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/plain_client.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/plain_server.cpp.obj
[ 11%] Building CXX object CMakeFiles/libzmq.dir/src/poll.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/poller_base.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/polling_util.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/pollset.cpp.obj
[ 12%] Building CXX object CMakeFiles/libzmq.dir/src/proxy.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/pub.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/pull.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/push.cpp.obj
[ 13%] Building CXX object CMakeFiles/libzmq.dir/src/random.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/raw_encoder.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/raw_decoder.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/raw_engine.cpp.obj
[ 14%] Building CXX object CMakeFiles/libzmq.dir/src/reaper.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/rep.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/req.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/router.cpp.obj
[ 15%] Building CXX object CMakeFiles/libzmq.dir/src/select.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/server.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/session_base.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/signaler.cpp.obj
[ 16%] Building CXX object CMakeFiles/libzmq.dir/src/socket_base.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/socks.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/socks_connecter.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/stream.cpp.obj
[ 17%] Building CXX object CMakeFiles/libzmq.dir/src/stream_engine_base.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/sub.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/tcp.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/tcp_address.cpp.obj
[ 18%] Building CXX object CMakeFiles/libzmq.dir/src/tcp_connecter.cpp.obj
[ 19%] Building CXX object CMakeFiles/libzmq.dir/src/tcp_listener.cpp.obj
[ 19%] Building CXX object CMakeFiles/libzmq.dir/src/thread.cpp.obj
[ 19%] Building CXX object CMakeFiles/libzmq.dir/src/trie.cpp.obj
[ 19%] Building CXX object CMakeFiles/libzmq.dir/src/radix_tree.cpp.obj
[ 20%] Building CXX object CMakeFiles/libzmq.dir/src/v1_decoder.cpp.obj
[ 20%] Building CXX object CMakeFiles/libzmq.dir/src/v1_encoder.cpp.obj
[ 20%] Building CXX object CMakeFiles/libzmq.dir/src/v2_decoder.cpp.obj
[ 20%] Building CXX object CMakeFiles/libzmq.dir/src/v2_encoder.cpp.obj
[ 21%] Building CXX object CMakeFiles/libzmq.dir/src/v3_1_encoder.cpp.obj
[ 21%] Building CXX object CMakeFiles/libzmq.dir/src/xpub.cpp.obj
[ 21%] Building CXX object CMakeFiles/libzmq.dir/src/xsub.cpp.obj
[ 21%] Building CXX object CMakeFiles/libzmq.dir/src/zmq.cpp.obj
[ 22%] Building CXX object CMakeFiles/libzmq.dir/src/zmq_utils.cpp.obj
[ 22%] Building CXX object CMakeFiles/libzmq.dir/src/decoder_allocators.cpp.obj
[ 22%] Building CXX object CMakeFiles/libzmq.dir/src/socket_poller.cpp.obj
[ 23%] Building CXX object CMakeFiles/libzmq.dir/src/timers.cpp.obj
[ 23%] Building CXX object CMakeFiles/libzmq.dir/src/radio.cpp.obj
[ 23%] Building CXX object CMakeFiles/libzmq.dir/src/dish.cpp.obj
[ 23%] Building CXX object CMakeFiles/libzmq.dir/src/udp_engine.cpp.obj
[ 24%] Building CXX object CMakeFiles/libzmq.dir/src/udp_address.cpp.obj
[ 24%] Building CXX object CMakeFiles/libzmq.dir/src/scatter.cpp.obj
[ 24%] Building CXX object CMakeFiles/libzmq.dir/src/gather.cpp.obj
[ 24%] Building CXX object CMakeFiles/libzmq.dir/src/ip_resolver.cpp.obj
[ 25%] Building CXX object CMakeFiles/libzmq.dir/src/zap_client.cpp.obj
[ 25%] Building CXX object CMakeFiles/libzmq.dir/src/zmtp_engine.cpp.obj
[ 25%] Building CXX object CMakeFiles/libzmq.dir/src/stream_connecter_base.cpp.obj
[ 25%] Building CXX object CMakeFiles/libzmq.dir/src/stream_listener_base.cpp.obj
[ 26%] Building RC object CMakeFiles/libzmq.dir/version.rc.obj
[ 26%] Linking CXX shared library bin\libzmq.dll
[ 26%] Built target libzmq
Scanning dependencies of target inproc_lat
[ 26%] Building CXX object CMakeFiles/inproc_lat.dir/perf/inproc_lat.cpp.obj
[ 26%] Linking CXX executable bin\inproc_lat.exe
[ 26%] Built target inproc_lat
Scanning dependencies of target local_thr
[ 26%] Building CXX object CMakeFiles/local_thr.dir/perf/local_thr.cpp.obj
[ 26%] Linking CXX executable bin\local_thr.exe
[ 26%] Built target local_thr
Scanning dependencies of target libzmq-static
[ 26%] Building C object CMakeFiles/libzmq-static.dir/src/tweetnacl.c.obj
[ 26%] Building CXX object CMakeFiles/libzmq-static.dir/src/precompiled.cpp.obj
[ 27%] Building CXX object CMakeFiles/libzmq-static.dir/src/address.cpp.obj
[ 27%] Building CXX object CMakeFiles/libzmq-static.dir/src/client.cpp.obj
[ 27%] Building CXX object CMakeFiles/libzmq-static.dir/src/clock.cpp.obj
[ 27%] Building CXX object CMakeFiles/libzmq-static.dir/src/ctx.cpp.obj
[ 28%] Building CXX object CMakeFiles/libzmq-static.dir/src/curve_mechanism_base.cpp.obj
[ 28%] Building CXX object CMakeFiles/libzmq-static.dir/src/curve_client.cpp.obj
[ 28%] Building CXX object CMakeFiles/libzmq-static.dir/src/curve_server.cpp.obj
[ 28%] Building CXX object CMakeFiles/libzmq-static.dir/src/dealer.cpp.obj
[ 29%] Building CXX object CMakeFiles/libzmq-static.dir/src/devpoll.cpp.obj
[ 29%] Building CXX object CMakeFiles/libzmq-static.dir/src/dgram.cpp.obj
[ 29%] Building CXX object CMakeFiles/libzmq-static.dir/src/dist.cpp.obj
[ 29%] Building CXX object CMakeFiles/libzmq-static.dir/src/endpoint.cpp.obj
[ 30%] Building CXX object CMakeFiles/libzmq-static.dir/src/epoll.cpp.obj
[ 30%] Building CXX object CMakeFiles/libzmq-static.dir/src/err.cpp.obj
[ 30%] Building CXX object CMakeFiles/libzmq-static.dir/src/fq.cpp.obj
[ 30%] Building CXX object CMakeFiles/libzmq-static.dir/src/io_object.cpp.obj
[ 31%] Building CXX object CMakeFiles/libzmq-static.dir/src/io_thread.cpp.obj
[ 31%] Building CXX object CMakeFiles/libzmq-static.dir/src/ip.cpp.obj
[ 31%] Building CXX object CMakeFiles/libzmq-static.dir/src/ipc_address.cpp.obj
[ 31%] Building CXX object CMakeFiles/libzmq-static.dir/src/ipc_connecter.cpp.obj
[ 32%] Building CXX object CMakeFiles/libzmq-static.dir/src/ipc_listener.cpp.obj
[ 32%] Building CXX object CMakeFiles/libzmq-static.dir/src/kqueue.cpp.obj
[ 32%] Building CXX object CMakeFiles/libzmq-static.dir/src/lb.cpp.obj
[ 32%] Building CXX object CMakeFiles/libzmq-static.dir/src/mailbox.cpp.obj
[ 33%] Building CXX object CMakeFiles/libzmq-static.dir/src/mailbox_safe.cpp.obj
[ 33%] Building CXX object CMakeFiles/libzmq-static.dir/src/mechanism.cpp.obj
[ 33%] Building CXX object CMakeFiles/libzmq-static.dir/src/mechanism_base.cpp.obj
[ 33%] Building CXX object CMakeFiles/libzmq-static.dir/src/metadata.cpp.obj
[ 34%] Building CXX object CMakeFiles/libzmq-static.dir/src/msg.cpp.obj
[ 34%] Building CXX object CMakeFiles/libzmq-static.dir/src/mtrie.cpp.obj
[ 34%] Building CXX object CMakeFiles/libzmq-static.dir/src/norm_engine.cpp.obj
[ 34%] Building CXX object CMakeFiles/libzmq-static.dir/src/object.cpp.obj
[ 35%] Building CXX object CMakeFiles/libzmq-static.dir/src/options.cpp.obj
[ 35%] Building CXX object CMakeFiles/libzmq-static.dir/src/own.cpp.obj
[ 35%] Building CXX object CMakeFiles/libzmq-static.dir/src/null_mechanism.cpp.obj
[ 36%] Building CXX object CMakeFiles/libzmq-static.dir/src/pair.cpp.obj
[ 36%] Building CXX object CMakeFiles/libzmq-static.dir/src/peer.cpp.obj
[ 36%] Building CXX object CMakeFiles/libzmq-static.dir/src/pgm_receiver.cpp.obj
[ 36%] Building CXX object CMakeFiles/libzmq-static.dir/src/pgm_sender.cpp.obj
[ 37%] Building CXX object CMakeFiles/libzmq-static.dir/src/pgm_socket.cpp.obj
[ 37%] Building CXX object CMakeFiles/libzmq-static.dir/src/pipe.cpp.obj
[ 37%] Building CXX object CMakeFiles/libzmq-static.dir/src/plain_client.cpp.obj
[ 37%] Building CXX object CMakeFiles/libzmq-static.dir/src/plain_server.cpp.obj
[ 38%] Building CXX object CMakeFiles/libzmq-static.dir/src/poll.cpp.obj
[ 38%] Building CXX object CMakeFiles/libzmq-static.dir/src/poller_base.cpp.obj
[ 38%] Building CXX object CMakeFiles/libzmq-static.dir/src/polling_util.cpp.obj
[ 38%] Building CXX object CMakeFiles/libzmq-static.dir/src/pollset.cpp.obj
[ 39%] Building CXX object CMakeFiles/libzmq-static.dir/src/proxy.cpp.obj
[ 39%] Building CXX object CMakeFiles/libzmq-static.dir/src/pub.cpp.obj
[ 39%] Building CXX object CMakeFiles/libzmq-static.dir/src/pull.cpp.obj
[ 39%] Building CXX object CMakeFiles/libzmq-static.dir/src/push.cpp.obj
[ 40%] Building CXX object CMakeFiles/libzmq-static.dir/src/random.cpp.obj
[ 40%] Building CXX object CMakeFiles/libzmq-static.dir/src/raw_encoder.cpp.obj
[ 40%] Building CXX object CMakeFiles/libzmq-static.dir/src/raw_decoder.cpp.obj
[ 40%] Building CXX object CMakeFiles/libzmq-static.dir/src/raw_engine.cpp.obj
[ 41%] Building CXX object CMakeFiles/libzmq-static.dir/src/reaper.cpp.obj
[ 41%] Building CXX object CMakeFiles/libzmq-static.dir/src/rep.cpp.obj
[ 41%] Building CXX object CMakeFiles/libzmq-static.dir/src/req.cpp.obj
[ 41%] Building CXX object CMakeFiles/libzmq-static.dir/src/router.cpp.obj
[ 42%] Building CXX object CMakeFiles/libzmq-static.dir/src/select.cpp.obj
[ 42%] Building CXX object CMakeFiles/libzmq-static.dir/src/server.cpp.obj
[ 42%] Building CXX object CMakeFiles/libzmq-static.dir/src/session_base.cpp.obj
[ 42%] Building CXX object CMakeFiles/libzmq-static.dir/src/signaler.cpp.obj
[ 43%] Building CXX object CMakeFiles/libzmq-static.dir/src/socket_base.cpp.obj
[ 43%] Building CXX object CMakeFiles/libzmq-static.dir/src/socks.cpp.obj
[ 43%] Building CXX object CMakeFiles/libzmq-static.dir/src/socks_connecter.cpp.obj
[ 43%] Building CXX object CMakeFiles/libzmq-static.dir/src/stream.cpp.obj
[ 44%] Building CXX object CMakeFiles/libzmq-static.dir/src/stream_engine_base.cpp.obj
[ 44%] Building CXX object CMakeFiles/libzmq-static.dir/src/sub.cpp.obj
[ 44%] Building CXX object CMakeFiles/libzmq-static.dir/src/tcp.cpp.obj
[ 44%] Building CXX object CMakeFiles/libzmq-static.dir/src/tcp_address.cpp.obj
[ 45%] Building CXX object CMakeFiles/libzmq-static.dir/src/tcp_connecter.cpp.obj
[ 45%] Building CXX object CMakeFiles/libzmq-static.dir/src/tcp_listener.cpp.obj
[ 45%] Building CXX object CMakeFiles/libzmq-static.dir/src/thread.cpp.obj
[ 45%] Building CXX object CMakeFiles/libzmq-static.dir/src/trie.cpp.obj
[ 46%] Building CXX object CMakeFiles/libzmq-static.dir/src/radix_tree.cpp.obj
[ 46%] Building CXX object CMakeFiles/libzmq-static.dir/src/v1_decoder.cpp.obj
[ 46%] Building CXX object CMakeFiles/libzmq-static.dir/src/v1_encoder.cpp.obj
[ 46%] Building CXX object CMakeFiles/libzmq-static.dir/src/v2_decoder.cpp.obj
[ 47%] Building CXX object CMakeFiles/libzmq-static.dir/src/v2_encoder.cpp.obj
[ 47%] Building CXX object CMakeFiles/libzmq-static.dir/src/v3_1_encoder.cpp.obj
[ 47%] Building CXX object CMakeFiles/libzmq-static.dir/src/xpub.cpp.obj
[ 48%] Building CXX object CMakeFiles/libzmq-static.dir/src/xsub.cpp.obj
[ 48%] Building CXX object CMakeFiles/libzmq-static.dir/src/zmq.cpp.obj
[ 48%] Building CXX object CMakeFiles/libzmq-static.dir/src/zmq_utils.cpp.obj
[ 48%] Building CXX object CMakeFiles/libzmq-static.dir/src/decoder_allocators.cpp.obj
[ 49%] Building CXX object CMakeFiles/libzmq-static.dir/src/socket_poller.cpp.obj
[ 49%] Building CXX object CMakeFiles/libzmq-static.dir/src/timers.cpp.obj
[ 49%] Building CXX object CMakeFiles/libzmq-static.dir/src/radio.cpp.obj
[ 49%] Building CXX object CMakeFiles/libzmq-static.dir/src/dish.cpp.obj
[ 50%] Building CXX object CMakeFiles/libzmq-static.dir/src/udp_engine.cpp.obj
[ 50%] Building CXX object CMakeFiles/libzmq-static.dir/src/udp_address.cpp.obj
[ 50%] Building CXX object CMakeFiles/libzmq-static.dir/src/scatter.cpp.obj
[ 50%] Building CXX object CMakeFiles/libzmq-static.dir/src/gather.cpp.obj
[ 51%] Building CXX object CMakeFiles/libzmq-static.dir/src/ip_resolver.cpp.obj
[ 51%] Building CXX object CMakeFiles/libzmq-static.dir/src/zap_client.cpp.obj
[ 51%] Building CXX object CMakeFiles/libzmq-static.dir/src/zmtp_engine.cpp.obj
[ 51%] Building CXX object CMakeFiles/libzmq-static.dir/src/stream_connecter_base.cpp.obj
[ 52%] Building CXX object CMakeFiles/libzmq-static.dir/src/stream_listener_base.cpp.obj
[ 52%] Building RC object CMakeFiles/libzmq-static.dir/version.rc.obj
[ 52%] Linking CXX static library lib\libzmq.a
[ 52%] Built target libzmq-static
Scanning dependencies of target remote_thr
[ 52%] Building CXX object CMakeFiles/remote_thr.dir/perf/remote_thr.cpp.obj
[ 53%] Linking CXX executable bin\remote_thr.exe
[ 53%] Built target remote_thr
Scanning dependencies of target local_lat
[ 53%] Building CXX object CMakeFiles/local_lat.dir/perf/local_lat.cpp.obj
[ 54%] Linking CXX executable bin\local_lat.exe
[ 54%] Built target local_lat
Scanning dependencies of target remote_lat
[ 54%] Building CXX object CMakeFiles/remote_lat.dir/perf/remote_lat.cpp.obj
[ 54%] Linking CXX executable bin\remote_lat.exe
[ 54%] Built target remote_lat
Scanning dependencies of target inproc_thr
[ 54%] Building CXX object CMakeFiles/inproc_thr.dir/perf/inproc_thr.cpp.obj
[ 55%] Linking CXX executable bin\inproc_thr.exe
[ 55%] Built target inproc_thr
Scanning dependencies of target proxy_thr
[ 55%] Building CXX object CMakeFiles/proxy_thr.dir/perf/proxy_thr.cpp.obj
[ 56%] Linking CXX executable bin\proxy_thr.exe
[ 56%] Built target proxy_thr
Scanning dependencies of target benchmark_radix_tree
[ 56%] Building CXX object CMakeFiles/benchmark_radix_tree.dir/perf/benchmark_radix_tree.cpp.obj
[ 56%] Linking CXX executable bin\benchmark_radix_tree.exe
[ 56%] Built target benchmark_radix_tree
Scanning dependencies of target unity
[ 56%] Building C object tests/CMakeFiles/unity.dir/__/external/unity/unity.c.obj
[ 57%] Linking C static library ..\lib\libunity.a
[ 57%] Built target unity
Scanning dependencies of target testutil-static
[ 57%] Building CXX object tests/CMakeFiles/testutil-static.dir/testutil.cpp.obj
[ 58%] Building CXX object tests/CMakeFiles/testutil-static.dir/testutil_monitoring.cpp.obj
[ 58%] Building CXX object tests/CMakeFiles/testutil-static.dir/testutil_security.cpp.obj
[ 58%] Building CXX object tests/CMakeFiles/testutil-static.dir/testutil_unity.cpp.obj
In file included from W:\Temp\libzmq-master\tests\testutil_unity.hpp:34,
                 from W:\Temp\libzmq-master\tests\testutil_unity.cpp:29:
W:\Temp\libzmq-master\tests\testutil.hpp:71:15: error: conflicting declaration of C function 'int closesocket(int)'
 #define close closesocket
               ^~~~~~~~~~~
In file included from W:\Temp\libzmq-master\tests\testutil.hpp:68,
                 from W:\Temp\libzmq-master\tests\testutil_unity.hpp:34,
                 from W:\Temp\libzmq-master\tests\testutil_unity.cpp:29:
C:/Strawberry/c/x86_64-w64-mingw32/include/winsock2.h:975:34: note: previous declaration 'int closesocket(SOCKET)'
   WINSOCK_API_LINKAGE int WSAAPI closesocket(SOCKET s);
                                  ^~~~~~~~~~~
cc1plus.exe: warning: unrecognized command line option '-Wno-tautological-constant-compare'
gmake[2]: *** [tests\CMakeFiles\testutil-static.dir\build.make:105: tests/CMakeFiles/testutil-static.dir/testutil_unity.cpp.obj] Error 1
gmake[1]: *** [CMakeFiles\Makefile2:643: tests/CMakeFiles/testutil-static.dir/all] Error 2
gmake: *** [Makefile:140: all] Error 2

W:\Temp\libzmq-master\build_libzmq>

@Cilyan
Copy link
Author

Cilyan commented Feb 12, 2020

Also, to answer your question, thread.cpp does build now, so the linked issue report indeed fixed the problem.

@0x0badc0de
Copy link

Got the same issue when cross-compiling from sources on linux for win64 with mingw32. libzmq4.3.1 works, 4.3.2 - doesn't.

@stale
Copy link

stale bot commented Jul 9, 2021

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.

@stale stale bot added the stale label Jul 9, 2021
@stale stale bot closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants