bhlucas
(usa CentOS)
Enviado em 16/08/2024 - 12:55h
segue o erro versao 2.4.0 ./ configue OK na hora do #make erro
config.status: creating po/Makefile.in
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
[root@proxy sarg-2.4.0]# make
gcc -c -I. -DBINDIR=\"/usr/local/bin\" -DSYSCONFDIR=\"/usr/local/etc\" -DFONTDIR=\"/usr/local/share/sarg/fonts\" -DIMAGEDIR=\"/usr/local/share/sarg/images\" -DSARGPHPDIR=\"/var/www/html\" -DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE_NAME=\"sarg\" -DPACKAGE_TARNAME=\"sarg\" -DPACKAGE_VERSION=\"2.4.0\" -DPACKAGE_STRING=\"sarg\ 2.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_CTYPE_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_STDARG_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MATH_H=1 -DHAVE_LIBINTL_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_GETOPT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FNMATCH_H=1 -DHAVE_GD_H=1 -DHAVE_GDFONTL_H=1 -DHAVE_GDFONTT_H=1 -DHAVE_GDFONTS_H=1 -DHAVE_GDFONTMB_H=1 -DHAVE_GDFONTG_H=1 -DHAVE_LDAP_CDEFS_H=1 -DHAVE_LDAP_FEATURES_H=1 -DHAVE_LDAP_H=1 -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_ICONV_H=1 -DHAVE_PCRE_H=1 -DHAVE_GLOB_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_LZMA_H=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_FOPEN64=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_BACKTRACE=1 -DHAVE_SYMLINK=1 -DHAVE_LSTAT=1 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_MKSTEMP=1 -DHAVE_FNMATCH=1 -DSIZEOF_RLIM_T=8 -DRLIM_STRING=\"%lli\" -DHAVE__USR_SHARE_SGML_DOCBOOK_XSL_STYLESHEETS_MANPAGES_DOCBOOK_XSL=1 -DHAVE__USR_SHARE_SGML_DOCBOOK_XSL_STYLESHEETS_HTML_ONECHUNK_XSL=1 -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -
Werror=implicit-function-declaration -Werror=format util.c
util.c: In function ‘vrfydir’:
util.c:589:43: error: ‘%03d’ directive output may be truncated writing between 3 and 11 bytes into a region of size 4 [-Werror=format-truncation=]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~
util.c:589:42: note: directive argument in the range [-2147483647, 2147483647]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~
util.c:589:17: note: ‘snprintf’ output between 4 and 12 bytes into a destination of size 4
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util.c:589:43: error: ‘%03d’ directive output may be truncated writing between 3 and 11 bytes into a region of size 4 [-Werror=format-truncation=]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~
util.c:589:42: note: directive argument in the range [-2147483647, 2147483647]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~
util.c:589:17: note: ‘snprintf’ output between 4 and 12 bytes into a destination of size 4
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util.c:589:43: error: ‘%03d’ directive output may be truncated writing between 3 and 11 bytes into a region of size 4 [-Werror=format-truncation=]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~
util.c:589:42: note: directive argument in the range [-2147483647, 2147483647]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~
util.c:589:17: note: ‘snprintf’ output between 4 and 12 bytes into a destination of size 4
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util.c:589:43: error: ‘%03d’ directive output may be truncated writing between 3 and 11 bytes into a region of size 4 [-Werror=format-truncation=]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~
util.c:589:42: note: directive argument in the range [-2147483647, 2147483647]
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~
util.c:589:17: note: ‘snprintf’ output between 4 and 12 bytes into a destination of size 4
589 | snprintf(str,sizeof(str),"%03d",month);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make: *** [Makefile:75: util.o] Error 1
[root@proxy sarg-2.4.0]#