=> Building ftp/fastdfs Started : Wednesday, 6 MAR 2019 at 23:38:55 UTC Platform: 5.5-DEVELOPMENT DragonFly v5.5.0.192.g15ae7f0-DEVELOPMENT #34: Tue Feb 19 09:07:07 PST 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.5-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.5-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/construction/ftp/fastdfs XDG_CONFIG_HOME=/construction/ftp/fastdfs HOME=/construction/ftp/fastdfs TMPDIR="/tmp" PATH=/construction/ftp/fastdfs/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- DESTDIR=/construction/ftp/fastdfs/stage PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/construction/ftp/fastdfs XDG_CONFIG_HOME=/construction/ftp/fastdfs HOME=/construction/ftp/fastdfs TMPDIR="/tmp" PATH=/construction/ftp/fastdfs/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/ftp/fastdfs/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- OSREL=5.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.28.1 PERL_VER=5.28 PERL5_MAN1=lib/perl5/site_perl/man/man1 PERL5_MAN3=lib/perl5/site_perl/man/man3 SITE_PERL=lib/perl5/site_perl SITE_ARCH=lib/perl5/site_perl/mach/5.28 PROFILE="@comment " DOCSDIR="share/doc/fastdfs" EXAMPLESDIR="share/examples/fastdfs" DATADIR="share/fastdfs" WWWDIR="www/fastdfs" ETCDIR="etc/fastdfs" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/fastdfs DOCSDIR=/usr/local/share/doc/fastdfs EXAMPLESDIR=/usr/local/share/examples/fastdfs WWWDIR=/usr/local/www/fastdfs ETCDIR=/usr/local/etc/fastdfs -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-BE USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.26.2 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500500 OSVERSION=9999999 OSREL=5.5 _OSRELEASE=5.5-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> License GPLv3+ accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> fastdfs-5.0.11_1 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz Installing pkg-1.10.5_5... Extracting pkg-1.10.5_5: .......... done ===> fastdfs-5.0.11_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of fastdfs-5.0.11_1 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License GPLv3+ accepted by the user ===> Fetching all distfiles required by fastdfs-5.0.11_1 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License GPLv3+ accepted by the user ===> Fetching all distfiles required by fastdfs-5.0.11_1 for building => SHA256 Checksum OK for happyfish100-fastdfs-5.0.11-1e50b4f_GH0.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License GPLv3+ accepted by the user ===> Fetching all distfiles required by fastdfs-5.0.11_1 for building ===> Extracting for fastdfs-5.0.11_1 => SHA256 Checksum OK for happyfish100-fastdfs-5.0.11-1e50b4f_GH0.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for fastdfs-5.0.11_1 ===> Applying ports patches for fastdfs-5.0.11_1 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> fastdfs-5.0.11_1 depends on package: perl5>=5.28.r1<5.29 - not found ===> Installing existing package /packages/All/perl5-5.28.1.txz Installing perl5-5.28.1... Extracting perl5-5.28.1: .......... done Message from perl5-5.28.1: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. ===> fastdfs-5.0.11_1 depends on package: perl5>=5.28.r1<5.29 - found ===> Returning to build of fastdfs-5.0.11_1 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> fastdfs-5.0.11_1 depends on shared library: libfastcommon.so - not found ===> Installing existing package /packages/All/libfastcommon-1.0.36_1.txz Installing libfastcommon-1.0.36_1... Extracting libfastcommon-1.0.36_1: .......... done ===> fastdfs-5.0.11_1 depends on shared library: libfastcommon.so - found (/usr/local/lib/libfastcommon.so) ===> Returning to build of fastdfs-5.0.11_1 -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for fastdfs-5.0.11_1 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for fastdfs-5.0.11_1 cd /construction/ftp/fastdfs/fastdfs-1e50b4f && /usr/bin/env DESTDIR=/construction/ftp/fastdfs/stage PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/construction/ftp/fastdfs XDG_CONFIG_HOME=/construction/ftp/fastdfs HOME=/construction/ftp/fastdfs TMPDIR="/tmp" PATH=/construction/ftp/fastdfs/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" /bin/sh make.sh cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I../common -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_proto.o tracker_proto.c -I../common -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_mem.o tracker_mem.c -I../common -I/usr/local/include/fastcommon tracker_mem.c: In function 'tracker_open_changlog_file': tracker_mem.c:2276:44: warning: '/data' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~ tracker_mem.c:2276:2: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256 snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c:2290:42: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(filename, sizeof(filename), "%s/data/%s", \ ^~~~~~ tracker_mem.c:2290:2: note: 'snprintf' output between 28 and 283 bytes into a destination of size 256 snprintf(filename, sizeof(filename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, STORAGE_SERVERS_CHANGELOG_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c: In function 'tracker_save_groups': tracker_mem.c:1725:50: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(trueFilename, sizeof(trueFilename), "%s/data/%s", \ ^~~~~~ tracker_mem.c:1725:2: note: 'snprintf' output between 29 and 284 bytes into a destination of size 256 snprintf(trueFilename, sizeof(trueFilename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, STORAGE_GROUPS_LIST_FILENAME_NEW); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c:1727:48: warning: '.tmp' directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(tmpFilename, sizeof(tmpFilename), "%s.tmp", trueFilename); ^~~~ tracker_mem.c:1727:2: note: 'snprintf' output between 5 and 260 bytes into a destination of size 256 snprintf(tmpFilename, sizeof(tmpFilename), "%s.tmp", trueFilename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c: In function 'tracker_save_storages': tracker_mem.c:1864:50: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(trueFilename, sizeof(trueFilename), "%s/data/%s", \ ^~~~~~ tracker_mem.c:1864:2: note: 'snprintf' output between 30 and 285 bytes into a destination of size 256 snprintf(trueFilename, sizeof(trueFilename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, STORAGE_SERVERS_LIST_FILENAME_NEW); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c:1866:48: warning: '.tmp' directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(tmpFilename, sizeof(tmpFilename), "%s.tmp", trueFilename); ^~~~ tracker_mem.c:1866:2: note: 'snprintf' output between 5 and 260 bytes into a destination of size 256 snprintf(tmpFilename, sizeof(tmpFilename), "%s.tmp", trueFilename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c: In function 'tracker_save_sync_timestamps': tracker_mem.c:2151:50: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(trueFilename, sizeof(trueFilename), "%s/data/%s", \ ^~~~~~ tracker_mem.c:2151:2: note: 'snprintf' output between 33 and 288 bytes into a destination of size 256 snprintf(trueFilename, sizeof(trueFilename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, STORAGE_SYNC_TIMESTAMP_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c:2153:48: warning: '.tmp' directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(tmpFilename, sizeof(tmpFilename), "%s.tmp", trueFilename); ^~~~ tracker_mem.c:2153:2: note: 'snprintf' output between 5 and 260 bytes into a destination of size 256 snprintf(tmpFilename, sizeof(tmpFilename), "%s.tmp", trueFilename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c: In function 'tracker_write_to_trunk_change_log': tracker_mem.c:4934:52: warning: '/logs/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(full_filename, sizeof(full_filename), "%s/logs/%s", \ ^~~~~~ tracker_mem.c:4934:2: note: 'snprintf' output between 30 and 285 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), "%s/logs/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, TRUNK_SERVER_CHANGELOG_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c: In function 'tracker_load_data': tracker_mem.c:1645:44: warning: '/data' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~ tracker_mem.c:1645:2: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256 snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_mem.c: In function 'tracker_mem_get_sys_files_from_others': tracker_mem.c:3868:52: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~ tracker_mem.c:3868:2: note: 'snprintf' output 7 or more bytes (assuming 262) into a destination of size 256 snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, g_tracker_sys_filenames[file_index]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_service.o tracker_service.c -I../common -I/usr/local/include/fastcommon tracker_service.c: In function 'tracker_check_and_sync': tracker_service.c:388:6: warning: '%s' directive output may be truncated writing up to 45 bytes into a region of size 16 [-Wformat-truncation=] "%s", pTServer->ip_addr); ^~ tracker_service.c:387:4: note: 'snprintf' output between 1 and 46 bytes into a destination of size 16 snprintf(pDestServer->id, FDFS_STORAGE_ID_MAX_SIZE, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s", pTServer->ip_addr); ~~~~~~~~~~~~~~~~~~~~~~~~ tracker_service.c: In function 'tracker_changelog_response': tracker_service.c:484:42: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(filename, sizeof(filename), "%s/data/%s", g_fdfs_base_path,\ ^~~~~~ tracker_service.c:484:2: note: 'snprintf' output between 28 and 283 bytes into a destination of size 256 snprintf(filename, sizeof(filename), "%s/data/%s", g_fdfs_base_path,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ STORAGE_SERVERS_CHANGELOG_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_service.c: In function 'tracker_deal_get_one_sys_file': tracker_service.c:1970:52: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~ tracker_service.c:1970:2: note: 'snprintf' output 7 or more bytes (assuming 262) into a destination of size 256 snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, g_tracker_sys_filenames[index]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_status.o tracker_status.c -I../common -I/usr/local/include/fastcommon tracker_status.c: In function 'tracker_write_status_to_file': tracker_status.c:40:52: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~ tracker_status.c:40:2: note: 'snprintf' output between 22 and 277 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, TRACKER_STATUS_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tracker_status.c: In function 'tracker_load_status_from_file': tracker_status.c:58:52: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~ tracker_status.c:58:2: note: 'snprintf' output between 22 and 277 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, TRACKER_STATUS_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_global.o tracker_global.c -I../common -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_func.o tracker_func.c -I../common -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdfs_shared_func.o fdfs_shared_func.c -I../common -I/usr/local/include/fastcommon fdfs_shared_func.c: In function 'fdfs_load_storage_ids_from_file': fdfs_shared_func.c:979:11: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] "%s/%s", filepath, pStorageIdsFilename); ^ fdfs_shared_func.c:978:4: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256 snprintf(full_filename, sizeof(full_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/%s", filepath, pStorageIdsFilename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_nio.o tracker_nio.c -I../common -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_relationship.o tracker_relationship.c -I../common -I/usr/local/include/fastcommon tracker_relationship.c: In function 'do_notify_leader_changed': tracker_relationship.c:266:45: warning: '%s' directive writing up to 45 bytes into a region of size 22 [-Wformat-overflow=] sprintf(out_buff + sizeof(TrackerHeader), "%s:%d", \ ^~ tracker_relationship.c:266:2: note: 'sprintf' output between 3 and 58 bytes into a destination of size 22 sprintf(out_buff + sizeof(TrackerHeader), "%s:%d", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pLeader->ip_addr, pLeader->port); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_dump.o tracker_dump.c -I../common -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_trackerd fdfs_trackerd.c ../common/fdfs_global.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fdfs_shared_func.o tracker_nio.o tracker_relationship.o tracker_dump.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I/usr/local/include/fastcommon fdfs_trackerd.c: In function 'sigDumpHandler': fdfs_trackerd.c:432:6: warning: '/logs/tracker_dump.log' directive output may be truncated writing 22 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/logs/tracker_dump.log", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~ fdfs_trackerd.c:431:2: note: 'snprintf' output between 23 and 278 bytes into a destination of size 256 snprintf(filename, sizeof(filename), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/logs/tracker_dump.log", g_fdfs_base_path); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdfs_trackerd.c: In function 'main': fdfs_trackerd.c:111:6: warning: '/data/fdfs_trackerd.pid' directive output may be truncated writing 23 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/fdfs_trackerd.pid", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~~ fdfs_trackerd.c:110:2: note: 'snprintf' output between 24 and 279 bytes into a destination of size 256 snprintf(pidFilename, sizeof(pidFilename), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/fdfs_trackerd.pid", g_fdfs_base_path); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_client_thread.o tracker_client_thread.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon tracker_client_thread.c: In function 'tracker_report_join': tracker_client_thread.c:1915:61: warning: '%02d' directive output may be truncated writing between 2 and 4 bytes into a region of size between 1 and 4 [-Wformat-truncation=] snprintf(pReqBody->version, sizeof(pReqBody->version), "%d.%02d", \ ^~~~ tracker_client_thread.c:1915:57: note: directive argument in the range [-128, 127] snprintf(pReqBody->version, sizeof(pReqBody->version), "%d.%02d", \ ^~~~~~~~~ tracker_client_thread.c:1915:2: note: 'snprintf' output between 5 and 10 bytes into a destination of size 6 snprintf(pReqBody->version, sizeof(pReqBody->version), "%d.%02d", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_version.major, g_fdfs_version.minor); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_global.o storage_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_func.o storage_func.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon storage_func.c: In function 'get_storage_stat_filename': storage_func.c:272:7: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/%s", g_fdfs_base_path, STORAGE_STAT_FILENAME); ^~~~~~ storage_func.c:271:2: note: 'snprintf' output between 23 and 278 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/%s", g_fdfs_base_path, STORAGE_STAT_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_func.c: In function 'storage_write_to_sync_ini_file': storage_func.c:633:6: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/%s", g_fdfs_base_path, DATA_DIR_INITED_FILENAME); ^~~~~~ storage_func.c:632:2: note: 'snprintf' output between 22 and 277 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/%s", g_fdfs_base_path, DATA_DIR_INITED_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_func.c: In function 'storage_func_init': storage_func.c:689:44: warning: '/data' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(data_path, sizeof(data_path), "%s/data", \ ^~~~~ storage_func.c:689:2: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256 snprintf(data_path, sizeof(data_path), "%s/data", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path); ~~~~~~~~~~~~~~~~~ storage_func.c:691:53: warning: '%s' directive output may be truncated writing 15 bytes into a region of size between 0 and 255 [-Wformat-truncation=] snprintf(full_filename, sizeof(full_filename), "%s/%s", \ ^~ storage_func.c:691:2: note: 'snprintf' output between 17 and 272 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), "%s/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ data_path, DATA_DIR_INITED_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_service.o storage_service.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon storage_service.c: In function 'storage_sync_append_file': storage_service.c:5902:4: warning: '%ld' directive output may be truncated writing between 1 and 19 bytes into a region of size between 0 and 128 [-Wformat-truncation=] "%s %"PRId64" %"PRId64, \ ^~~~~~ storage_service.c:5902:18: note: format string is defined here "%s %"PRId64" %"PRId64, \ storage_service.c:5902:4: note: directive argument in the range [0, 9223372036854775807] "%s %"PRId64" %"PRId64, \ ^~~~~~ storage_service.c:5900:3: note: 'snprintf' output between 5 and 169 bytes into a destination of size 131 snprintf(pFileContext->fname2log, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(pFileContext->fname2log), \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s %"PRId64" %"PRId64, \ ~~~~~~~~~~~~~~~~~~~~~~~~~ filename, start_offset, append_bytes); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c: In function 'storage_sync_modify_file': storage_service.c:6103:4: warning: '%ld' directive output may be truncated writing between 1 and 19 bytes into a region of size between 0 and 128 [-Wformat-truncation=] "%s %"PRId64" %"PRId64, \ ^~~~~~ storage_service.c:6103:18: note: format string is defined here "%s %"PRId64" %"PRId64, \ storage_service.c:6103:4: note: directive argument in the range [0, 9223372036854775807] "%s %"PRId64" %"PRId64, \ ^~~~~~ storage_service.c:6101:3: note: 'snprintf' output between 5 and 169 bytes into a destination of size 131 snprintf(pFileContext->fname2log, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(pFileContext->fname2log), \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s %"PRId64" %"PRId64, \ ~~~~~~~~~~~~~~~~~~~~~~~~~ filename, start_offset, modify_bytes); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c: In function 'storage_sync_truncate_file': storage_service.c:6295:3: warning: '%ld' directive output may be truncated writing between 1 and 19 bytes into a region of size between 0 and 128 [-Wformat-truncation=] "%s %"PRId64" %"PRId64, \ ^~~~~~ storage_service.c:6295:17: note: format string is defined here "%s %"PRId64" %"PRId64, \ storage_service.c:6295:3: note: directive argument in the range [0, 9223372036854775807] "%s %"PRId64" %"PRId64, \ ^~~~~~ storage_service.c:6293:2: note: 'snprintf' output between 5 and 169 bytes into a destination of size 131 snprintf(pFileContext->fname2log, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(pFileContext->fname2log), \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s %"PRId64" %"PRId64, \ ~~~~~~~~~~~~~~~~~~~~~~~~~ filename, old_file_size, new_file_size); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c: In function 'storage_service_upload_file_done': storage_service.c:2428:25: warning: '%s' directive writing up to 127 bytes into a region of size 124 [-Wformat-overflow=] sprintf(new_fname2log, "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^~~~ storage_service.c:2431:21: store_path_index, new_filename); ~~~~~~~~~~~~ storage_service.c:2428:59: note: format string is defined here sprintf(new_fname2log, "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^~ storage_service.c:2428:2: note: 'sprintf' output between 5 and 132 bytes into a destination of size 128 sprintf(new_fname2log, "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FDFS_STORAGE_STORE_PATH_PREFIX_CHAR, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pFileContext->extra_info.upload.trunk_info.path. \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ store_path_index, new_filename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c:2660:16: warning: '%s' directive writing up to 127 bytes into a region of size between 111 and 127 [-Wformat-overflow=] value_len = sprintf(value, "%s/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~ g_group_name, new_fname2log); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c:2660:16: note: 'sprintf' output between 2 and 145 bytes into a destination of size 128 storage_service.c:2641:35: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 17 [-Wformat-truncation=] storage_service.c:2621:17: pGroupName = value; ~~~~~ storage_service.c:2641:35: FDFS_GROUP_NAME_MAX_LEN + 1, "%s", pGroupName); ^~ storage_service.c:2640:4: note: 'snprintf' output between 1 and 128 bytes into a destination of size 17 snprintf(pFileContext->extra_info.upload.group_name, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FDFS_GROUP_NAME_MAX_LEN + 1, "%s", pGroupName); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c:2492:4: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^~~~ storage_service.c:2492:40: note: format string is defined here "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^ storage_service.c:2491:3: note: 'sprintf' output between 5 and 138 bytes into a destination of size 131 sprintf(pFileContext->fname2log, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FDFS_STORAGE_STORE_PATH_PREFIX_CHAR, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ master_store_path_index, filename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c:2520:10: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size between 125 and 255 [-Wformat-truncation=] "%s %s", pFileContext->fname2log, \ ^~ new_fname2log); ~~~~~~~~~~~~~ storage_service.c:2519:5: note: 'snprintf' output between 2 and 259 bytes into a destination of size 256 snprintf(binlog_buff, sizeof(binlog_buff), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s %s", pFileContext->fname2log, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ new_fname2log); ~~~~~~~~~~~~~~ storage_service.c: In function 'storage_trunk_create_link_file_done_callback': storage_service.c:1251:28: warning: '%s' directive writing up to 127 bytes into a region of size between 125 and 255 [-Wformat-overflow=] sprintf(binlog_msg, "%s %s", \ ^~ pFileContext->fname2log, src_filename); ~~~~~~~~~~~~ storage_service.c:1251:4: note: 'sprintf' output between 2 and 259 bytes into a destination of size 256 sprintf(binlog_msg, "%s %s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pFileContext->fname2log, src_filename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_service.c: In function 'storage_upload_slave_file': storage_service.c:5314:4: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^~~~ storage_service.c:5314:40: note: format string is defined here "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ^ storage_service.c:5312:3: note: 'snprintf' output between 5 and 138 bytes into a destination of size 131 snprintf(pFileContext->fname2log, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(pFileContext->fname2log), \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%c"FDFS_STORAGE_DATA_DIR_FORMAT"/%s", \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FDFS_STORAGE_STORE_PATH_PREFIX_CHAR, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ store_path_index, filename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_sync.o storage_sync.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon storage_sync.c: In function 'get_writable_binlog_filename': storage_sync.c:1125:4: warning: '/data/sync/binlog.' directive output may be truncated writing 18 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^~~~~~~~~~ storage_sync.c:1125:7: note: format string is defined here "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^ storage_sync.c:1124:2: note: 'snprintf' output between 22 and 285 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SYNC_BINLOG_FILE_EXT_FMT, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, g_binlog_index); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c: In function 'get_binlog_readable_filename': storage_sync.c:1528:4: warning: '/data/sync/binlog.' directive output may be truncated writing 18 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^~~~~~~~~~ storage_sync.c:1528:7: note: format string is defined here "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^ storage_sync.c:1527:2: note: 'snprintf' output between 22 and 285 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SYNC_BINLOG_FILE_EXT_FMT, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, pReader->binlog_index); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c: In function 'write_to_binlog_index': storage_sync.c:1084:4: warning: '/data/sync/' directive output may be truncated writing 11 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"SYNC_DIR_NAME"/%s", g_fdfs_base_path, \ ^~~~~~~~~~ storage_sync.c:1084:7: note: format string is defined here "%s/data/"SYNC_DIR_NAME"/%s", g_fdfs_base_path, \ ^~~~~~~~~~~~~~~~~~~~~~ storage_sync.c:1083:2: note: 'snprintf' output between 24 and 279 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"SYNC_DIR_NAME"/%s", g_fdfs_base_path, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SYNC_BINLOG_INDEX_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c: In function 'storage_binlog_fsync': storage_sync.c:1135:4: warning: '/data/sync/binlog.' directive output may be truncated writing 18 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^~~~~~~~~~ storage_sync.c:1135:7: note: format string is defined here "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^ storage_sync.c:1135:4: note: directive argument in the range [-2147483647, 2147483647] "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ^~~~~~~~~~ storage_sync.c:1134:2: note: 'snprintf' output between 22 and 285 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"SYNC_DIR_NAME"/"SYNC_BINLOG_FILE_PREFIX"" \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SYNC_BINLOG_FILE_EXT_FMT, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, binlog_index); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c: In function 'storage_sync_init': storage_sync.c:1195:44: warning: '/data' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~ storage_sync.c:1195:2: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256 snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c:1212:4: warning: '/sync' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/"SYNC_DIR_NAME, data_path); ^~~~~ storage_sync.c:1212:7: note: format string is defined here "%s/"SYNC_DIR_NAME, data_path); ^ storage_sync.c:1211:2: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256 snprintf(sync_path, sizeof(sync_path), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/"SYNC_DIR_NAME, data_path); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c:1240:8: warning: '%s' directive output may be truncated writing 12 bytes into a region of size between 0 and 255 [-Wformat-truncation=] "%s/%s", sync_path, SYNC_BINLOG_INDEX_FILENAME); ^~ storage_sync.c:1239:2: note: 'snprintf' output between 14 and 269 bytes into a destination of size 256 snprintf(full_filename, sizeof(full_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/%s", sync_path, SYNC_BINLOG_INDEX_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c: In function 'storage_reader_init': storage_sync.c:1595:3: warning: '/data/sync/' directive output may be truncated writing 11 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"SYNC_DIR_NAME"/%s_%d%s", g_fdfs_base_path, \ ^~~~~~~~~~ storage_sync.c:1595:6: note: format string is defined here "%s/data/"SYNC_DIR_NAME"/%s_%d%s", g_fdfs_base_path, \ ^~~~~~~~~~~~~~~~~~~~~~ storage_sync.c:1594:2: note: 'snprintf' output between 19 and 299 bytes into a destination of size 256 snprintf(full_filename, filename_size, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"SYNC_DIR_NAME"/%s_%d%s", g_fdfs_base_path, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ip_addr, port, SYNC_MARK_FILE_EXT); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c: In function 'storage_unlink_mark_file': storage_sync.c:2472:7: warning: '%04d' directive output may be truncated writing between 4 and 11 bytes into a region of size between 0 and 255 [-Wformat-truncation=] "%s.%04d%02d%02d%02d%02d%02d", old_filename, \ ^~~~ storage_sync.c:2472:3: note: directive argument in the range [-2147481748, 2147483647] "%s.%04d%02d%02d%02d%02d%02d", old_filename, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage_sync.c:2472:3: note: directive argument in the range [-2147483647, 2147483647] storage_sync.c:2471:2: note: 'snprintf' output between 16 and 323 bytes into a destination of size 256 snprintf(new_filename, sizeof(new_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s.%04d%02d%02d%02d%02d%02d", old_filename, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tm.tm_hour, tm.tm_min, tm.tm_sec); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_nio.o storage_nio.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_dio.o storage_dio.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_ip_changed_dealer.o storage_ip_changed_dealer.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_param_getter.o storage_param_getter.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_disk_recovery.o storage_disk_recovery.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon storage_disk_recovery.c: In function 'storage_disk_recovery_start': storage_disk_recovery.c:961:37: warning: '%s' directive writing up to 127 bytes into a region of size between 114 and 124 [-Wformat-overflow=] sprintf(trunkFileId.line, "%d %c %s", \ ^~ storage_disk_recovery.c:963:21: record.op_type, record.filename); ~~~~~~~~~~~~~~~ storage_disk_recovery.c:961:4: note: 'sprintf' output between 5 and 142 bytes into a destination of size 128 sprintf(trunkFileId.line, "%d %c %s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (int)record.timestamp, \ ~~~~~~~~~~~~~~~~~~~~~~~~ record.op_type, record.filename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_mem.o trunk_mgr/trunk_mem.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon trunk_mgr/trunk_mem.c: In function 'storage_trunk_get_data_filename': trunk_mgr/trunk_mem.c:134:44: warning: '/data/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(full_filename, MAX_PATH_SIZE, "%s/data/%s", \ ^~~~~~ trunk_mgr/trunk_mem.c:134:2: note: 'snprintf' output between 24 and 279 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, "%s/data/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, STORAGE_TRUNK_DATA_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_mem.c: In function 'storage_trunk_do_save': trunk_mgr/trunk_mem.c:410:48: warning: '/data/.' directive writing 7 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(callback_args.temp_trunk_filename, "%s/data/.%s.tmp", \ ^~~~~~~ trunk_mgr/trunk_mem.c:410:2: note: 'sprintf' output between 29 and 284 bytes into a destination of size 256 sprintf(callback_args.temp_trunk_filename, "%s/data/.%s.tmp", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path, STORAGE_TRUNK_DATA_FILENAME); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_shared.o trunk_mgr/trunk_shared.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_sync.o trunk_mgr/trunk_sync.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon trunk_mgr/trunk_sync.c: In function 'get_binlog_readable_filename': trunk_mgr/trunk_sync.c:781:3: warning: '/data/trunk/binlog' directive output may be truncated writing 18 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"TRUNK_DIR_NAME"/"TRUNK_SYNC_BINLOG_FILENAME, \ ^~~~~~~~~~ trunk_mgr/trunk_sync.c:781:6: note: format string is defined here "%s/data/"TRUNK_DIR_NAME"/"TRUNK_SYNC_BINLOG_FILENAME, \ ^ trunk_mgr/trunk_sync.c:780:2: note: 'snprintf' output between 19 and 274 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"TRUNK_DIR_NAME"/"TRUNK_SYNC_BINLOG_FILENAME, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path); ~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c: In function 'get_trunk_binlog_filename': trunk_mgr/trunk_sync.c:68:3: warning: '/data/trunk/binlog' directive output may be truncated writing 18 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"TRUNK_DIR_NAME"/"TRUNK_SYNC_BINLOG_FILENAME, \ ^~~~~~~~~~ trunk_mgr/trunk_sync.c:68:6: note: format string is defined here "%s/data/"TRUNK_DIR_NAME"/"TRUNK_SYNC_BINLOG_FILENAME, \ ^ trunk_mgr/trunk_sync.c:67:2: note: 'snprintf' output between 19 and 274 bytes into a destination of size 256 snprintf(full_filename, MAX_PATH_SIZE, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"TRUNK_DIR_NAME"/"TRUNK_SYNC_BINLOG_FILENAME, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_fdfs_base_path); ~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c: In function 'trunk_binlog_merge_file': trunk_mgr/trunk_sync.c:380:27: warning: '.tmp' directive writing 4 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(tmp_filename, "%s.tmp", binlog_filename); ^~~~ trunk_mgr/trunk_sync.c:380:2: note: 'sprintf' output between 5 and 260 bytes into a destination of size 256 sprintf(tmp_filename, "%s.tmp", binlog_filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c: In function 'trunk_sync_init': trunk_mgr/trunk_sync.c:124:44: warning: '/data' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~ trunk_mgr/trunk_sync.c:124:2: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256 snprintf(data_path, sizeof(data_path), "%s/data", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c:141:4: warning: '/trunk' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/"TRUNK_DIR_NAME, data_path); ^~~~~ trunk_mgr/trunk_sync.c:141:7: note: format string is defined here "%s/"TRUNK_DIR_NAME, data_path); ^ trunk_mgr/trunk_sync.c:140:2: note: 'snprintf' output between 7 and 262 bytes into a destination of size 256 snprintf(sync_path, sizeof(sync_path), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/"TRUNK_DIR_NAME, data_path); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c: In function 'trunk_reader_init': trunk_mgr/trunk_sync.c:848:3: warning: '/data/trunk/' directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/"TRUNK_DIR_NAME"/%s_%d%s", g_fdfs_base_path, \ ^~~~~~~~~~ trunk_mgr/trunk_sync.c:848:6: note: format string is defined here "%s/data/"TRUNK_DIR_NAME"/%s_%d%s", g_fdfs_base_path, \ ^~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c:847:2: note: 'snprintf' output between 20 and 300 bytes into a destination of size 256 snprintf(full_filename, filename_size, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/"TRUNK_DIR_NAME"/%s_%d%s", g_fdfs_base_path, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ip_addr, port, TRUNK_SYNC_MARK_FILE_EXT); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c: In function 'trunk_unlink_mark_file': trunk_mgr/trunk_sync.c:1231:7: warning: '%04d' directive output may be truncated writing between 4 and 11 bytes into a region of size between 0 and 255 [-Wformat-truncation=] "%s.%04d%02d%02d%02d%02d%02d", old_filename, \ ^~~~ trunk_mgr/trunk_sync.c:1231:3: note: directive argument in the range [-2147481748, 2147483647] "%s.%04d%02d%02d%02d%02d%02d", old_filename, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk_mgr/trunk_sync.c:1231:3: note: directive argument in the range [-2147483647, 2147483647] trunk_mgr/trunk_sync.c:1230:2: note: 'snprintf' output between 16 and 323 bytes into a destination of size 256 snprintf(new_filename, sizeof(new_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s.%04d%02d%02d%02d%02d%02d", old_filename, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tm.tm_hour, tm.tm_min, tm.tm_sec); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_client.o trunk_mgr/trunk_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_free_block_checker.o trunk_mgr/trunk_free_block_checker.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/client_global.o ../client/client_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/tracker_client.o ../client/tracker_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/storage_client.o ../client/storage_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/client_func.o ../client/client_func.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_proto.o fdht_client/fdht_proto.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_client.o fdht_client/fdht_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_func.o fdht_client/fdht_func.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_global.o fdht_client/fdht_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_dump.o storage_dump.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_storaged fdfs_storaged.c ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_service.o storage_sync.o storage_nio.o storage_dio.o storage_ip_changed_dealer.o storage_param_getter.o storage_disk_recovery.o trunk_mgr/trunk_mem.o trunk_mgr/trunk_shared.o trunk_mgr/trunk_sync.o trunk_mgr/trunk_client.o trunk_mgr/trunk_free_block_checker.o ../client/client_global.o ../client/tracker_client.o ../client/storage_client.o ../client/client_func.o fdht_client/fdht_proto.o fdht_client/fdht_client.o fdht_client/fdht_func.o fdht_client/fdht_global.o storage_dump.o -lpthread -L/usr/local/lib -lfastcommon -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include/fastcommon fdfs_storaged.c: In function 'sigDumpHandler': fdfs_storaged.c:549:6: warning: '/logs/storage_dump.log' directive output may be truncated writing 22 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/logs/storage_dump.log", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~ fdfs_storaged.c:548:2: note: 'snprintf' output between 23 and 278 bytes into a destination of size 256 snprintf(filename, sizeof(filename), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/logs/storage_dump.log", g_fdfs_base_path); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdfs_storaged.c: In function 'main': fdfs_storaged.c:113:6: warning: '/data/fdfs_storaged.pid' directive output may be truncated writing 23 bytes into a region of size between 1 and 256 [-Wformat-truncation=] "%s/data/fdfs_storaged.pid", g_fdfs_base_path); ^~~~~~~~~~~~~~~~~~~~~~~ fdfs_storaged.c:112:2: note: 'snprintf' output between 24 and 279 bytes into a destination of size 256 snprintf(pidFilename, sizeof(pidFilename), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/data/fdfs_storaged.pid", g_fdfs_base_path); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_http_shared.o ../common/fdfs_http_shared.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/mime_file_parser.o ../common/mime_file_parser.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../common/fdfs_global.lo ../common/fdfs_global.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../common/fdfs_http_shared.lo ../common/fdfs_http_shared.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../common/mime_file_parser.lo ../common/mime_file_parser.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../tracker/tracker_proto.lo ../tracker/tracker_proto.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../tracker/fdfs_shared_func.lo ../tracker/fdfs_shared_func.c -I../common -I../tracker -I/usr/local/include/fastcommon ../tracker/fdfs_shared_func.c: In function 'fdfs_load_storage_ids_from_file': ../tracker/fdfs_shared_func.c:979:11: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] "%s/%s", filepath, pStorageIdsFilename); ^ ../tracker/fdfs_shared_func.c:978:4: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256 snprintf(full_filename, sizeof(full_filename), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/%s", filepath, pStorageIdsFilename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../storage/trunk_mgr/trunk_shared.lo ../storage/trunk_mgr/trunk_shared.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o tracker_client.lo tracker_client.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o client_func.lo client_func.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o client_global.lo client_global.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o storage_client.lo storage_client.c -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_monitor fdfs_monitor.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_test fdfs_test.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon fdfs_test.c: In function 'main': fdfs_test.c:286:24: warning: '%s' directive writing up to 255 bytes into a region of size between 111 and 127 [-Wformat-overflow=] sprintf(file_id, "%s/%s", group_name, remote_filename); ^~ ~~~~~~~~~~~~~~~ fdfs_test.c:286:3: note: 'sprintf' output between 2 and 273 bytes into a destination of size 128 sprintf(file_id, "%s/%s", group_name, remote_filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdfs_test.c:378:24: warning: '%s' directive writing up to 255 bytes into a region of size between 111 and 127 [-Wformat-overflow=] sprintf(file_id, "%s/%s", group_name, remote_filename); ^~ ~~~~~~~~~~~~~~~ fdfs_test.c:378:3: note: 'sprintf' output between 2 and 273 bytes into a destination of size 128 sprintf(file_id, "%s/%s", group_name, remote_filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_test1 fdfs_test1.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_crc32 fdfs_crc32.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_upload_file fdfs_upload_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_download_file fdfs_download_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_delete_file fdfs_delete_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_file_info fdfs_file_info.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_appender_test fdfs_appender_test.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon fdfs_appender_test.c: In function 'main': fdfs_appender_test.c:250:23: warning: '%s' directive writing up to 255 bytes into a region of size between 111 and 127 [-Wformat-overflow=] sprintf(file_id, "%s/%s", group_name, remote_filename); ^~ ~~~~~~~~~~~~~~~ fdfs_appender_test.c:250:2: note: 'sprintf' output between 2 and 273 bytes into a destination of size 128 sprintf(file_id, "%s/%s", group_name, remote_filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_appender_test1 fdfs_appender_test1.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon fdfs_appender_test1.c: In function 'main': fdfs_appender_test1.c:248:43: warning: '%s' directive writing up to 255 bytes into a region of size between 188 and 248 [-Wformat-overflow=] url_len = sprintf(file_url, "http://%s%s/%s", \ ^~ pTrackerServer->ip_addr, szPortPart, file_id); ~~~~~~~ fdfs_appender_test1.c:248:12: note: 'sprintf' output between 9 and 324 bytes into a destination of size 256 url_len = sprintf(file_url, "http://%s%s/%s", \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pTrackerServer->ip_addr, szPortPart, file_id); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_append_file fdfs_append_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_upload_appender fdfs_upload_appender.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -L/usr/local/lib -lfastcommon -I../common -I../tracker -I/usr/local/include/fastcommon ar cru libfdfsclient.a ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o libfdfsclient.so -shared ../common/fdfs_global.lo ../common/fdfs_http_shared.lo ../common/mime_file_parser.lo ../tracker/tracker_proto.lo ../tracker/fdfs_shared_func.lo ../storage/trunk_mgr/trunk_shared.lo tracker_client.lo client_func.lo client_global.lo storage_client.lo -lpthread -L/usr/local/lib -lfastcommon -Wl,-soname,libfdfsclient.so -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> fastdfs-5.0.11_1 depends on package: perl5>=5.28.r1<5.29 - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for fastdfs-5.0.11_1 ===> Generating temporary packing list ===> Creating groups. ===> Creating users cd /construction/ftp/fastdfs/fastdfs-1e50b4f && /usr/bin/env DESTDIR=/construction/ftp/fastdfs/stage PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/construction/ftp/fastdfs XDG_CONFIG_HOME=/construction/ftp/fastdfs HOME=/construction/ftp/fastdfs TMPDIR="/tmp" PATH=/construction/ftp/fastdfs/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" /bin/sh make.sh install mkdir -p /construction/ftp/fastdfs/stage/usr/local/bin mkdir -p /construction/ftp/fastdfs/stage/usr/local/etc/fdfs install -s fdfs_trackerd /construction/ftp/fastdfs/stage/usr/local/bin if [ ! -f /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/tracker.conf.sample ]; then cp -f ../conf/tracker.conf /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/tracker.conf.sample; fi if [ ! -f /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/storage_ids.conf.sample ]; then cp -f ../conf/storage_ids.conf /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/storage_ids.conf.sample; fi if [ ! -f /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/storage_ids.conf.sample ]; then cp -f ../conf/storage_ids.conf /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/storage_ids.conf.sample; fi mkdir -p /construction/ftp/fastdfs/stage/usr/local/bin mkdir -p /construction/ftp/fastdfs/stage/usr/local/etc/fdfs install -s fdfs_storaged /construction/ftp/fastdfs/stage/usr/local/bin if [ ! -f /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/storage.conf.sample ]; then cp -f ../conf/storage.conf /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/storage.conf.sample; fi mkdir -p /construction/ftp/fastdfs/stage/usr/local/bin mkdir -p /construction/ftp/fastdfs/stage/usr/local/etc/fdfs mkdir -p /construction/ftp/fastdfs/stage/usr/local/lib mkdir -p /construction/ftp/fastdfs/stage/usr/local/lib install -s fdfs_monitor fdfs_test fdfs_test1 fdfs_crc32 fdfs_upload_file fdfs_download_file fdfs_delete_file fdfs_file_info fdfs_appender_test fdfs_appender_test1 fdfs_append_file fdfs_upload_appender /construction/ftp/fastdfs/stage/usr/local/bin if [ 0 -eq 1 ]; then install -s libfdfsclient.a /construction/ftp/fastdfs/stage/usr/local/lib; install -s libfdfsclient.a /construction/ftp/fastdfs/stage/usr/local/lib/;fi if [ 1 -eq 1 ]; then install -s libfdfsclient.so /construction/ftp/fastdfs/stage/usr/local/lib; install -s libfdfsclient.so /construction/ftp/fastdfs/stage/usr/local/lib/;fi mkdir -p /construction/ftp/fastdfs/stage/usr/local/include/fastdfs cp -f ../common/fdfs_define.h ../common/fdfs_global.h ../common/mime_file_parser.h ../common/fdfs_http_shared.h ../tracker/tracker_types.h ../tracker/tracker_proto.h ../tracker/fdfs_shared_func.h ../storage/trunk_mgr/trunk_shared.h tracker_client.h storage_client.h storage_client1.h client_func.h client_global.h fdfs_client.h /construction/ftp/fastdfs/stage/usr/local/include/fastdfs if [ ! -f /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/client.conf.sample ]; then cp -f ../conf/client.conf /construction/ftp/fastdfs/stage/usr/local/etc/fdfs/client.conf.sample; fi install -m 555 /construction/ftp/fastdfs/fdfs_status /construction/ftp/fastdfs/stage/usr/local/bin ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for fastdfs-5.0.11_1 file sizes/checksums [39]: . done packing files [39]: . done packing directories [3]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Wednesday, 6 MAR 2019 at 23:39:40 UTC Duration: 00:00:45