Building czmq 3.0.2_1 on FreeBSD 11.1/amd64 in poudriere ends with this error message: ===> Building for czmq-3.0.2_1 Making all in doc /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I./src -I/usr/local/include -I./include -pedantic -Werror -Wall -Wc++-compat -D__BSD_VISIBLE -D_REENTRANT -D_THREAD_SAFE -O2 -pipe -fstack-protector -fno-strict-aliasing -MT src/src_libczmq_la-zactor.lo -MD -MP -MF src/.deps/src_libczmq_la-zactor.Tpo -c -o src/src_libczmq_la-zactor.lo `test -f 'src/zactor.c' || echo './'`src/zactor.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I./src -I/usr/local/include -I./include -pedantic -Werror -Wall -Wc++-compat -D__BSD_VISIBLE -D_REENTRANT -D_THREAD_SAFE -O2 -pipe -fstack-protector -fno-strict-aliasing -MT src/src_libczmq_la-zactor.lo -MD -MP -MF src/.deps/src_libczmq_la-zactor.Tpo -c src/zactor.c -fPIC -DPIC -o src/.libs/src_libczmq_la-zactor.o In file included from src/zactor.c:34: In file included from ./src/../include/czmq.h:30: In file included from ./include/czmq_library.h:24: In file included from ./include/czmq_prelude.h:210: /usr/local/include/zmq_utils.h:40:32: error: unknown warning group '-Wcpp', ignored [-Werror,-Wunknown-pragmas] #pragma GCC diagnostic warning "-Wcpp" ^ /usr/local/include/zmq_utils.h:41:32: error: unknown warning group '-Werror', ignored [-Werror,-Wunknown-pragmas] #pragma GCC diagnostic ignored "-Werror" ^ /usr/local/include/zmq_utils.h:44:9: warning: Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h. [-W#pragma-messages] #pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.") ^ 1 warning and 2 errors generated. *** Error code 1 Stop. make[2]: stopped in /wrkdirs/usr/ports/net/czmq/work/czmq-3.0.2 *** Error code 1 Stop. make[1]: stopped in /wrkdirs/usr/ports/net/czmq/work/czmq-3.0.2 *** Error code 1 Stop.
This commit added the warning: https://github.com/zeromq/libzmq/commit/d5b66295d478fa4bb4ceedd1185a0d2bfcd7bcaf#diff-d5d9e3af59f99930af8f956c3e4644c8
tldr: czmq needs its -werror flag overridden (done in net/libzmq* already). Stand by.
A commit references this bug: Author: koobs Date: Mon Aug 21 10:35:43 UTC 2017 New revision: 448460 URL: https://svnweb.freebsd.org/changeset/ports/448460 Log: net/czmq: Squash -Werror flag zmq_utils.h functionality was moved to zmq.h since 4.2.0, with a deprecation warning added. ports r448376 updated libzm4 to 4.2.2, which caused a build error in net/cmzq due to the -Werror flag (set by default): /usr/local/include/zmq_utils.h:41:32: error: unknown warning group '-Werror', ignored [-Werror,-Wunknown-warning-option] #pragma GCC diagnostic ignored "-Werror" ^ /usr/local/include/zmq_utils.h:44:9: warning: Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h. [-W#pragma-messages] #pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.") ^ Squash the -Werror flag (as done in net/libzmq4) accordingly. While I'm here: - Modernize test target - Group build related entries (MAKE_ENV/CPPFLAGS) PR: 221688 Reported by: olgeni, Jan Bramkamp <crest_maintainer rlwinm de> MFH: 2017Q3 Changes: head/net/czmq/Makefile
A commit references this bug: Author: koobs Date: Mon Aug 21 10:38:43 UTC 2017 New revision: 448461 URL: https://svnweb.freebsd.org/changeset/ports/448461 Log: MFH: r448460 net/czmq: Squash -Werror flag zmq_utils.h functionality was moved to zmq.h since 4.2.0, with a deprecation warning added. ports r448376 updated libzm4 to 4.2.2, which caused a build error in net/cmzq due to the -Werror flag (set by default): /usr/local/include/zmq_utils.h:41:32: error: unknown warning group '-Werror', ignored [-Werror,-Wunknown-warning-option] #pragma GCC diagnostic ignored "-Werror" ^ /usr/local/include/zmq_utils.h:44:9: warning: Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h. [-W#pragma-messages] #pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.") ^ Squash the -Werror flag (as done in net/libzmq4) accordingly. While I'm here: - Modernize test target - Group build related entries (MAKE_ENV/CPPFLAGS) PR: 221688 Reported by: olgeni, Jan Bramkamp <crest_maintainer rlwinm de> Approved by: ports-secteam (blanket) Changes: _U branches/2017Q3/ branches/2017Q3/net/czmq/Makefile
Committed and merged (to quarterly). Apologies for the noise, thank you kindly for the reports :)