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.sh error ubuntu 20.04 #88

Open
madness85 opened this issue Jun 10, 2020 · 3 comments
Open

make.sh error ubuntu 20.04 #88

madness85 opened this issue Jun 10, 2020 · 3 comments

Comments

@madness85
Copy link

../misc/bt_misc.cpp: In function ‘std::string time2a(time_t)’: ../misc/bt_misc.cpp:335:19: warning: ‘%02d’ directive writing between 2 and 11 bytes into a region of size between 8 and 15 [-Wformat-overflow=] 335 | sprintf(b, "%04d-%02d-%02d %02d:%02d:%02d", date->tm_year + 1900, date->tm_mon + 1, date->tm_mday, date->tm_hour, date->tm_min, date->tm_sec); | ^~~~ ../misc/bt_misc.cpp:335:13: note: directive argument in the range [-2147483647, 2147483647] 335 | sprintf(b, "%04d-%02d-%02d %02d:%02d:%02d", date->tm_year + 1900, date->tm_mon + 1, date->tm_mday, date->tm_hour, date->tm_min, date->tm_sec); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from /usr/include/boost/iterator/iterator_traits.hpp:10, from /usr/include/boost/range/iterator_range_core.hpp:26, from /usr/include/boost/range/iterator_range.hpp:13, from ../misc/xbt/data_ref.h:3, from ../misc/xbt/bt_misc.h:3, from ../misc/bt_misc.cpp:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 20 and 72 bytes into a destination of size 20 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@madness85
Copy link
Author

Installed gcc --version
gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0

Its working, i take 9 isn't compatible yet?

@OlafvdSpek
Copy link
Owner

It's a warning, not an error..
Are you using the latest version of XBT Tracker?

@madness85
Copy link
Author

It's a warning, not an error..
Are you using the latest version of XBT Tracker?

Sent you an email buddy.

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