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

make check fail #80

Open
Havanero opened this issue Apr 9, 2019 · 1 comment
Open

make check fail #80

Havanero opened this issue Apr 9, 2019 · 1 comment

Comments

@Havanero
Copy link

Havanero commented Apr 9, 2019

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

@georgeslabreche
Copy link

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:
zeromq/czmq@b651cb4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants