filemq icon indicating copy to clipboard operation
filemq copied to clipboard

make check fail

Open Havanero opened this issue 5 years ago • 1 comments

CC src/src_libfilemq_la-fmq_msg.lo CC src/src_libfilemq_la-fmq_server.lo In file included from src/fmq_server.c:71:0: src/fmq_server_engine.inc: In function ‘s_client_free’: src/fmq_server_engine.inc:274:23: error: ‘__builtin___snprintf_chk’ output truncated before the last format character [-Werror=format-truncation=] "%6d:%-33s", self->unique_id, string); ^ In file included from /usr/include/stdio.h:862:0, from /usr/local/include/zmq.h:59, from /usr/local/include/czmq_prelude.h:217, from /usr/local/include/czmq_library.h:23, from /usr/local/include/czmq.h:37, from src/../include/filemq_library.h:25, from src/../include/filemq.h:18, from src/filemq_classes.h:25, from src/fmq_server.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 41 and 46 bytes into a destination of size 40 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/fmq_server.c:71:0: src/fmq_server_engine.inc: In function ‘s_server_handle_protocol’: src/fmq_server_engine.inc:274:23: error: ‘__builtin___snprintf_chk’ output truncated before the last format character [-Werror=format-truncation=] "%6d:%-33s", self->unique_id, string); ^

Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic

Havanero avatar Apr 09 '19 04:04 Havanero

I got the same issue when building CZMQ v3.0.2 with GCC7. I solved by patching in the fix in this commit: https://github.com/zeromq/czmq/pull/1618/commits

Specifically: https://github.com/zeromq/czmq/pull/1618/commits/b651cb479235751b22b8f9a822a2fc6bc1be01ab

georgeslabreche avatar May 25 '21 20:05 georgeslabreche