naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
153 stars 63 forks source link

naemon-1.0.6 fails to build using gcc v7 (Fedora-27) #227

Closed olahaye74 closed 6 years ago

olahaye74 commented 6 years ago

make[2]: Entering directory '/root/rpmbuild/BUILD/naemon-1.0.6/naemon-core' CC src/naemon/broker.lo CC src/naemon/checks.lo src/naemon/checks.c: In function 'process_check_result_queue': src/naemon/checks.c:243:38: error: 'builtin_snprintf_chk' output may be truncated before the last format character [-Werror=format-truncation=] snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); ^ In file included from /usr/include/stdio.h:862:0, from src/naemon/checks.h:9, from src/naemon/checks.c:1: /usr/include/bits/stdio2.h:64:10: note: 'builtin_snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 return builtin___snprintf_chk (s, n, USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~ bos (s), fmt, va_arg_pack ());


cc1: all warnings being treated as errors
make[2]: *** [Makefile:1881: src/naemon/checks.lo] Error 1
make[2]: Leaving directory '/root/rpmbuild/BUILD/naemon-1.0.6/naemon-core'
make[1]: *** [Makefile:1213: all] Error 2
make[1]: Leaving directory '/root/rpmbuild/BUILD/naemon-1.0.6/naemon-core'
make: *** [Makefile:21: naemon-core] Error 2
jacobbaungard commented 6 years ago

This is fixed in the master branch and will be part of the next release, see: https://github.com/naemon/naemon-core/pull/217

olahaye74 commented 6 years ago

Sorry I did only check oipenned issues :-( any schedule for next release?

jacobbaungard commented 6 years ago

No problem, and many thanks for the report, always appreciated!

I think the next release will happen this or next week. I'll leave this open until the release is ready.

jacobbaungard commented 6 years ago

1.0.7 has been released now!