=> Building comms/smstools3 Started : Monday, 8 JUL 2019 at 08:07:00 UTC Platform: 5.7-DEVELOPMENT DragonFly v5.7.0.83.g49866-DEVELOPMENT #40: Sun Jun 30 03:00:04 PDT 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.4-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.4-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 -------------------------------------------------- ===> The following configuration options are available for smstools-3.1.21: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples STATS=on: Build status and statistics support UTF8=on: Unicode UTF-8 encoding support ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- MAKE=gmake XDG_DATA_HOME=/construction/comms/smstools3 XDG_CONFIG_HOME=/construction/comms/smstools3 HOME=/construction/comms/smstools3 TMPDIR="/tmp" PATH=/construction/comms/smstools3/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CMAKE_PREFIX_PATH="/usr/local" -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/comms/smstools3 XDG_CONFIG_HOME=/construction/comms/smstools3 HOME=/construction/comms/smstools3 TMPDIR="/tmp" PATH=/construction/comms/smstools3/.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 -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing " CPP="cpp" CPPFLAGS="-DLIBICONV_PLUG -isystem /usr/local/include" LDFLAGS=" -linotify -L/usr/lib -L/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include " 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/comms/smstools3/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- SPOOLDIR="/var/spool/sms" LOGDIR="/var/log/smsd" PIDDIR="/var/run/smsd" SMSD_USER="uucp" SMSD_GROUP="dialer" PORTDOCS="" PORTEXAMPLES="" OSREL=5.4 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/smstools" EXAMPLESDIR="share/examples/smstools" DATADIR="share/smstools" WWWDIR="www/smstools" ETCDIR="etc/smstools" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- SPOOLDIR="/var/spool/sms" LOGDIR="/var/log/smsd" PIDDIR="/var/run/smsd" SMSD_USER="uucp" SMSD_GROUP="dialer" PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/smstools DOCSDIR=/usr/local/share/doc/smstools EXAMPLESDIR=/usr/local/share/examples/smstools WWWDIR=/usr/local/www/smstools ETCDIR=/usr/local/etc/smstools -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-5.4 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 HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.28.1 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500400 OSVERSION=9999999 OSREL=5.4 _OSRELEASE=5.4-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> smstools-3.1.21 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.11.1.txz Installing pkg-1.11.1... Extracting pkg-1.11.1: .......... done ===> smstools-3.1.21 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of smstools-3.1.21 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by smstools-3.1.21 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by smstools-3.1.21 for building => SHA256 Checksum OK for smstools3-3.1.21.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by smstools-3.1.21 for building ===> Extracting for smstools-3.1.21 => SHA256 Checksum OK for smstools3-3.1.21.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for smstools-3.1.21 ===> Applying ports patches for smstools-3.1.21 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> smstools-3.1.21 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_3.txz Installing gmake-4.2.1_3... `-- Installing gettext-runtime-0.20.1... | `-- Installing indexinfo-0.3.1... | `-- Extracting indexinfo-0.3.1: .... done `-- Extracting gettext-runtime-0.20.1: .......... done Extracting gmake-4.2.1_3: .......... done ===> smstools-3.1.21 depends on executable: gmake - found ===> Returning to build of smstools-3.1.21 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> smstools-3.1.21 depends on shared library: libinotify.so - not found ===> Installing existing package /packages/All/libinotify-20180201_1.txz Installing libinotify-20180201_1... Extracting libinotify-20180201_1: .......... done Message from libinotify-20180201_1: ============================================================================ Libinotify functionality on FreeBSD is missing support for - detecting a file being moved into or out of a directory within the same filesystem - certain modifications to a symbolic link (rather than the file it points to.) in addition to the known limitations on all platforms using kqueue(2) where various open and close notifications are unimplemented. This means the following regression tests will fail: Directory notifications: IN_MOVED_FROM IN_MOVED_TO Open/close notifications: IN_OPEN IN_CLOSE_NOWRITE IN_CLOSE_WRITE Symbolic Link notifications: IN_DONT_FOLLOW IN_ATTRIB IN_MOVE_SELF IN_DELETE_SELF Kernel patches to address the missing directory and symbolic link notifications are available from: https://github.com/libinotify-kqueue/libinotify-kqueue/tree/master/patches ============================================================================= You might want to consider increasing the kern.maxfiles tunable if you plan to use this library for applications that need to monitor activity of a lot of files. ============================================================================= ===> smstools-3.1.21 depends on shared library: libinotify.so - found (/usr/local/lib/libinotify.so) ===> Returning to build of smstools-3.1.21 ===> smstools-3.1.21 depends on shared library: libmm.so - not found ===> Installing existing package /packages/All/mm-1.4.2_1.txz Installing mm-1.4.2_1... Extracting mm-1.4.2_1: .......... done ===> smstools-3.1.21 depends on shared library: libmm.so - found (/usr/local/lib/libmm.so) ===> Returning to build of smstools-3.1.21 -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for smstools-3.1.21 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for smstools-3.1.21 gmake[1]: Entering directory '/construction/comms/smstools3/smstools3' cd src && gmake gmake[2]: Entering directory '/construction/comms/smstools3/smstools3/src' cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o extras.o extras.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o locking.o locking.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o cfgfile.o cfgfile.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o logging.o logging.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o alarm.o alarm.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o smsd_cfg.o smsd_cfg.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o charset.o charset.c logging.c: In function 'writelogfile': logging.c:200:49: warning: '%s' directive output may be truncated writing up to 16383 bytes into a region of size between 16298 and 16378 [-Wformat-truncation=] snprintf(text2, sizeof(text2),"%s,%i, %s: %s\n", timestamp, severity, process_title, text); ^~ ~~~~ logging.c:200:7: note: 'snprintf' output between 8 and 16471 bytes into a destination of size 16384 snprintf(text2, sizeof(text2),"%s,%i, %s: %s\n", timestamp, severity, process_title, text); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c:254:47: warning: '%s' directive output may be truncated writing up to 16383 bytes into a region of size between 16298 and 16378 [-Wformat-truncation=] snprintf(text2, sizeof(text2),"%s,%i, %s: %s\n", timestamp, severity, process_title, text); ^~ ~~~~ logging.c:254:5: note: 'snprintf' output between 8 and 16471 bytes into a destination of size 16384 snprintf(text2, sizeof(text2),"%s,%i, %s: %s\n", timestamp, severity, process_title, text); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o stats.o stats.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o blacklist.o blacklist.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o whitelist.o whitelist.c stats.c: In function 'savestats': stats.c:154:26: warning: '/stats.tmp' directive writing 10 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(filename, "%s/stats.tmp", d_stats); ^~~~~~~~~~ stats.c:154:5: note: 'sprintf' output between 11 and 1034 bytes into a destination of size 1024 sprintf(filename, "%s/stats.tmp", d_stats); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function 'loadstats': stats.c:183:26: warning: '/stats.tmp' directive writing 10 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(filename, "%s/stats.tmp", d_stats); ^~~~~~~~~~ stats.c:183:5: note: 'sprintf' output between 11 and 1034 bytes into a destination of size 1024 sprintf(filename, "%s/stats.tmp", d_stats); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o modeminit.o modeminit.c stats.c: In function 'update_message_counter': stats.c:324:29: warning: '.counter' directive writing 8 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(filename, "%s/%s.counter", d_stats, modemname); ^~~~~~~~ stats.c:324:5: note: 'sprintf' output 10 or more bytes (assuming 1033) into a destination of size 1024 sprintf(filename, "%s/%s.counter", d_stats, modemname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ charset.c: In function 'decode_7bit_packed': charset.c:904:42: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size between 509 and 510 [-Wformat-truncation=] snprintf(buffer2, sizeof(buffer2), "%02X%s", septets, buffer); ^~ ~~~~~~ charset.c:904:2: note: 'snprintf' output between 3 and 515 bytes into a destination of size 512 snprintf(buffer2, sizeof(buffer2), "%02X%s", septets, buffer); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function 'write_status': stats.c:376:29: warning: '/status.tmp' directive writing 11 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(fname_tmp, "%s/status.tmp", d_stats); ^~~~~~~~~~~ stats.c:376:7: note: 'sprintf' output between 12 and 1035 bytes into a destination of size 1024 sprintf(fname_tmp, "%s/status.tmp", d_stats); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c:467:27: warning: '/status' directive writing 7 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(fname, "%s/status", d_stats); ^~~~~~~ stats.c:467:9: note: 'sprintf' output between 8 and 1031 bytes into a destination of size 1024 sprintf(fname, "%s/status", d_stats); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o pdu.o pdu.c cc -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -DLIBICONV_PLUG -isystem /usr/local/include -c -o charshift.o charshift.c extras.c: In function 'my_system': extras.c:1077:35: warning: '/smsd_' directive output may be truncated writing 6 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] snprintf(tmp1, sizeof(tmp1), ">%s/smsd_%s_1.XXXXXX", tmpdir, info); ^~~~~~ extras.c:1077:2: note: 'snprintf' output 17 or more bytes (assuming 1040) into a destination of size 1024 snprintf(tmp1, sizeof(tmp1), ">%s/smsd_%s_1.XXXXXX", tmpdir, info); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c:1087:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1022 [-Wformat-truncation=] snprintf(tmp2, sizeof(tmp2), "2>%s/smsd_%s_2.XXXXXX", tmpdir, info); ^~ ~~~~~~ extras.c:1087:2: note: 'snprintf' output 18 or more bytes (assuming 1041) into a destination of size 1024 snprintf(tmp2, sizeof(tmp2), "2>%s/smsd_%s_2.XXXXXX", tmpdir, info); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c: In function 'make_datetime_string': extras.c:1670:41: warning: '%03d' directive output may be truncated writing between 3 and 8 bytes into a region of size 7 [-Wformat-truncation=] snprintf(buffer, sizeof(buffer), "%03d", (int)tv.tv_usec / 1000); ^~~~ extras.c:1670:40: note: directive argument in the range [-2147483, 2147483] snprintf(buffer, sizeof(buffer), "%03d", (int)tv.tv_usec / 1000); ^~~~~~ extras.c:1670:7: note: 'snprintf' output between 4 and 9 bytes into a destination of size 7 snprintf(buffer, sizeof(buffer), "%03d", (int)tv.tv_usec / 1000); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c:1671:7: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(p, buffer, strlen(buffer)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c:1666:7: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(p, buffer, strlen(buffer)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c: In function 'copymovefilewithdestlock': extras.c:367:27: warning: 'XXXXXX' directive writing 6 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(newname,"%s/%sXXXXXX", directory, line); ^~~~~~ extras.c:367:5: note: 'sprintf' output 8 or more bytes (assuming 1031) into a destination of size 1024 sprintf(newname,"%s/%sXXXXXX", directory, line); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pdu.c: In function 'get_pdu_details': pdu.c:1920:64: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size between 68 and 76 [-Wformat-truncation=] snprintf(buffer, sizeof(buffer), "%.03i %c %-8.8s %-8.8s %s%.03i %.03i/%.03i %c\n", mnumber, sort_ch, date, time, sender, m_id, p_number, p_count, (is_statusreport) ? 'r' : 'i'); ^~ ~~~~~~ pdu.c:1920:7: note: 'snprintf' output between 39 and 170 bytes into a destination of size 100 snprintf(buffer, sizeof(buffer), "%.03i %c %-8.8s %-8.8s %s%.03i %.03i/%.03i %c\n", mnumber, sort_ch, date, time, sender, m_id, p_number, p_count, (is_statusreport) ? 'r' : 'i'); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modeminit.c: In function 'initmodem': modeminit.c:2055:34: warning: '%s' directive writing up to 499 bytes into a region of size 90 [-Wformat-overflow=] sprintf(command, "AT+CSCA=\"+%s\"\r", answer); ^~ ~~~~~~ modeminit.c:2055:5: note: 'sprintf' output between 13 and 512 bytes into a destination of size 100 sprintf(command, "AT+CSCA=\"+%s\"\r", answer); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modeminit.c:2096:49: warning: '%s' directive output may be truncated writing up to 499 bytes into a region of size 100 [-Wformat-truncation=] snprintf(DEVICE.imei, sizeof(DEVICE.imei), "%s", answer); ^~ ~~~~~~ modeminit.c:2096:5: note: 'snprintf' output between 1 and 500 bytes into a destination of size 100 snprintf(DEVICE.imei, sizeof(DEVICE.imei), "%s", answer); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c: In function 'readcfg': smsd_cfg.c:2454:77: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 256 [-Wformat-truncation=] snprintf(communicate_a_keys[key], sizeof(communicate_a_keys[0]), "%s", value); ^~ ~~~~~ smsd_cfg.c:2454:11: note: 'snprintf' output between 1 and 4096 bytes into a destination of size 256 snprintf(communicate_a_keys[key], sizeof(communicate_a_keys[0]), "%s", value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:2156:21: warning: '%s' directive writing up to 4095 bytes into a region of size 1025 [-Wformat-overflow=] sprintf(p, "%s%c", value, 0); ^~ ~~~~~ smsd_cfg.c:2156:9: note: 'sprintf' output between 2 and 4097 bytes into a destination of size 1025 sprintf(p, "%s%c", value, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c: In function 'startup_check': smsd_cfg.c:3262:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 16 [-Wformat-truncation=] snprintf(queues[x].numbers[y - 1], SIZE_NUM, "%s", tmp); ^~ ~~~ smsd_cfg.c:3262:11: note: 'snprintf' output between 1 and 1024 bytes into a destination of size 16 snprintf(queues[x].numbers[y - 1], SIZE_NUM, "%s", tmp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3489:28: warning: '/smsd_data.XXXXXX' directive writing 17 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(tmp_data, "%s/smsd_data.XXXXXX", tmpdir); ^~~~~~~~~~~~~~~~~ smsd_cfg.c:3489:7: note: 'sprintf' output between 18 and 1041 bytes into a destination of size 1024 sprintf(tmp_data, "%s/smsd_data.XXXXXX", tmpdir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3498:32: warning: '/smsd_script.XXXXXX' directive writing 19 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(tmp_script, "%s/smsd_script.XXXXXX", d_incoming); ^~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3498:9: note: 'sprintf' output between 20 and 1043 bytes into a destination of size 1024 sprintf(tmp_script, "%s/smsd_script.XXXXXX", d_incoming); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd_cfg.c:31: smsd_cfg.h:35:32: warning: '-concatenated' directive writing 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" ^~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3582:24: note: in expansion of macro 'CONCATENATED_DIR_FNAME' sprintf(fname, CONCATENATED_DIR_FNAME, d_incoming, devices[x].name); ^~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3582:9: note: 'sprintf' output 15 or more bytes (assuming 1038) into a destination of size 1024 sprintf(fname, CONCATENATED_DIR_FNAME, d_incoming, devices[x].name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd_cfg.c:31: smsd_cfg.h:35:32: warning: '-concatenated' directive writing 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" ^~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3593:26: note: in expansion of macro 'CONCATENATED_DIR_FNAME' sprintf(tmp, CONCATENATED_DIR_FNAME, d_saved, devices[x].name); ^~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3593:13: note: 'sprintf' output 15 or more bytes (assuming 1038) into a destination of size 1024 sprintf(tmp, CONCATENATED_DIR_FNAME, d_saved, devices[x].name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3669:58: warning: '%s' directive writing up to 1023 bytes into a region of size 990 [-Wformat-overflow=] sprintf(buffer, "Default validity period is set to %s.", tmp); ^~ ~~~ smsd_cfg.c:3669:7: note: 'sprintf' output between 36 and 1059 bytes into a destination of size 1024 sprintf(buffer, "Default validity period is set to %s.", tmp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3689:54: warning: '%s' directive writing up to 1023 bytes into a region of size 994 [-Wformat-overflow=] sprintf(buffer, "Using international prefixes: %s", tmp); ^~ ~~~ smsd_cfg.c:3689:7: note: 'sprintf' output between 31 and 1054 bytes into a destination of size 1024 sprintf(buffer, "Using international prefixes: %s", tmp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3706:49: warning: '%s' directive writing up to 1023 bytes into a region of size 999 [-Wformat-overflow=] sprintf(buffer, "Using national prefixes: %s", tmp); ^~ ~~~ smsd_cfg.c:3706:7: note: 'sprintf' output between 26 and 1049 bytes into a destination of size 1024 sprintf(buffer, "Using national prefixes: %s", tmp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc `mm-config --cflags` -pipe -DUSE_ICONV -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -DNUMBER_OF_MODEMS=64 -W -Wall -D_FILE_OFFSET_BITS=64 -o smsd smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o charshift.o `mm-config --ldflags --libs` -linotify -L/usr/lib -L/usr/local/lib smsd.c: In function 'receivesms': smsd.c:3831:11: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(p, "\",\"", 3); ^~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function 'extract_macros.part.3': smsd.c:819:13: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(p, p_value, len_value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:800:21: note: length computed here len_value = strlen(p_value); ^~~~~~~~~~~~~~~ smsd.c: In function 'change_headers': smsd.c:977:28: warning: '/smsd.XXXXXX' directive writing 12 bytes into a region of size between 8 and 1031 [-Wformat-overflow=] sprintf(tmp_filename, "%s/smsd.XXXXXX", tmpdir); ^~~~~~~~~~~~ smsd.c:977:3: note: 'sprintf' output between 13 and 1036 bytes into a destination of size 1031 sprintf(tmp_filename, "%s/smsd.XXXXXX", tmpdir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd.c:40: smsd.c: In function 'received2file': smsd_cfg.h:35:32: warning: '-concatenated' directive writing 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" ^~~~~~~~~~~~~~~~~~~~ smsd.c:3282:29: note: in expansion of macro 'CONCATENATED_DIR_FNAME' sprintf(con_filename, CONCATENATED_DIR_FNAME, (*d_saved)? d_saved : d_incoming, DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~ smsd.c:3282:7: note: 'sprintf' output 15 or more bytes (assuming 1038) into a destination of size 1024 sprintf(con_filename, CONCATENATED_DIR_FNAME, (*d_saved)? d_saved : d_incoming, DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:3436:38: warning: '.XXXXXX' directive writing 7 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(tmp_filename,"%s/%s.XXXXXX",d_incoming,DEVICE.name); ^~~~~~~ smsd.c:3436:11: note: 'sprintf' output 9 or more bytes (assuming 1032) into a destination of size 1024 sprintf(tmp_filename,"%s/%s.XXXXXX",d_incoming,DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function 'send_part': smsd.c:4139:27: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(command2,"%s\x1A",pdu); ^ smsd.c:4139:3: note: 'sprintf' output between 2 and 1025 bytes into a destination of size 1024 sprintf(command2,"%s\x1A",pdu); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function 'exec_system': smsd.c:305:50: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 247 [-Wformat-truncation=] snprintf(msg, sizeof(msg), "Smsd3: %s, %s", DEVICE.name, alert); ^~ ~~~~~ smsd.c:305:11: note: 'snprintf' output 10 or more bytes (assuming 265) into a destination of size 256 snprintf(msg, sizeof(msg), "Smsd3: %s, %s", DEVICE.name, alert); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:332:82: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 205 and 236 [-Wformat-truncation=] snprintf(shared_buffer, SIZE_SHARED_BUFFER, "%s Sms3: mainprocess, %s", adminmessage_device, alert); ^~ ~~~~~ smsd.c:332:15: note: 'snprintf' output between 21 and 307 bytes into a destination of size 256 snprintf(shared_buffer, SIZE_SHARED_BUFFER, "%s Sms3: mainprocess, %s", adminmessage_device, alert); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function 'savephonecall': smsd.c:2833:27: warning: '.XXXXXX' directive writing 7 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(filename, "%s/%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, DEVICE.name); ^~~~~~~ smsd.c:2833:3: note: 'sprintf' output 9 or more bytes (assuming 1032) into a destination of size 1024 sprintf(filename, "%s/%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:2831:27: warning: '.' directive writing 1 byte into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(filename, "%s/%s.%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, DEVICE.name, timestamp); ^ smsd.c:2831:3: note: 'sprintf' output 10 or more bytes (assuming 1113) into a destination of size 1024 sprintf(filename, "%s/%s.%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, DEVICE.name, timestamp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:2829:25: warning: '%s' directive writing up to 80 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(filename, "%s/%s.%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, timestamp, DEVICE.name); ^~ ~~~~~~~~~ smsd.c:2829:3: note: 'sprintf' output 10 or more bytes (assuming 1113) into a destination of size 1024 sprintf(filename, "%s/%s.%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, timestamp, DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function 'cmd_to_modem.part.7': smsd.c:6022:34: warning: '/smsd.XXXXXX' directive writing 12 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(tmp_filename, "%s/smsd.XXXXXX", tmpdir); ^~~~~~~~~~~~ smsd.c:6022:9: note: 'sprintf' output between 13 and 1036 bytes into a destination of size 1024 sprintf(tmp_filename, "%s/smsd.XXXXXX", tmpdir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:6068:67: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 931 and 1011 [-Wformat-truncation=] snprintf(buffer, sizeof(buffer), "%s,%i, %s: CMD: %s: %s\n", timestamp, DEVICE.dev_rr_loglevel, DEVICE.name, command, answer); ^~ ~~~~~~ smsd.c:6068:13: note: 'snprintf' output 15 or more bytes (assuming 1118) into a destination of size 1024 snprintf(buffer, sizeof(buffer), "%s,%i, %s: CMD: %s: %s\n", timestamp, DEVICE.dev_rr_loglevel, DEVICE.name, command, answer); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd.c:40: smsd.c: In function 'do_ic_purge': smsd_cfg.h:35:32: warning: '-concatenated' directive writing 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" ^~~~~~~~~~~~~~~~~~~~ smsd.c:6241:25: note: in expansion of macro 'CONCATENATED_DIR_FNAME' sprintf(con_filename, CONCATENATED_DIR_FNAME, (*d_saved)? d_saved : d_incoming, DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~ smsd.c:6241:3: note: 'sprintf' output 15 or more bytes (assuming 1038) into a destination of size 1024 sprintf(con_filename, CONCATENATED_DIR_FNAME, (*d_saved)? d_saved : d_incoming, DEVICE.name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function 'send1sms': smsd.c:5040:49: warning: '%s' directive output may be truncated writing up to 39015 bytes into a region of size 1024 [-Wformat-truncation=] snprintf(part_text, sizeof(part_text), "%s", text); ^~ ~~~~ smsd.c:5040:9: note: 'snprintf' output between 1 and 39016 bytes into a destination of size 1024 snprintf(part_text, sizeof(part_text), "%s", text); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:4857:11: warning: 'eachpartlen' may be used uninitialized in this function [-Wmaybe-uninitialized] writelogfile(LOG_DEBUG, 0, "Splitting this message into %i parts of max %i characters%s.", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parts, (alphabet == ALPHABET_UCS2)? eachpartlen /2 : eachpartlen, (alphabet == ALPHABET_UCS2)? " (unicode)" : ""); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/construction/comms/smstools3/smstools3/src' gmake[1]: Leaving directory '/construction/comms/smstools3/smstools3' -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for smstools-3.1.21 ===> Generating temporary packing list gmake[1]: Entering directory '/construction/comms/smstools3/smstools3' ./install.sh /construction/comms/smstools3/stage/usr/local/bin Installing binary program files /construction/comms/smstools3/stage/usr/local/bin/smsd Example script files are not installed automatically. Please dont forget to edit /construction/comms/smstools3/stage/usr/local/etc/smsd.conf. gmake[1]: Leaving directory '/construction/comms/smstools3/smstools3' /bin/mkdir -p /construction/comms/smstools3/stage/usr/local/share/smstools for file in `/usr/bin/find /construction/comms/smstools3/smstools3/scripts -type f ! -name 'README' ! -name '*.bak'`; do install -m 555 $file /construction/comms/smstools3/stage/usr/local/share/smstools/; done ln -sf /usr/local/share/smstools/sendsms /construction/comms/smstools3/stage/usr/local/bin/sendsms ln -sf /usr/local/share/smstools/sms2html /construction/comms/smstools3/stage/usr/local/bin/sms2html ln -sf /usr/local/share/smstools/sms2unicode /construction/comms/smstools3/stage/usr/local/bin/sms2unicode ln -sf /usr/local/share/smstools/unicode2sms /construction/comms/smstools3/stage/usr/local/bin/unicode2sms install -m 0644 /construction/comms/smstools3/smstools3/examples/smsd.conf.easy /construction/comms/smstools3/stage/usr/local/etc/smsd.conf.sample /bin/mkdir -p /construction/comms/smstools3/stage/usr/local/share/doc/smstools/slideshow install -m 0644 /construction/comms/smstools3/smstools3/doc/*.html /construction/comms/smstools3/stage/usr/local/share/doc/smstools/ install -m 0644 /construction/comms/smstools3/smstools3/doc/slideshow/* /construction/comms/smstools3/stage/usr/local/share/doc/smstools/slideshow /bin/mkdir -p /construction/comms/smstools3/stage/usr/local/share/examples/smstools for file in `/usr/bin/find /construction/comms/smstools3/smstools3/examples -type f ! -name 'README'`; do install -m 555 $file /construction/comms/smstools3/stage/usr/local/share/examples/smstools/; done /bin/mkdir -p /construction/comms/smstools3/stage/var/spool/sms/incoming /construction/comms/smstools3/stage/var/spool/sms/outgoing /construction/comms/smstools3/stage/var/spool/sms/checked /construction/comms/smstools3/stage/var/log/smsd /construction/comms/smstools3/stage/var/run/smsd ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for smstools-3.1.21 file sizes/checksums [90]: . done packing files [90]: . done packing directories [6]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Monday, 8 JUL 2019 at 08:07:17 UTC Duration: 00:00:16