Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pmacct.spec'], user='mockbuild'timeout=0chrootPath='/var/lib/mock/fedora-rawhide-x86_64-mockbuilder-6373/root'uid=1001nspawn_args=[]printOutput=Falsegid=135logger=shell=Falseenv={'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pmacct.spec'] with env {'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/pmacct-1.6.2.a6b2420-3.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pmacct.spec'], user='mockbuild'timeout=0chrootPath='/var/lib/mock/fedora-rawhide-x86_64-mockbuilder-6373/root'uid=1001nspawn_args=[]printOutput=Falsegid=135logger=shell=Falseenv={'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pmacct.spec'] with env {'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wssJVl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pmacct-1.6.2.a6b2420 + /usr/bin/gzip -dc /builddir/build/SOURCES/pmacct-1.6.2.a6b2420.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pmacct-1.6.2.a6b2420 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + chmod -x sql/pmacct-create-db.pgsql sql/pmacct-create-db_bgp_v1.mysql sql/pmacct-create-db_v1.mysql sql/pmacct-create-db_v2.mysql sql/pmacct-create-db_v3.mysql sql/pmacct-create-db_v4.mysql sql/pmacct-create-db_v5.mysql sql/pmacct-create-db_v6.mysql sql/pmacct-create-db_v7.mysql sql/pmacct-create-db_v8.mysql sql/pmacct-create-db_v9.mysql sql/pmacct-create-table_bgp_v1.pgsql sql/pmacct-create-table_bgp_v1.sqlite3 sql/pmacct-create-table_v1.pgsql sql/pmacct-create-table_v1.sqlite3 sql/pmacct-create-table_v2.pgsql sql/pmacct-create-table_v2.sqlite3 sql/pmacct-create-table_v3.pgsql sql/pmacct-create-table_v3.sqlite3 sql/pmacct-create-table_v4.pgsql sql/pmacct-create-table_v4.sqlite3 sql/pmacct-create-table_v5.pgsql sql/pmacct-create-table_v5.sqlite3 sql/pmacct-create-table_v6.pgsql sql/pmacct-create-table_v6.sqlite3 sql/pmacct-create-table_v7.pgsql sql/pmacct-create-table_v7.sqlite3 sql/pmacct-create-table_v8.sqlite3 sql/pmacct-create-table_v9.pgsql sql/pmacct-create-table_v9.sqlite3 sql/pmacct-grant-db.mysql + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HL0bmv + umask 022 + cd /builddir/build/BUILD + cd pmacct-1.6.2.a6b2420 + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wno-return-type' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wno-return-type' + ./autogen.sh autogen.sh: reconfigure with autoreconf autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --include=m4 --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing configure.ac:7: installing './compile' configure.ac:7: installing './config.guess' configure.ac:7: installing './config.sub' configure.ac:5: installing './install-sh' configure.ac:5: installing './missing' src/Makefile.am: installing './depcomp' autoreconf: Leaving directory `.' autogen.sh: for the next step, run './configure' [or './configure --help' to check available options] + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wno-return-type' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc/pmacct --prefix=/usr --exec-prefix=/usr --sbindir=/usr/sbin --enable-l2 --enable-ipv6 --enable-v4-mapped --enable-mysql --enable-pgsql --enable-sqlite3 --enable-geoip --enable-jansson --enable-64bit --enable-threads --enable-ulog --enable-rabbitmq configure: WARNING: unrecognized options: --enable-v4-mapped, --enable-ulog checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking how to print strings... printf checking for style of include used by make... GNU checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether make supports nested variables... (cached) yes checking for x86_64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking OS... Linux checking hardware... x86_64 checking whether to enable debugging compiler options... no checking whether to relax compiler optimizations... no checking whether to disable linking against shared objects... no checking for dlopen... no checking for dlopen in -ldl... yes checking for gmake... gmake checking whether gmake sets $(MAKE)... yes checking for __progname... yes checking for extra flags needed to export symbols... --export-dynamic checking for static inline... yes checking endianess... little checking unaligned accesses... ok checking whether to enable L2 features... yes checking whether to enable IPv6 code... yes checking for inet_pton... yes checking for inet_ntop... yes checking whether to enable IP prefix labels... no checking default locations for pcap.h... found in /usr/include checking default locations for libpcap... no checking for pcap_dispatch in -lpcap... yes checking for pcap_setnonblock in -lpcap... yes checking for bpf_filter in -lpcap... yes checking packet capture type... linux checking whether to enable MySQL support... yes checking for mysql_config... mysql_config checking for mysql_init in -lmysqlclient... yes checking whether to enable PostgreSQL support... yes checking for PGSQL... yes checking whether to enable MongoDB support... no checking whether to enable SQLite3 support... yes checking for SQLITE3... yes checking whether to enable RabbitMQ/AMQP support... yes checking for RABBITMQ... yes checking whether to enable Kafka support... no checking whether to enable GeoIP support... yes checking for GEOIP... yes checking whether to enable GeoIPv2 (libmaxminddb) support... no checking whether to enable Jansson support... yes checking for JANSSON... yes checking for json_object in -ljansson... yes checking for json_object_update_missing... yes checking whether to enable Avro support... no checking whether to enable nDPI support... no checking for deflate in -lz... yes checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for u_int64_t... yes checking for u_int32_t... yes checking for u_int16_t... yes checking for u_int8_t... yes checking for uint64_t... yes checking for uint32_t... yes checking for uint16_t... yes checking for uint8_t... yes checking whether to enable 64bit counters... yes checking whether to enable multithreading in pmacct... yes checking whether to enable NFLOG support... no checking whether to link IPv4/IPv6 traffic accounting accounting binaries... yes checking whether to link BGP daemon binaries... yes checking whether to link BMP daemon binaries... yes checking whether to link Streaming Telemetry daemon binaries... yes checking return type of signal handlers... void checking for strlcpy... no checking for vsnprintf... yes checking for setproctitle... no checking for mallopt... yes checking for tdestroy... yes PLATFORM ..... : x86_64 OS ........... : Linux 4.5.5-300.fc24.x86_64 (copr-builder-920820018.novalocal) COMPILER ..... : gcc CFLAGS ....... : -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wno-return-type LIBS ......... : -lpcap -ldl -lz -lpthread LDFLAGS ...... : -Wl,--export-dynamic -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld PLUGINS ...... : mysql pgsql sqlite3 rabbitmq SUPPORTS ..... : geoip jansson Now type 'make' to compile the source code. Wanting to get in touch with other pmacct users? Join the pmacct mailing-list with an email to pmacct-discussion-subscribe@pmacct.net Need for documentation and examples? Start by reading the README.md file Star, watch or contribute to the project on GitHub: https://github.com/pmacct/pmacct checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/nfprobe_plugin/Makefile config.status: creating src/sfprobe_plugin/Makefile config.status: creating src/bgp/Makefile config.status: creating src/tee_plugin/Makefile config.status: creating src/isis/Makefile config.status: creating src/bmp/Makefile config.status: creating src/telemetry/Makefile config.status: creating src/ndpi/Makefile config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --enable-v4-mapped, --enable-ulog + make -j2 Making all in src gmake[1]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' Making all in nfprobe_plugin gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/nfprobe_plugin' CC libnfprobe_plugin_la-nfprobe_plugin.lo CC libnfprobe_plugin_la-netflow1.lo In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from common.h:30, from netflow1.c:27: /usr/include/features.h:181:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from common.h:30, from nfprobe_plugin.c:53: /usr/include/features.h:181:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from ./../pmacct.h:229:0, from common.h:30, from netflow1.c:27: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ nfprobe_plugin.c: In function 'format_flow': nfprobe_plugin.c:210:38: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ~~~^ %lu nfprobe_plugin.c:214:6: flow->flow_seq, ~~~~~~~~~~~~~~ nfprobe_plugin.c:210:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 10 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:217:6: flow->octets[0], flow->packets[0], ~~~~~~~~~~~~~~~ nfprobe_plugin.c:211:18: note: format string is defined here "octets>:%llu packets>:%llu octets<:%llu packets<:%llu " ~~~^ %lu nfprobe_plugin.c:210:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 11 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:217:23: flow->octets[0], flow->packets[0], ~~~~~~~~~~~~~~~~ nfprobe_plugin.c:211:32: note: format string is defined here "octets>:%llu packets>:%llu octets<:%llu packets<:%llu " ~~~^ %lu nfprobe_plugin.c:210:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:218:6: flow->octets[1], flow->packets[1], ~~~~~~~~~~~~~~~ nfprobe_plugin.c:211:45: note: format string is defined here "octets>:%llu packets>:%llu octets<:%llu packets<:%llu " ~~~^ %lu nfprobe_plugin.c:210:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 13 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:218:23: flow->octets[1], flow->packets[1], ~~~~~~~~~~~~~~~~ nfprobe_plugin.c:211:59: note: format string is defined here "octets>:%llu packets>:%llu octets<:%llu packets<:%llu " ~~~^ %lu nfprobe_plugin.c:210:30: warning: format '%u' expects argument of type 'unsigned int', but argument 15 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:219:13: stime, (flow->flow_start.tv_usec + 500) / 1000, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:212:19: note: format string is defined here "start:%s.%03u finish:%s.%03u tcp>:%02x tcp<:%02x " ~~~^ %03lu nfprobe_plugin.c:210:30: warning: format '%u' expects argument of type 'unsigned int', but argument 17 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf, sizeof(buf), "seq:%llu [%s]:%u <> [%s]:%u proto:%u " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:220:13: ftime, (flow->flow_last.tv_usec + 500) / 1000, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:212:34: note: format string is defined here "start:%s.%03u finish:%s.%03u tcp>:%02x tcp<:%02x " ~~~^ %03lu nfprobe_plugin.c: In function 'format_flow_brief': nfprobe_plugin.c:238:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] "seq:%llu [%s]:%hu <> [%s]:%hu proto:%u", ~~~^ %lu flow->flow_seq, ~~~~~~~~~~~~~~ nfprobe_plugin.c: In function 'ipv6_to_flowrec': nfprobe_plugin.c:503:12: warning: unused variable 'nxt' [-Wunused-variable] int ndx, nxt; ^~~ nfprobe_plugin.c: In function 'handle_timeouts': nfprobe_plugin.c:1292:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (sep = strchr(current, ':')) { ^~~ nfprobe_plugin.c: In function 'nfprobe_plugin': nfprobe_plugin.c:1409:9: warning: unused variable 'kafka_msg' [-Wunused-variable] void *kafka_msg; ^~~~~~~~~ nfprobe_plugin.c:1399:40: warning: unused variable 'exit_request' [-Wunused-variable] int max_flows, stop_collection_flag, exit_request, hoplimit; ^~~~~~~~~~~~ nfprobe_plugin.c:1399:18: warning: variable 'stop_collection_flag' set but not used [-Wunused-but-set-variable] int max_flows, stop_collection_flag, exit_request, hoplimit; ^~~~~~~~~~~~~~~~~~~~ nfprobe_plugin.c:1398:21: warning: unused variable 'ctlsock' [-Wunused-variable] int ch, linktype, ctlsock, i, r, err, always_v6; ^~~~~~~ nfprobe_plugin.c:1398:7: warning: unused variable 'ch' [-Wunused-variable] int ch, linktype, ctlsock, i, r, err, always_v6; ^~ nfprobe_plugin.c:1382:38: warning: unused variable 'kafka_timeout' [-Wunused-variable] int refresh_timeout, amqp_timeout, kafka_timeout, ret, num; ^~~~~~~~~~~~~ nfprobe_plugin.c:1381:15: warning: unused variable 'refresh_deadline' [-Wunused-variable] time_t now, refresh_deadline; ^~~~~~~~~~~~~~~~ nfprobe_plugin.c:1379:19: warning: unused variable 'tz' [-Wunused-variable] struct timezone tz; ^~ At top level: nfprobe_plugin.c:1081:1: warning: 'delete_all_flows' defined but not used [-Wunused-function] delete_all_flows(struct FLOWTRACK *ft) ^~~~~~~~~~~~~~~~ In file included from ./../plugin_hooks.h:88:0, from nfprobe_plugin.c:62: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from nfprobe_plugin.c:61:0: ./../pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from nfprobe_plugin.c:57:0: ../nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ ../nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from common.h:30, from nfprobe_plugin.c:53: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libnfprobe_plugin_la-netflow5.lo nfprobe_plugin.c: In function 'nfprobe_plugin': nfprobe_plugin.c:1509:20: warning: 'linktype' is used uninitialized in this function [-Wuninitialized] cb_ctxt.linktype = linktype; ~~~~~~~~~~~~~~~~~^~~~~~~~~~ nfprobe_plugin.c:1620:8: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ret > 0) { /* we received data */ ^ nfprobe_plugin.c:1382:24: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] int refresh_timeout, amqp_timeout, kafka_timeout, ret, num; ^~~~~~~~~~~~ In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from common.h:30, from netflow5.c:34: /usr/include/features.h:181:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from ./../pmacct.h:229:0, from common.h:30, from netflow5.c:34: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libnfprobe_plugin_la-netflow9.lo In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from common.h:30, from netflow9.c:36: /usr/include/features.h:181:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ CC libnfprobe_plugin_la-convtime.lo netflow9.c: In function 'send_netflow_v9': netflow9.c:2168:63: warning: pointer targets in passing argument 1 of 'nf_sampling_option_to_flowset' differ in signedness [-Wpointer-sign] r = nf_sampling_option_to_flowset(packet + offset, ^~~~~~ netflow9.c:1882:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' nf_sampling_option_to_flowset(u_char *packet, u_int len, const struct timeval *system_boot_time, u_int *len_used) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netflow9.c:2173:79: warning: pointer targets in passing argument 2 of 'nf_class_option_to_flowset' differ in signedness [-Wpointer-sign] r = nf_class_option_to_flowset(class_i + class_j, packet + offset, ^~~~~~ netflow9.c:1939:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' nf_class_option_to_flowset(u_int idx, u_char *packet, u_int len, const struct timeval *system_boot_time, u_int *len_used) ^~~~~~~~~~~~~~~~~~~~~~~~~~ netflow9.c:2181:53: warning: pointer targets in passing argument 2 of 'nf_flow_to_flowset' differ in signedness [-Wpointer-sign] r = nf_flow_to_flowset(flows[flow_i + flow_j], packet + offset, ^~~~~~ netflow9.c:1613:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' nf_flow_to_flowset(const struct FLOW *flow, u_char *packet, u_int len, ^~~~~~~~~~~~~~~~~~ At top level: netflow9.c:446:1: warning: 'flow_to_flowset_mpls_handler' defined but not used [-Wunused-function] flow_to_flowset_mpls_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from common.h:30, from netflow9.c:36: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ netflow9.c: In function 'send_netflow_v9': netflow9.c:2192:13: warning: 'inc' may be used uninitialized in this function [-Wmaybe-uninitialized] offset += inc; ~~~~~~~^~~~~~ netflow9.c:2185:7: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] if (r <= 0) { ^ netflow9.c:2061:11: warning: 'offset' may be used uninitialized in this function [-Wmaybe-uninitialized] offset += v4_template.tot_len; ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ netflow9.c:1870:15: warning: 'freclen_1' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ret_len + freclen_1 > len) ~~~~~~~~^~~~~~~~~~~ netflow9.c:1616:19: note: 'freclen_1' was declared here u_int freclen_0, freclen_1, ret_len, nflows, idx; ^~~~~~~~~ netflow9.c:1865:3: warning: 'freclen_0' may be used uninitialized in this function [-Wmaybe-uninitialized] memcpy(packet + ret_len, ftoft_buf_0, freclen_0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netflow9.c:1616:8: note: 'freclen_0' was declared here u_int freclen_0, freclen_1, ret_len, nflows, idx; ^~~~~~~~~ In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from common.h:30, from convtime.c:25: /usr/include/features.h:181:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from ./../pmacct.h:229:0, from common.h:30, from convtime.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libnfprobe_plugin_la-strlcat.lo In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from common.h:30, from strlcat.c:21: /usr/include/features.h:181:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from ./../pmacct.h:229:0, from common.h:30, from strlcat.c:21: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CCLD libnfprobe_plugin.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/nfprobe_plugin' Making all in sfprobe_plugin gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/sfprobe_plugin' CC libsfprobe_plugin_la-sflow_agent.lo CC libsfprobe_plugin_la-sflow_poller.lo In file included from ./../pmacct.h:229:0, from sflow_api.h:15, from sflow_poller.c:11: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from sflow_api.h:15, from sflow_agent.c:11: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libsfprobe_plugin_la-sflow_receiver.lo CC libsfprobe_plugin_la-sflow_sampler.lo sflow_receiver.c: In function 'putClass': sflow_receiver.c:383:20: warning: pointer targets in passing argument 2 of 'put128' differ in signedness [-Wpointer-sign] put128(receiver, buf); ^~~ sflow_receiver.c:165:20: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' inline static void put128(SFLReceiver *receiver, u_char *val) ^~~~~~ sflow_receiver.c: In function 'sfl_receiver_writeFlowSample': sflow_receiver.c:481:7: warning: unused variable 'num_extended' [-Wunused-variable] int num_extended = 0, packedSize; ^~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from sflow_api.h:15, from sflow_receiver.c:12: At top level: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from sflow_api.h:15, from sflow_sampler.c:11: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libsfprobe_plugin_la-sfprobe_plugin.lo sfprobe_plugin.c: In function 'init_agent': sfprobe_plugin.c:206:16: warning: variable 'receiver' set but not used [-Wunused-but-set-variable] SFLReceiver *receiver; ^~~~~~~~ sfprobe_plugin.c: In function 'readPacket': sfprobe_plugin.c:277:18: warning: unused variable 'sampledPackets' [-Wunused-variable] int direction, sampledPackets, ethHdrLen, idx = 0; ^~~~~~~~~~~~~~ sfprobe_plugin.c: In function 'sfprobe_plugin': sfprobe_plugin.c:588:9: warning: unused variable 'kafka_msg' [-Wunused-variable] void *kafka_msg; ^~~~~~~~~ sfprobe_plugin.c:575:47: warning: unused variable 'kafka_timeout' [-Wunused-variable] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, ret, num; ^~~~~~~~~~~~~ sfprobe_plugin.c:574:10: warning: unused variable 'now' [-Wunused-variable] time_t now; ^~~ sfprobe_plugin.c:572:19: warning: unused variable 'tz' [-Wunused-variable] struct timezone tz; ^~ In file included from ./../plugin_hooks.h:88:0, from sfprobe_plugin.c:31: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from sfprobe_plugin.c:30:0: ./../pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from ./../pmacct.h:229:0, from sflow_api.h:15, from sfprobe_plugin.c:28: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ sfprobe_plugin.c: In function 'sfprobe_plugin': sfprobe_plugin.c:718:8: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ret > 0) { /* we received data */ ^ sfprobe_plugin.c:700:10: warning: 'timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == amqp_timeout) { ^ sfprobe_plugin.c:575:33: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, ret, num; ^~~~~~~~~~~~ CCLD libsfprobe_plugin.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/sfprobe_plugin' Making all in bgp gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bgp' CC libbgp_la-bgp_aspath.lo CC libbgp_la-bgp.lo bgp_aspath.c:185:1: warning: 'assegment_prepend_asns' defined but not used [-Wunused-function] assegment_prepend_asns (struct assegment *seg, as_t asnum, int num) ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_aspath.c:29: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bgp.c: In function 'skinny_bgp_daemon_online': bgp.c:240:64: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.bgp_sock, SOL_SOCKET, SO_RCVBUF, &saved, &l); ^ In file included from ./../pmacct.h:56:0, from bgp.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ bgp.c:242:67: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.bgp_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from bgp.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ bgp.c:245:67: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.bgp_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from bgp.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ bgp.c:428:28: warning: implicit declaration of function 'P_broker_timers_get_last_fail' [-Wimplicit-function-declaration] time_t last_fail = P_broker_timers_get_last_fail(&bgp_daemon_msglog_amqp_host.btimers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bgp.c:430:33: warning: implicit declaration of function 'P_broker_timers_get_retry_interval' [-Wimplicit-function-declaration] if (last_fail && ((last_fail + P_broker_timers_get_retry_interval(&bgp_daemon_msglog_amqp_host.btimers)) <= bgp_misc_db->log_tstamp.tv_sec)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bgp.c:458:65: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] fd = accept(config.bgp_sock, (struct sockaddr *) &client, &clen); ^ In file included from ./../pmacct.h:56:0, from bgp.c:26: /usr/include/sys/socket.h:237:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ bgp.c:80:37: warning: unused variable 'no' [-Wunused-variable] int clen = sizeof(client), yes=1, no=0; ^~ bgp.c: In function 'skinny_bgp_daemon_offline': bgp.c:724:5: warning: label 'poll_again' defined but not used [-Wunused-label] poll_again: ^~~~~~~~~~ bgp.c:621:16: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int timeout, ret, nfacctd_bgp_offline_file_spool_pipe[2]; ^~~ bgp.c: In function 'bgp_offline_read_json': bgp.c:843:33: warning: variable 'peer' set but not used [-Wunused-but-set-variable] struct bgp_peer peer_in, *peer; ^~~~ In file included from bgp.c:31:0: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bgp.c: In function 'skinny_bgp_daemon_online': bgp.c:422:26: warning: 'dump_refresh_deadline' may be used uninitialized in this function [-Wmaybe-uninitialized] dump_refresh_deadline += config.bgp_table_dump_refresh_time; ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC libbgp_la-bgp_community.lo CC libbgp_la-bgp_ecommunity.lo In file included from ./../pmacct.h:229:0, from bgp_community.c:29: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_ecommunity.c:29: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libbgp_la-bgp_hash.lo CC libbgp_la-bgp_prefix.lo In file included from ./../pmacct.h:229:0, from bgp_hash.c:29: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_prefix.c:29: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libbgp_la-bgp_table.lo CC libbgp_la-bgp_logdump.lo bgp_table.c: In function 'bgp_node_set': bgp_table.c:94:28: warning: unused variable 'bms' [-Wunused-variable] struct bgp_misc_structs *bms = bgp_select_misc_db(peer->type); ^~~ bgp_table.c: In function 'bgp_node_get': bgp_table.c:302:28: warning: unused variable 'bms' [-Wunused-variable] struct bgp_misc_structs *bms = bgp_select_misc_db(peer->type); ^~~ In file included from ./../pmacct.h:229:0, from bgp_table.c:30: At top level: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bgp_logdump.c: In function 'bgp_peer_log_msg': bgp_logdump.c:159:20: warning: pointer targets in passing argument 1 of 'bgp_rd2str' differ in signedness [-Wpointer-sign] bgp_rd2str(rd_str, &ri->extra->rd); ^~~~~~ In file included from bgp.h:254:0, from bgp_logdump.c:28: bgp_util.h:32:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int bgp_rd2str(char *, rd_t *); ^~~~~~~~~~ bgp_logdump.c:160:53: warning: pointer targets in passing argument 1 of 'json_string' differ in signedness [-Wpointer-sign] json_object_set_new_nocheck(obj, "rd", json_string(rd_str)); ^~~~~~ In file included from ./../pmacct.h:219:0, from bgp_logdump.c:26: /usr/include/jansson.h:86:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' json_t *json_string(const char *value); ^~~~~~~~~~~ bgp_logdump.c:163:21: warning: pointer targets in passing argument 1 of 'bgp_label2str' differ in signedness [-Wpointer-sign] bgp_label2str(label_str, ri->extra->label); ^~~~~~~~~ In file included from bgp.h:254:0, from bgp_logdump.c:28: bgp_util.h:34:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int bgp_label2str(char *, u_char *); ^~~~~~~~~~~~~ bgp_logdump.c:164:61: warning: pointer targets in passing argument 1 of 'json_string' differ in signedness [-Wpointer-sign] json_object_set_new_nocheck(obj, "label", json_string(label_str)); ^~~~~~~~~ In file included from ./../pmacct.h:219:0, from bgp_logdump.c:26: /usr/include/jansson.h:86:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' json_t *json_string(const char *value); ^~~~~~~~~~~ bgp_logdump.c:40:8: warning: unused variable 'log_rk' [-Wunused-variable] char log_rk[SRVBUFLEN]; ^~~~~~ bgp_logdump.c: In function 'bgp_peer_log_close': bgp_logdump.c:315:24: warning: variable 'kafka_log_ptr' set but not used [-Wunused-but-set-variable] void *amqp_log_ptr, *kafka_log_ptr; ^~~~~~~~~~~~~ bgp_logdump.c: In function 'bgp_peer_log_dynname': bgp_logdump.c:418:14: warning: unused variable 'howmany' [-Wunused-variable] int len, howmany; ^~~~~~~ bgp_logdump.c: In function 'bgp_peer_dump_close': bgp_logdump.c:530:35: warning: unused variable 'kv' [-Wunused-variable] json_t *obj = json_object(), *kv; ^~ bgp_logdump.c: In function 'bgp_daemon_msglog_init_amqp_host': bgp_logdump.c:776:3: warning: implicit declaration of function 'P_broker_timers_set_retry_interval' [-Wimplicit-function-declaration] P_broker_timers_set_retry_interval(&bgp_daemon_msglog_amqp_host.btimers, config.nfacctd_bgp_msglog_amqp_retry); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bgp_logdump.c:31:0: At top level: ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from bgp_logdump.c:29:0: ../bmp/bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ ../bmp/bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ ../bmp/bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_logdump.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libbgp_la-bgp_util.lo bgp_util.c: In function 'bgp_rd2str': bgp_util.c:66:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(ip_address, &a); ^~~~~~~~~~ In file included from bgp_util.c:28:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ bgp_util.c: In function 'bgp_str2rd': bgp_util.c:90:13: warning: unused variable 'tmp16' [-Wunused-variable] u_int16_t tmp16; ^~~~~ bgp_util.c: In function 'bgp_label2str': bgp_util.c:173:22: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] snprintf(str, 8, "%u", tmp); ~^ %lu bgp_util.c: In function 'bgp_peer_init': bgp_util.c:490:10: warning: unused variable 'safi' [-Wunused-variable] safi_t safi; ^~~~ bgp_util.c:489:9: warning: unused variable 'afi' [-Wunused-variable] afi_t afi; ^~~ bgp_util.c: In function 'bgp_peer_close': bgp_util.c:517:10: warning: unused variable 'safi' [-Wunused-variable] safi_t safi; ^~~~ bgp_util.c:516:9: warning: unused variable 'afi' [-Wunused-variable] afi_t afi; ^~~ bgp_util.c: In function 'evaluate_comm_patterns': bgp_util.c:679:18: warning: variable 'srclen' set but not used [-Wunused-but-set-variable] int idx, i, j, srclen; ^~~~~~ CC libbgp_la-bgp_msg.lo In file included from bgp_util.c:31:0: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from bgp_util.c:27:0: ./../pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_util.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bgp_msg.c: In function 'bgp_parse_open_msg': bgp_msg.c:172:35: warning: unused variable 'cap_type' [-Wunused-variable] u_int8_t len, opt_type, opt_len, cap_type; ^~~~~~~~ bgp_msg.c: In function 'bgp_write_notification_msg': bgp_msg.c:482:19: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(bnsm_reply->bgpnsm_data, shutdown_msg, shutdown_msglen); ^~~~~~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from ./../pmacct.h:30, from bgp_msg.c:26: /usr/include/bits/string3.h:122:1: note: expected 'char * restrict' but argument is of type 'u_int8_t * {aka unsigned char *}' __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ bgp_msg.c: In function 'bgp_parse_update_msg': bgp_msg.c:573:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] withdraw.nlri = pkt; ^ bgp_msg.c:598:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] update.nlri = pkt; ^ bgp_msg.c:535:20: warning: unused variable 'endp' [-Wunused-variable] u_char *startp, *endp; ^~~~ bgp_msg.c:535:11: warning: unused variable 'startp' [-Wunused-variable] u_char *startp, *endp; ^~~~~~ bgp_msg.c: In function 'bgp_attr_parse': bgp_msg.c:654:30: warning: variable 'mp_nlri' set but not used [-Wunused-but-set-variable] u_int8_t flag, type, *tmp, mp_nlri = 0; ^~~~~~~ bgp_msg.c: In function 'bgp_attr_parse_ecommunity': bgp_msg.c:778:72: warning: pointer targets in passing argument 2 of 'ecommunity_parse' differ in signedness [-Wpointer-sign] else attr->ecommunity = (struct ecommunity *) ecommunity_parse(peer, ptr, len); ^~~ In file included from bgp.h:210:0, from bgp_msg.c:28: bgp_ecommunity.h:82:24: note: expected 'u_int8_t * {aka unsigned char *}' but argument is of type 'char *' EXT struct ecommunity *ecommunity_parse (struct bgp_peer *, u_int8_t *, u_short); ^~~~~~~~~~~~~~~~ bgp_msg.c: In function 'bgp_attr_parse_lcommunity': bgp_msg.c:786:72: warning: pointer targets in passing argument 2 of 'lcommunity_parse' differ in signedness [-Wpointer-sign] else attr->lcommunity = (struct lcommunity *) lcommunity_parse(peer, ptr, len); ^~~ In file included from bgp.h:211:0, from bgp_msg.c:28: bgp_lcommunity.h:61:24: note: expected 'u_int8_t * {aka unsigned char *}' but argument is of type 'char *' EXT struct lcommunity *lcommunity_parse (struct bgp_peer *, u_int8_t *, u_short); ^~~~~~~~~~~~~~~~ bgp_msg.c: In function 'bgp_attr_parse_mp_reach': bgp_msg.c:898:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mp_update->nlri = ptr; ^ bgp_msg.c: In function 'bgp_attr_parse_mp_unreach': bgp_msg.c:923:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mp_withdraw->nlri = ptr; ^ bgp_msg.c: In function 'bgp_nlri_parse': bgp_msg.c:1037:79: warning: pointer targets in passing argument 8 of 'bgp_process_update' differ in signedness [-Wpointer-sign] ret = bgp_process_update(bmd, &p, attr, info->afi, safi, &rd, &path_id, label); ^~~~~ In file included from bgp.h:252:0, from bgp_msg.c:28: bgp_msg.h:53:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int bgp_process_update(struct bgp_msg_data *, struct prefix *, void *, afi_t, safi_t, rd_t *, path_id_t *, char *); ^~~~~~~~~~~~~~~~~~ bgp_msg.c:1039:81: warning: pointer targets in passing argument 8 of 'bgp_process_withdraw' differ in signedness [-Wpointer-sign] ret = bgp_process_withdraw(bmd, &p, attr, info->afi, safi, &rd, &path_id, label); ^~~~~ In file included from bgp.h:252:0, from bgp_msg.c:28: bgp_msg.h:54:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int bgp_process_withdraw(struct bgp_msg_data *, struct prefix *, void *, afi_t, safi_t, rd_t *, path_id_t *, char *); ^~~~~~~~~~~~~~~~~~~~ bgp_msg.c:939:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ In file included from ./../pmacct.h:229:0, from bgp_msg.c:26: At top level: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bgp_msg.c: In function 'bgp_process_withdraw': bgp_msg.c:1254:13: warning: 'modulo' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ri) bgp_info_delete(peer, route, ri, modulo); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bgp_msg.c: In function 'bgp_nlri_parse': bgp_msg.c:938:7: warning: 'psize' may be used uninitialized in this function [-Wmaybe-uninitialized] int psize, end; ^~~~~ CC libbgp_la-bgp_lookup.lo bgp_lookup.c: In function 'bgp_follow_nexthop_lookup': bgp_lookup.c:330:23: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *saved_agent = pptrs->f_agent; ^~~~~ CC libbgp_la-bgp_lcommunity.lo bgp_lookup.c:427:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = (char *) &sa_local; ^ bgp_lookup.c:454:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = (char *) &sa_local; ^ bgp_lookup.c:481:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = (char *) &sa_local; ^ bgp_lookup.c:500:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = saved_agent; ^ In file included from bgp_lookup.c:28:0: At top level: ./../pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from ./../plugin_hooks.h:88:0, from bgp_lookup.c:27: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_lookup.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bgp_lcommunity.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bgp_lcommunity.c: In function 'lcommunity_lcom2str': bgp_lcommunity.c:259:9: warning: 'str_buf' may be used uninitialized in this function [-Wmaybe-uninitialized] char *str_buf; ^~~~~~~ CCLD libbgp.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bgp' Making all in tee_plugin gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/tee_plugin' CC libtee_plugin_la-tee_recvs.lo CC libtee_plugin_la-tee_plugin.lo tee_recvs.c: In function 'tee_recvs_map_id_handler': tee_recvs.c:31:17: warning: unused variable 'recv_idx' [-Wunused-variable] int pool_idx, recv_idx; ^~~~~~~~ tee_recvs.c: In function 'tee_recvs_map_ip_handler': tee_recvs.c:78:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ',')) { ^~~~~ tee_recvs.c:71:7: warning: unused variable 'pool_idx' [-Wunused-variable] int pool_idx, recv_idx; ^~~~~~~~ tee_recvs.c: In function 'tee_recvs_map_tag_handler': tee_recvs.c:110:17: warning: unused variable 'recv_idx' [-Wunused-variable] int pool_idx, recv_idx, ret; ^~~~~~~~ tee_recvs.c:110:7: warning: unused variable 'pool_idx' [-Wunused-variable] int pool_idx, recv_idx, ret; ^~~~~~~~ tee_recvs.c: In function 'tee_recvs_map_balance_alg_handler': tee_recvs.c:125:27: warning: unused variable 'ret' [-Wunused-variable] int pool_idx, recv_idx, ret; ^~~ tee_recvs.c:125:17: warning: unused variable 'recv_idx' [-Wunused-variable] int pool_idx, recv_idx, ret; ^~~~~~~~ tee_recvs.c:125:7: warning: unused variable 'pool_idx' [-Wunused-variable] int pool_idx, recv_idx, ret; ^~~~~~~~ tee_recvs.c: In function 'tee_recvs_map_src_port_handler': tee_recvs.c:156:17: warning: unused variable 'recv_idx' [-Wunused-variable] int pool_idx, recv_idx, port; ^~~~~~~~ tee_recvs.c:156:7: warning: unused variable 'pool_idx' [-Wunused-variable] int pool_idx, recv_idx, port; ^~~~~~~~ In file included from ../pmacct.h:229:0, from tee_recvs.c:24: At top level: ../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ tee_plugin.c: In function 'tee_plugin': tee_plugin.c:292:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] msg->payload = (pipebuf+sizeof(struct ch_buf_hdr)+PmsgSz); ^ tee_plugin.c:318:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) msg; ^ tee_plugin.c:50:9: warning: unused variable 'kafka_msg' [-Wunused-variable] void *kafka_msg; ^~~~~~~~~ tee_plugin.c:42:34: warning: unused variable 'dest_serv' [-Wunused-variable] char *dataptr, dest_addr[256], dest_serv[256]; ^~~~~~~~~ tee_plugin.c:42:18: warning: unused variable 'dest_addr' [-Wunused-variable] char *dataptr, dest_addr[256], dest_serv[256]; ^~~~~~~~~ tee_plugin.c:36:7: warning: unused variable 'fd' [-Wunused-variable] int fd, pool_idx, recv_idx; ^~ tee_plugin.c:35:72: warning: unused variable 'num' [-Wunused-variable] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, err, ret, num; ^~~ tee_plugin.c:35:62: warning: unused variable 'err' [-Wunused-variable] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, err, ret, num; ^~~ tee_plugin.c:35:47: warning: unused variable 'kafka_timeout' [-Wunused-variable] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, err, ret, num; ^~~~~~~~~~~~~ tee_plugin.c: In function 'Tee_send': tee_plugin.c:350:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c:353:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(recv_addr, &r); ^~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c:370:19: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c:373:19: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(recv_addr, &r); ^~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c:457:21: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c:460:14: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(recv_addr, &r); ^~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c: In function 'Tee_init_socks': tee_plugin.c:528:21: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(recv_addr_str, &recv_addr); ^~~~~~~~~~~~~ In file included from tee_plugin.c:25:0: ./../addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ tee_plugin.c: In function 'Tee_prepare_sock': tee_plugin.c:579:9: warning: unused variable 'hincl' [-Wunused-variable] int hincl = TRUE; ^~~~~ tee_plugin.c:596:50: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(s, SOL_SOCKET, SO_SNDBUF, &saved, &l); ^ In file included from ./../pmacct.h:56:0, from tee_plugin.c:24: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ tee_plugin.c:598:53: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(s, SOL_SOCKET, SO_SNDBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from tee_plugin.c:24: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ tee_plugin.c:602:55: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(s, SOL_SOCKET, SO_SNDBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from tee_plugin.c:24: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ In file included from ./../plugin_hooks.h:88:0, from tee_plugin.c:28: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from tee_plugin.c:27:0: ./../pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from ./../pmacct.h:229:0, from tee_plugin.c:24: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ tee_plugin.c: In function 'Tee_send': tee_plugin.c:407:19: warning: 'uh' may be used uninitialized in this function [-Wmaybe-uninitialized] uh->uh_ulen = htons(msg->len+UDPHdrSz); ^ tee_plugin.c: In function 'tee_plugin': tee_plugin.c:230:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] switch (ret) { ^~~~~~ tee_plugin.c:212:10: warning: 'timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == amqp_timeout) { ^ tee_plugin.c:35:33: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, err, ret, num; ^~~~~~~~~~~~ CCLD libtee_plugin.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/tee_plugin' Making all in isis gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/isis' CC libisis_la-isis.lo CC libisis_la-checksum.lo isis.c: In function 'skinny_isis_daemon': isis.c:155:53: warning: pointer targets in passing argument 2 of 'area_net_title' differ in signedness [-Wpointer-sign] if (config.nfacctd_isis_net) area_net_title(area, config.nfacctd_isis_net); ^~~~~~ In file included from isis.c:49:0: isisd.h:139:9: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT int area_net_title(struct isis_area *, const u_char *); ^~~~~~~~~~~~~~ isis.c: In function 'isis_pdu_runner': isis.c:272:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ssnpa = pptrs.packet_ptr; ^ isis.c:277:28: warning: pointer targets in passing argument 2 of 'isis_handle_pdu' differ in signedness [-Wpointer-sign] isis_handle_pdu (circuit, ssnpa); ^~~~~ In file included from isis.c:52:0: isis_pdu.h:241:9: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' EXT int isis_handle_pdu (struct isis_circuit *, u_char *); ^~~~~~~~~~~~~~~ isis.c:242:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ isis.c:241:17: warning: unused variable 'thread' [-Wunused-variable] struct thread thread; ^~~~~~ isis.c: In function 'isis_sll_handler': isis.c:322:11: warning: variable 'p' set but not used [-Wunused-but-set-variable] u_char *p; ^ isis.c: In function 'igp_daemon_map_adj_metric_handler': isis.c:485:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ';')) { ^~~~~ isis.c:477:16: warning: unused variable 'debug_idx' [-Wunused-variable] int idx = 0, debug_idx; ^~~~~~~~~ isis.c: In function 'igp_daemon_map_reach_metric_handler': isis.c:536:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ';')) { ^~~~~ isis.c:528:16: warning: unused variable 'debug_idx' [-Wunused-variable] int idx = 0, debug_idx; ^~~~~~~~~ isis.c: In function 'igp_daemon_map_reach6_metric_handler': isis.c:588:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ';')) { ^~~~~ isis.c:580:16: warning: unused variable 'debug_idx' [-Wunused-variable] int idx = 0, debug_idx; ^~~~~~~~~ isis.c: In function 'igp_daemon_map_validate': isis.c:672:40: warning: pointer targets in passing argument 1 of 'igp_daemon_map_handle_lsp_id' differ in signedness [-Wpointer-sign] if (igp_daemon_map_handle_lsp_id(lsp_hdr->lsp_id, &entry->node)) return; ^~~~~~~ In file included from checksum.c:12:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from checksum.c:11: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from isis.c:29:0: isis.h:101:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int igp_daemon_map_handle_lsp_id(char *, struct host_addr *); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ isis.c:808:12: warning: pointer targets in passing argument 1 of 'pcap_dump' differ in signedness [-Wpointer-sign] pcap_dump((char *) idmm_fd, &phdr, isis_dgram); ^ In file included from /usr/include/pcap.h:43:0, from ./../pmacct.h:30, from isis.c:26: /usr/include/pcap/pcap.h:428:15: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^~~~~~~~~ isis.c:808:37: warning: pointer targets in passing argument 3 of 'pcap_dump' differ in signedness [-Wpointer-sign] pcap_dump((char *) idmm_fd, &phdr, isis_dgram); ^~~~~~~~~~ In file included from /usr/include/pcap.h:43:0, from ./../pmacct.h:30, from isis.c:26: /usr/include/pcap/pcap.h:428:15: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis.c:26: At top level: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-dict.lo CC libisis_la-table.lo In file included from dict.c:21:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from dict.c:20: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from table.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from table.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-prefix.lo CC libisis_la-sockunion.lo In file included from prefix.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from prefix.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from sockunion.c:25:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from sockunion.c:24: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-hash.lo CC libisis_la-stream.lo In file included from hash.c:25:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from hash.c:24: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from stream.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from stream.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-thread.lo thread.c: In function 'cpu_record_hash_key': thread.c:220:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (unsigned int) a->func; ^ At top level: thread.c:250:1: warning: 'cpu_record_hash_clear' defined but not used [-Wunused-function] cpu_record_hash_clear (struct hash_backet *bucket, ^~~~~~~~~~~~~~~~~~~~~ In file included from thread.c:25:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from thread.c:24: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-linklist.lo In file included from linklist.c:25:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from linklist.c:24: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_circuit.lo CC libisis_la-isis_events.lo In file included from isis_circuit.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_circuit.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ isis_events.c: In function 'circuit_resign_level': isis_events.c:149:7: warning: unused variable 'idx' [-Wunused-variable] int idx = level - 1; ^~~ In file included from ./../pmacct.h:229:0, from isis_events.c:25: At top level: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_route.lo CC libisis_la-isis_tlv.lo In file included from isis_route.c:28:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_route.c:27: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ isis_tlv.c: In function 'parse_tlvs': isis_tlv.c:122:10: warning: variable 'virtual' set but not used [-Wunused-but-set-variable] u_char virtual; ^~~~~~~ In file included from isis_tlv.c:27:0: At top level: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_tlv.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_csm.lo CC libisis_la-isis_flags.lo In file included from isis_csm.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_csm.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_misc.lo isis_flags.c: In function 'flags_get_index': isis_flags.c:55:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] index = (int) listgetdata (node); ^ isis_flags.c:56:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] isis_listnode_delete (flags->free_idcs, (void *) index); ^ isis_flags.c: In function 'flags_free_index': isis_flags.c:77:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] isis_listnode_add (flags->free_idcs, (void *) (index + 1)); ^ In file included from isis_flags.c:27:0: At top level: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_flags.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isisd.lo isis_misc.c: In function 'dotformat2buff': isis_misc.c:109:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] dotlen = strlen(dotted); ^~~~~~ In file included from ./../pmacct.h:36:0, from isis_misc.c:26: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ isis_misc.c: In function 'sysid2buff': isis_misc.c:167:15: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen (dotted) != 14) ^~~~~~ In file included from ./../pmacct.h:36:0, from isis_misc.c:26: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ isis_misc.c: In function 'string2circuit_t': isis_misc.c:279:16: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp (str, "level-1")) ^~~ In file included from ./../pmacct.h:36:0, from isis_misc.c:26: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ isis_misc.c:282:16: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp (str, "level-2-only") || !strcmp (str, "level-2")) ^~~ In file included from ./../pmacct.h:36:0, from isis_misc.c:26: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ isis_misc.c:282:49: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp (str, "level-2-only") || !strcmp (str, "level-2")) ^~~ In file included from ./../pmacct.h:36:0, from isis_misc.c:26: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ isis_misc.c:285:16: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp (str, "level-1-2")) ^~~ In file included from ./../pmacct.h:36:0, from isis_misc.c:26: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ In file included from isis_misc.c:27:0: At top level: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_misc.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from isisd.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isisd.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_adjacency.lo CC libisis_la-isis_dynhn.lo isis_adjacency.c: In function 'isis_new_adj': isis_adjacency.c:61:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ isis_adjacency.c: In function 'isis_adj_state_change': isis_adjacency.c:138:7: warning: unused variable 'level' [-Wunused-variable] int level = adj->level; ^~~~~ isis_adjacency.c: In function 'isis_adj_expire': isis_adjacency.c:170:7: warning: variable 'level' set but not used [-Wunused-but-set-variable] int level; ^~~~~ At top level: isis_adjacency.c:186:1: warning: 'adj_state2string' defined but not used [-Wunused-function] adj_state2string (int state) ^~~~~~~~~~~~~~~~ In file included from isis_adjacency.c:27:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_adjacency.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from isis_dynhn.c:26:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_dynhn.c:25: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_spf.lo CC libisis_la-iso_checksum.lo isis_spf.c: In function 'isis_spf_preload_tent': isis_spf.c:760:10: warning: unused variable 'lsp_id' [-Wunused-variable] u_char lsp_id[ISIS_SYS_ID_LEN + 2]; ^~~~~~ isis_spf.c:756:16: warning: unused variable 'adjdb' [-Wunused-variable] struct list *adjdb; ^~~~~ isis_spf.c:755:16: warning: unused variable 'adj_list' [-Wunused-variable] struct list *adj_list; ^~~~~~~~ isis_spf.c:754:20: warning: unused variable 'lsp' [-Wunused-variable] struct isis_lsp *lsp; ^~~ isis_spf.c:752:28: warning: unused variable 'anode' [-Wunused-variable] struct listnode *cnode, *anode, *ipnode; ^~~~~ isis_spf.c:750:23: warning: unused variable 'vertex' [-Wunused-variable] struct isis_vertex *vertex; ^~~~~~ isis_spf.c: In function 'add_to_paths': isis_spf.c:858:40: warning: pointer targets in passing argument 2 of 'isis_prefix2str' differ in signedness [-Wpointer-sign] isis_prefix2str (&vertex->N.prefix, prefix, BUFSIZ); ^~~~~~ In file included from isis.h:27:0, from isis_spf.c:27: prefix.h:167:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int isis_prefix2str (const struct isis_prefix *, char *, int); ^~~~~~~~~~~~~~~ isis_spf.c:868:40: warning: pointer targets in passing argument 2 of 'isis_prefix2str' differ in signedness [-Wpointer-sign] isis_prefix2str (&vertex->N.prefix, prefix, BUFSIZ); ^~~~~~ In file included from isis.h:27:0, from isis_spf.c:27: prefix.h:167:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int isis_prefix2str (const struct isis_prefix *, char *, int); ^~~~~~~~~~~~~~~ In file included from isis_spf.c:27:0: At top level: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_spf.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from iso_checksum.c:27:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from iso_checksum.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libisis_la-isis_lsp.lo CC libisis_la-isis_pdu.lo isis_lsp.c: In function 'lsp_update_data': isis_lsp.c:343:7: warning: variable 'retval' set but not used [-Wunused-but-set-variable] int retval; ^~~~~~ At top level: isis_lsp.c:595:1: warning: 'lsp_set_time' defined but not used [-Wunused-function] lsp_set_time (struct isis_lsp *lsp) ^~~~~~~~~~~~ In file included from isis_lsp.c:27:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_lsp.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ isis_pdu.c: In function 'process_snp': isis_pdu.c:965:26: warning: unused variable 'adj' [-Wunused-variable] struct isis_adjacency *adj; ^~~ isis_pdu.c:963:8: warning: variable 'typechar' set but not used [-Wunused-but-set-variable] char typechar = ' '; ^~~~~~~~ isis_pdu.c: In function 'isis_send_pdu_p2p': isis_pdu.c:1620:7: warning: variable 'written' set but not used [-Wunused-but-set-variable] int written = 1; ^~~~~~~ At top level: isis_pdu.c:143:1: warning: 'ip_match' defined but not used [-Wunused-function] ip_match (struct list *left, struct list *right) ^~~~~~~~ In file included from isis_pdu.c:27:0: isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from isis_pdu.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CCLD libisis.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/isis' Making all in bmp gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bmp' CC libbmp_la-bmp.lo CC libbmp_la-bmp_logdump.lo bmp.c: In function 'skinny_bmp_daemon': bmp.c:245:64: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.bmp_sock, SOL_SOCKET, SO_RCVBUF, &saved, &l); ^ In file included from ./../pmacct.h:56:0, from bmp.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ bmp.c:247:67: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.bmp_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from bmp.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ bmp.c:250:67: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.bmp_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from bmp.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ bmp.c:414:28: warning: implicit declaration of function 'P_broker_timers_get_last_fail' [-Wimplicit-function-declaration] time_t last_fail = P_broker_timers_get_last_fail(&bmp_daemon_msglog_amqp_host.btimers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bmp.c:416:40: warning: implicit declaration of function 'P_broker_timers_get_retry_interval' [-Wimplicit-function-declaration] if (last_fail && ((last_fail + P_broker_timers_get_retry_interval(&bmp_daemon_msglog_amqp_host.btimers)) <= bmp_misc_db->log_tstamp.tv_sec)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bmp.c:444:65: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] fd = accept(config.bmp_sock, (struct sockaddr *) &client, &clen); ^ In file included from ./../pmacct.h:56:0, from bmp.c:26: /usr/include/sys/socket.h:237:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ bmp.c:61:55: warning: unused variable 'no' [-Wunused-variable] int slen, clen, ret, rc, peers_idx, allowed, yes=1, no=0; ^~ In file included from bmp.c:32:0: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from bmp.c:29:0: bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bmp.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bmp_logdump.c: In function 'bmp_handle_dump_event': bmp_logdump.c:416:27: warning: variable 'saved_bmpp' set but not used [-Wunused-but-set-variable] struct bmp_peer *bmpp, *saved_bmpp; ^~~~~~~~~~ bmp_logdump.c: In function 'bmp_daemon_msglog_init_amqp_host': bmp_logdump.c:646:3: warning: implicit declaration of function 'P_broker_timers_set_retry_interval' [-Wimplicit-function-declaration] P_broker_timers_set_retry_interval(&bmp_daemon_msglog_amqp_host.btimers, config.nfacctd_bmp_msglog_amqp_retry); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bmp_logdump.c:32:0: At top level: ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from bmp_logdump.c:30:0: bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bmp_logdump.c:27: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ bmp.c: In function 'skinny_bmp_daemon': bmp.c:508:9: warning: 'fd' may be used uninitialized in this function [-Wmaybe-uninitialized] close(fd); ^~~~~~~~~ bmp.c:408:33: warning: 'dump_refresh_deadline' may be used uninitialized in this function [-Wmaybe-uninitialized] dump_refresh_deadline += config.bmp_dump_refresh_time; ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC libbmp_la-bmp_msg.lo CC libbmp_la-bmp_util.lo bmp_msg.c: In function 'bmp_process_msg_peer_up': bmp_msg.c:309:19: warning: unused variable 'alloc_key' [-Wunused-variable] void *ret, *alloc_key; ^~~~~~~~~ In file included from bmp_msg.c:31:0: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from bmp_msg.c:29:0: bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bmp_msg.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from bmp_util.c:31:0: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from bmp_util.c:29:0: bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bmp_util.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libbmp_la-bmp_lookup.lo In file included from bmp_lookup.c:29:0: bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from bmp_lookup.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CCLD libbmp.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bmp' Making all in telemetry gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/telemetry' CC libtelemetry_la-telemetry_logdump.lo CC libtelemetry_la-telemetry.lo telemetry_logdump.c: In function 'telemetry_log_msg': telemetry_logdump.c:93:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] base64_tdata = base64_encode(log_data, log_data_len, &base64_tdata_len); ^ telemetry_logdump.c:97:17: warning: pointer targets in passing argument 1 of 'base64_freebuf' differ in signedness [-Wpointer-sign] base64_freebuf(base64_tdata); ^~~~~~~~~~~~ In file included from telemetry.h:23:0, from telemetry_logdump.c:29: ./../base64.h:20:6: note: expected 'unsigned char *' but argument is of type 'char *' void base64_freebuf(unsigned char *); ^~~~~~~~~~~~~~ telemetry_logdump.c:72:10: warning: unused variable 'tstamp_str' [-Wunused-variable] char tstamp_str[SRVBUFLEN]; ^~~~~~~~~~ telemetry_logdump.c: In function 'telemetry_handle_dump_event': telemetry_logdump.c:245:13: warning: variable 'dump_elems' set but not used [-Wunused-but-set-variable] u_int64_t dump_elems; ^~~~~~~~~~ telemetry_logdump.c:241:36: warning: unused variable 'event_type' [-Wunused-variable] char latest_filename[SRVBUFLEN], event_type[] = "dump", *fd_buf = NULL; ^~~~~~~~~~ telemetry.c: In function 'telemetry_daemon': telemetry.c:329:70: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.telemetry_sock, SOL_SOCKET, SO_RCVBUF, &saved, &l); ^ In file included from ./../pmacct.h:56:0, from telemetry.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ telemetry.c:331:73: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.telemetry_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from telemetry.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ telemetry.c:334:73: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.telemetry_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from ./../pmacct.h:56:0, from telemetry.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ telemetry.c:512:28: warning: implicit declaration of function 'P_broker_timers_get_last_fail' [-Wimplicit-function-declaration] time_t last_fail = P_broker_timers_get_last_fail(&telemetry_daemon_msglog_amqp_host.btimers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ telemetry_logdump.c: In function 'telemetry_daemon_msglog_init_amqp_host': telemetry_logdump.c:425:3: warning: implicit declaration of function 'P_broker_timers_set_retry_interval' [-Wimplicit-function-declaration] P_broker_timers_set_retry_interval(&telemetry_daemon_msglog_amqp_host.btimers, config.telemetry_msglog_amqp_retry); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from telemetry_logdump.c:31:0: At top level: ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from telemetry_logdump.c:28:0: ../bmp/bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ ../bmp/bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ ../bmp/bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from telemetry_logdump.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ telemetry.c:514:40: warning: implicit declaration of function 'P_broker_timers_get_retry_interval' [-Wimplicit-function-declaration] if (last_fail && ((last_fail + P_broker_timers_get_retry_interval(&telemetry_daemon_msglog_amqp_host.btimers)) <= telemetry_misc_db->log_tstamp.tv_sec)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ telemetry.c:561:73: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] fd = accept(config.telemetry_sock, (struct sockaddr *) &client, &clen); ^ In file included from ./../pmacct.h:56:0, from telemetry.c:26: /usr/include/sys/socket.h:237:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ telemetry.c:567:102: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] ret = recvfrom(config.telemetry_sock, dummy_local_buf, TRUE, MSG_PEEK, (struct sockaddr *) &client, &clen); ^ In file included from /usr/include/sys/socket.h:274:0, from ./../pmacct.h:56, from telemetry.c:26: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^~~~~~~~ telemetry.c:69:55: warning: unused variable 'no' [-Wunused-variable] int slen, clen, ret, rc, peers_idx, allowed, yes=1, no=0; ^~ In file included from telemetry.c:32:0: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from telemetry.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ telemetry.c: In function 'telemetry_daemon': telemetry.c:639:16: warning: 'fd' may be used uninitialized in this function [-Wmaybe-uninitialized] peer->fd = fd; ~~~~~~~~~^~~~ telemetry.c:506:33: warning: 'dump_refresh_deadline' may be used uninitialized in this function [-Wmaybe-uninitialized] dump_refresh_deadline += config.telemetry_dump_refresh_time; ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC libtelemetry_la-telemetry_msg.lo CC libtelemetry_la-telemetry_util.lo telemetry_msg.c: In function 'telemetry_recv_json': telemetry_msg.c:114:16: warning: unused variable 'idx' [-Wunused-variable] int ret = 0, idx; ^~~ In file included from telemetry_msg.c:30:0: At top level: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from telemetry_msg.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from telemetry_util.c:30:0: ./../amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ ./../amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ ./../amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ ./../amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ ./../amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ./../pmacct.h:229:0, from telemetry_util.c:26: ./../cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CCLD libtelemetry.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/telemetry' Making all in ndpi gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/ndpi' CC ndpi_util.lo CCLD libndpi_support.la gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/ndpi' gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' CC libdaemons_la-signals.lo CC libdaemons_la-util.lo util.c: In function 'extract_token': util.c:89:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (delim_ptr = strchr(*string, delim)) { ^~~~~~~~~ util.c: In function 'handle_dynname_internal_strings': util.c:523:14: warning: unused variable 'howmany' [-Wunused-variable] int len, howmany; ^~~~~~~ util.c:553:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (prim_ptrs && prim_ptrs->data) snprintf(buf, newlen, "%llu", prim_ptrs->data->primitives.tag); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:554:36: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] else snprintf(buf, newlen, "%llu", zero_tag); ~~~^ %lu util.c:546:14: warning: unused variable 'howmany' [-Wunused-variable] int len, howmany; ^~~~~~~ util.c:574:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (prim_ptrs && prim_ptrs->data) snprintf(buf, newlen, "%llu", prim_ptrs->data->primitives.tag2); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:575:36: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] else snprintf(buf, newlen, "%llu", zero_tag); ~~~^ %lu util.c:567:14: warning: unused variable 'howmany' [-Wunused-variable] int len, howmany; ^~~~~~~ util.c: In function 'Setsocksize': util.c:816:41: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(s, level, optname, &saved, &len); ^ In file included from pmacct.h:56:0, from util.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ util.c: In function 'decode_mpls_label': In file included from plugin_hooks.h:88:0, from signals.c:28: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from signals.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from signals.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ util.c:993:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ret = ntohl(*(uint32_t *)(label_ttl)); ^~~ util.c: In function 'load_bgp_md5_file': util.c:1292:10: warning: unused variable 'endptr' [-Wunused-variable] char *endptr, *token; ^~~~~~ util.c: In function 'compose_json_str': util.c:1586:11: warning: unused variable 'json_obj' [-Wunused-variable] json_t *json_obj = (json_t *) obj; ^~~~~~~~ util.c: In function 'write_and_free_json_amqp': util.c:1629:7: warning: implicit declaration of function 'P_handle_table_dyn_rr' [-Wimplicit-function-declaration] P_handle_table_dyn_rr(dyn_amqp_routing_key, SRVBUFLEN, orig_amqp_routing_key, &alog->rk_rr); ^~~~~~~~~~~~~~~~~~~~~ util.c: In function 'compose_timestamp': util.c:1792:39: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] if (usec) snprintf(buf, buflen, "%u.%u", tv->tv_sec, tv->tv_usec); ~^ ~~~~~~~~~~ %lu util.c:1792:42: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] if (usec) snprintf(buf, buflen, "%u.%u", tv->tv_sec, tv->tv_usec); ~^ ~~~~~~~~~~~ %lu util.c:1793:34: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] else snprintf(buf, buflen, "%u", tv->tv_sec); ~^ ~~~~~~~~~~ %lu util.c:1800:42: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] if (usec) snprintf(buf, buflen, "%s.%u", tmpbuf, tv->tv_usec); ~^ ~~~~~~~~~~~ %lu util.c: In function 'custom_primitives_reconcile': util.c:1939:55: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(cpptrs->primitive[cpptrs_idx].name, registry->primitive[registry_idx].name)) { ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ util.c: In function 'custom_primitive_header_print': util.c:1994:77: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->ptr->len] > strlen(cp_entry->ptr->name) ? cps_flen[cp_entry->ptr->len] : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:1994:138: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->ptr->len] > strlen(cp_entry->ptr->name) ? cps_flen[cp_entry->ptr->len] : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:1994:35: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka const long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->ptr->len] > strlen(cp_entry->ptr->name) ? cps_flen[cp_entry->ptr->len] : strlen(cp_entry->ptr->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:2002:67: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2002:118: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2002:35: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:2016:59: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2016:95: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2016:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:2025:59: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2025:95: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2025:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c: In function 'custom_primitive_value_print': util.c:2045:86: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->ptr->len] > strlen(cp_entry->ptr->name) ? cps_flen[cp_entry->ptr->len] : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2045:147: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->ptr->len] > strlen(cp_entry->ptr->name) ? cps_flen[cp_entry->ptr->len] : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2045:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka const long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->ptr->len] > strlen(cp_entry->ptr->name) ? cps_flen[cp_entry->ptr->len] : strlen(cp_entry->ptr->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:2081:69: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2081:120: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2081:35: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:2114:61: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2114:97: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2114:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c:2126:24: warning: pointer targets in passing argument 1 of 'etheraddr_string' differ in signedness [-Wpointer-sign] etheraddr_string(in+cp_entry->off, eth_str); ^~ In file included from util.c:26:0: addr.h:53:10: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT void etheraddr_string(const u_char *, char *); ^~~~~~~~~~~~~~~~ util.c:2129:61: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2129:97: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^~~~~~~~ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ util.c:2129:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu util.c: In function 'hash_init_serial': util.c:2478:7: warning: unused variable 'ret' [-Wunused-variable] int ret; ^~~ util.c: In function 'link_latest_output_file': util.c:441:5: warning: ignoring return value of 'readlink', declared with attribute warn_unused_result [-Wunused-result] readlink(link_filename, buf, SRVBUFLEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.c:452:5: warning: ignoring return value of 'symlink', declared with attribute warn_unused_result [-Wunused-result] symlink(filename_to_link, link_filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from util.c:30: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ CC libdaemons_la-plugin_hooks.lo util.c: In function 'Setsocksize': util.c:825:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] return ret; ^~~ plugin_hooks.c: In function 'load_plugins': plugin_hooks.c:114:71: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(list->pipe[0], SOL_SOCKET, SO_RCVBUF, &rcv_buflen, &l); ^ In file included from pmacct.h:56:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ plugin_hooks.c:115:71: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(list->pipe[1], SOL_SOCKET, SO_SNDBUF, &snd_buflen, &l); ^ In file included from pmacct.h:56:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ plugin_hooks.c:131:71: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(list->pipe[0], SOL_SOCKET, SO_RCVBUF, &rcv_buflen, &l); ^ In file included from pmacct.h:56:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ plugin_hooks.c:132:71: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(list->pipe[1], SOL_SOCKET, SO_SNDBUF, &snd_buflen, &l); ^ In file included from pmacct.h:56:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ plugin_hooks.c:139:73: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(list->pipe[0], SOL_SOCKET, SO_RCVBUF, &rcv_buflen, &l); ^ In file included from pmacct.h:56:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ plugin_hooks.c:140:73: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(list->pipe[1], SOL_SOCKET, SO_SNDBUF, &snd_buflen, &l); ^ In file included from pmacct.h:56:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ plugin_hooks.c:43:71: warning: unused variable 'ret' [-Wunused-variable] int snd_buflen = 0, rcv_buflen = 0, socklen = 0, target_buflen = 0, ret; ^~~ plugin_hooks.c: In function 'exec_plugins': plugin_hooks.c:474:60: warning: pointer targets in passing argument 2 of 'evaluate_filters' differ in signedness [-Wpointer-sign] if (evaluate_filters(&channels_list[index].agg_filter, pptrs->packet_ptr, pptrs->pkthdr) && ^~~~~ In file included from plugin_hooks.c:28:0: plugin_hooks.h:164:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT int evaluate_filters(struct aggregate_filter *, char *, struct pcap_pkthdr *); ^~~~~~~~~~~~~~~~ plugin_hooks.c: In function 'insert_pipe_channel': plugin_hooks.c:642:18: warning: unused variable 'x' [-Wunused-variable] int index = 0, x; ^ plugin_hooks.c: In function 'evaluate_filters': plugin_hooks.c:846:52: warning: pointer targets in passing argument 2 of 'bpf_filter' differ in signedness [-Wpointer-sign] if (bpf_filter(filter->table[index]->bf_insns, pkt, pkthdr->len, pkthdr->caplen)) return TRUE; ^~~ In file included from /usr/include/pcap.h:43:0, from pmacct.h:30, from plugin_hooks.c:25: /usr/include/pcap/pcap.h:443:18: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' PCAP_API u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int); ^~~~~~~~~~ plugin_hooks.c: In function 'handle_plugin_pipe_dyn_strings': plugin_hooks.c:1027:21: warning: unused variable 'ptr_end' [-Wunused-variable] char *ptr_start, *ptr_end; ^~~~~~~ plugin_hooks.c:1027:9: warning: unused variable 'ptr_start' [-Wunused-variable] char *ptr_start, *ptr_end; ^~~~~~~~~ plugin_hooks.c:1024:15: warning: unused variable 'ptr_len' [-Wunused-variable] int oldlen, ptr_len; ^~~~~~~ plugin_hooks.c: In function 'plugin_pipe_amqp_init_host': plugin_hooks.c:1060:7: warning: unused variable 'ret' [-Wunused-variable] int ret; ^~~ In file included from plugin_hooks.h:88:0, from plugin_hooks.c:28: At top level: amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from plugin_hooks.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from plugin_hooks.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-server.lo CC libdaemons_la-acct.lo server.c: In function 'process_query_data': server.c:461:15: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(custom_primitives_registry.primitive[idx].name, config.cpptrs.primitive[idx].name, MAX_CUSTOM_PRIMITIVE_NAMELEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from server.c:25:0: pmacct.h:365:8: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ server.c:491:5: warning: label 'send_pldt_dummy' defined but not used [-Wunused-label] send_pldt_dummy: ^~~~~~~~~~~~~~~ server.c:68:29: warning: unused variable 'tmpbuf' [-Wunused-variable] struct acc *acc_elem = 0, tmpbuf; ^~~~~~ In file included from pmacct.h:229:0, from server.c:25: At top level: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ acct.c: In function 'search_accounting_structure': acct.c:41:35: warning: unused variable 'pvlen' [-Wunused-variable] struct pkt_vlen_hdr_primitives *pvlen = prim_ptrs->pvlen; ^~~~~ acct.c: In function 'compare_accounting_structure': acct.c:88:73: warning: variable 'res_tun' set but not used [-Wunused-but-set-variable] int res_data = TRUE, res_bgp = TRUE, res_nat = TRUE, res_mpls = TRUE, res_tun = TRUE; ^~~~~~~ In file included from acct.c:27:0: At top level: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from pmacct.h:229:0, from acct.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-memory.lo CC libdaemons_la-cfg.lo In file included from pmacct.h:229:0, from memory.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ cfg.c: In function 'sanitize_cfg': cfg.c:176:35: warning: unused variable 'got_first_colon' [-Wunused-variable] int rindex = 0, len, got_first, got_first_colon; ^~~~~~~~~~~~~~~ cfg.c:176:24: warning: unused variable 'got_first' [-Wunused-variable] int rindex = 0, len, got_first, got_first_colon; ^~~~~~~~~ In file included from cfg.c:27:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from plugin_hooks.h:88:0, from cfg.c:26: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from cfg.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-imt_plugin.lo cfg.c: In function 'sanitize_cfg': cfg.c:270:7: warning: 'valueptr' may be used uninitialized in this function [-Wmaybe-uninitialized] trim_spaces(valueptr); ^~~~~~~~~~~~~~~~~~~~~ CC libdaemons_la-log.lo imt_plugin.c: In function 'imt_plugin': imt_plugin.c:243:22: warning: implicit declaration of function 'P_broker_timers_get_retry_interval' [-Wimplicit-function-declaration] else amqp_timeout = P_broker_timers_get_retry_interval(&amqp_host->btimers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imt_plugin.c:246:26: warning: implicit declaration of function 'P_broker_timers_get_last_fail' [-Wimplicit-function-declaration] amqp_timeout = ((P_broker_timers_get_last_fail(&amqp_host->btimers) + P_broker_timers_get_retry_interval(&amqp_host->btimers)) - cycle_stamp.tv_sec); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imt_plugin.c:266:32: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] sd2 = accept(sd, &cAddr, &cLen); ^ In file included from pmacct.h:56:0, from imt_plugin.c:25: /usr/include/sys/socket.h:237:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ imt_plugin.c:469:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pcust = ((u_char *)data + extras.off_custom_primitives); ^ imt_plugin.c:500:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ In file included from plugin_hooks.h:88:0, from imt_plugin.c:26: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from imt_plugin.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from pmacct.h:229:0, from log.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-pkt_handlers.lo CC libdaemons_la-cfg_handlers.lo pkt_handlers.c: In function 'evaluate_packet_handlers': pkt_handlers.c:46:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] memset(&channels_list[index].phandler, 0, N_PRIMITIVES); ^~~~~~ pkt_handlers.c: In function 'mpls_label_top_handler': pkt_handlers.c:915:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'mpls_label_bottom_handler': pkt_handlers.c:924:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'mpls_stack_depth_handler': pkt_handlers.c:940:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'bgp_peer_dst_ip_handler': pkt_handlers.c:978:20: warning: unused variable 'ret' [-Wunused-variable] struct bgp_node *ret = (struct bgp_node *) pptrs->bgp_dst; ^~~ pkt_handlers.c:977:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'igp_peer_dst_ip_handler': pkt_handlers.c:1032:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'mpls_vpn_rd_frommap_handler': pkt_handlers.c:1353:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'timestamp_start_handler': pkt_handlers.c:1361:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'timestamp_arrival_handler': pkt_handlers.c:1372:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'custom_primitives_handler': pkt_handlers.c:1406:37: warning: pointer targets in passing argument 1 of 'print_hex' differ in signedness [-Wpointer-sign] hexbuflen = print_hex(pptrs->pkt_data_ptrs[cpe->pd_ptr[pd_ptr_idx].ptr_idx.n]+cpe->pd_ptr[pd_ptr_idx].off, hexbuf, cpe->len); ^~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:132:9: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT int print_hex(const u_char *, u_char *, int); ^~~~~~~~~ pkt_handlers.c:1406:122: warning: pointer targets in passing argument 2 of 'print_hex' differ in signedness [-Wpointer-sign] hexbuflen = print_hex(pptrs->pkt_data_ptrs[cpe->pd_ptr[pd_ptr_idx].ptr_idx.n]+cpe->pd_ptr[pd_ptr_idx].off, hexbuf, cpe->len); ^~~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:132:9: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' EXT int print_hex(const u_char *, u_char *, int); ^~~~~~~~~ pkt_handlers.c:1383:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_peer_src_as_handler': pkt_handlers.c:1947:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_peer_dst_as_handler': pkt_handlers.c:1977:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_peer_src_ip_handler': pkt_handlers.c:2007:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_peer_dst_ip_handler': pkt_handlers.c:2047:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_sampling_rate_handler': pkt_handlers.c:3071:24: warning: variable 'is_sampled' set but not used [-Wunused-but-set-variable] u_int16_t srate = 0, is_sampled = 0; ^~~~~~~~~~ pkt_handlers.c: In function 'NF_timestamp_start_handler': pkt_handlers.c:3175:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_timestamp_end_handler': pkt_handlers.c:3284:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_timestamp_arrival_handler': pkt_handlers.c:3376:32: warning: unused variable 'tpl' [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^~~ pkt_handlers.c:3375:28: warning: unused variable 'hdr' [-Wunused-variable] struct struct_header_v8 *hdr = (struct struct_header_v8 *) pptrs->f_header; ^~~ pkt_handlers.c:3374:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_sequence_number_handler': pkt_handlers.c:3387:32: warning: unused variable 'tpl' [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^~~ pkt_handlers.c: In function 'NF_custom_primitives_handler': pkt_handlers.c:3435:80: warning: pointer targets in passing argument 2 of 'print_hex' differ in signedness [-Wpointer-sign] hexbuflen = print_hex(pptrs->f_data+tpl->tpl[cpe->field_type].off, hexbuf, tpl->tpl[cpe->field_type].len); ^~~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:132:9: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' EXT int print_hex(const u_char *, u_char *, int); ^~~~~~~~~ pkt_handlers.c:3447:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, cpe->pen, cpe->field_type, cpe->repeat_id)) { ^~~~ pkt_handlers.c:3452:62: warning: pointer targets in passing argument 2 of 'print_hex' differ in signedness [-Wpointer-sign] hexbuflen = print_hex(pptrs->f_data+utpl->off, hexbuf, utpl->len); ^~~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:132:9: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' EXT int print_hex(const u_char *, u_char *, int); ^~~~~~~~~ pkt_handlers.c:3475:57: warning: pointer targets in passing argument 4 of 'vlen_prims_insert' differ in signedness [-Wpointer-sign] else vlen_prims_insert(pvlen, cpe->type, utpl->len, pptrs->f_data+utpl->off, PM_MSG_STR_COPY); ^~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:156:10: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT void vlen_prims_insert(struct pkt_vlen_hdr_primitives *, pm_cfgreg_t, int, char *, int); ^~~~~~~~~~~~~~~~~ pkt_handlers.c:3415:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_post_nat_src_host_handler': pkt_handlers.c:3505:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (utpl = (*get_ext_db_ie_by_type)(tpl, 0, NF9_ASA_XLATE_IPV4_SRC_ADDR, FALSE)) { ^~~~ pkt_handlers.c:3491:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_post_nat_dst_host_handler': pkt_handlers.c:3532:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (utpl = (*get_ext_db_ie_by_type)(tpl, 0, NF9_ASA_XLATE_IPV4_DST_ADDR, FALSE)) { ^~~~ pkt_handlers.c:3518:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_post_nat_src_port_handler': pkt_handlers.c:3560:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (utpl = (*get_ext_db_ie_by_type)(tpl, 0, NF9_ASA_XLATE_L4_SRC_PORT, FALSE)) ^~~~ pkt_handlers.c:3545:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_post_nat_dst_port_handler': pkt_handlers.c:3587:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (utpl = (*get_ext_db_ie_by_type)(tpl, 0, NF9_ASA_XLATE_L4_DST_PORT, FALSE)) ^~~~ pkt_handlers.c:3572:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_nat_event_handler': pkt_handlers.c:3610:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (utpl = (*get_ext_db_ie_by_type)(tpl, 0, NF9_ASA_XLATE_EVENT, FALSE)) ^~~~ pkt_handlers.c:3599:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_mpls_label_top_handler': pkt_handlers.c:3629:49: warning: pointer targets in passing argument 1 of 'decode_mpls_label' differ in signedness [-Wpointer-sign] pmpls->mpls_label_top = decode_mpls_label(pptrs->f_data+tpl->tpl[NF9_MPLS_LABEL_1].off); ^~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:74:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT u_int32_t decode_mpls_label(char *); ^~~~~~~~~~~~~~~~~ pkt_handlers.c:3620:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_mpls_label_bottom_handler': pkt_handlers.c:3649:54: warning: pointer targets in passing argument 1 of 'decode_mpls_label' differ in signedness [-Wpointer-sign] pmpls->mpls_label_bottom = decode_mpls_label(pptrs->f_data+tpl->tpl[label_idx].off); ^~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:74:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT u_int32_t decode_mpls_label(char *); ^~~~~~~~~~~~~~~~~ pkt_handlers.c:3638:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_mpls_stack_depth_handler': pkt_handlers.c:3673:39: warning: pointer targets in passing argument 1 of 'decode_mpls_label' differ in signedness [-Wpointer-sign] last_label_value = decode_mpls_label(pptrs->f_data+tpl->tpl[label_idx].off); ^~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:74:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT u_int32_t decode_mpls_label(char *); ^~~~~~~~~~~~~~~~~ pkt_handlers.c:3661:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_mpls_vpn_id_handler': pkt_handlers.c:3691:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'NF_cust_tag_handler': pkt_handlers.c:3759:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, PMACCT_PEN, NF9_CUST_TAG, FALSE)) { ^~~~ pkt_handlers.c: In function 'NF_cust_tag2_handler': pkt_handlers.c:3778:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, PMACCT_PEN, NF9_CUST_TAG2, FALSE)) { ^~~~ pkt_handlers.c: In function 'NF_cust_label_handler': pkt_handlers.c:3798:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, PMACCT_PEN, NF9_CUST_LABEL, FALSE)) { ^~~~ pkt_handlers.c:3804:65: warning: pointer targets in passing argument 4 of 'vlen_prims_insert' differ in signedness [-Wpointer-sign] else vlen_prims_insert(pvlen, COUNT_INT_LABEL, utpl->len, pptrs->f_data+utpl->off, PM_MSG_STR_COPY); ^~~~~ In file included from pmacct.h:230:0, from pkt_handlers.c:25: util.h:156:10: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT void vlen_prims_insert(struct pkt_vlen_hdr_primitives *, pm_cfgreg_t, int, char *, int); ^~~~~~~~~~~~~~~~~ pkt_handlers.c: In function 'NF_counters_renormalize_handler': pkt_handlers.c:3820:24: warning: variable 'is_sampled' set but not used [-Wunused-but-set-variable] u_int16_t srate = 0, is_sampled = 0; ^~~~~~~~~~ pkt_handlers.c: In function 'bgp_ext_handler': pkt_handlers.c:3959:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pkt_handlers.c: In function 'sfprobe_bgp_ext_handler': pkt_handlers.c:4492:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pkt_handlers.c: In function 'nfprobe_bgp_ext_handler': pkt_handlers.c:4530:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pkt_handlers.c:4527:22: warning: unused variable 'pextras' [-Wunused-variable] struct pkt_extras *pextras = (struct pkt_extras *) ++pdata; ^~~~~~~ pkt_handlers.c: In function 'bgp_peer_src_as_frommap_handler': pkt_handlers.c:4569:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pkt_handlers.c:4566:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'bgp_src_local_pref_frommap_handler': pkt_handlers.c:4594:20: warning: unused variable 'src_ret' [-Wunused-variable] struct bgp_node *src_ret = (struct bgp_node *) pptrs->bgp_src; ^~~~~~~ pkt_handlers.c:4592:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'bgp_src_med_frommap_handler': pkt_handlers.c:4603:20: warning: unused variable 'src_ret' [-Wunused-variable] struct bgp_node *src_ret = (struct bgp_node *) pptrs->bgp_src; ^~~~~~~ pkt_handlers.c:4601:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ cfg_handlers.c: In function 'cfg_key_aggregate': cfg_handlers.c:191:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (count_token = extract_token(&value_ptr, ',')) { ^~~~~~~~~~~ pkt_handlers.c: In function 'SF_as_path_handler': pkt_handlers.c:4884:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_peer_src_as_handler': pkt_handlers.c:4940:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_peer_dst_as_handler': pkt_handlers.c:4952:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_local_pref_handler': pkt_handlers.c:4964:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_std_comms_handler': pkt_handlers.c:4976:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_peer_src_ip_handler': pkt_handlers.c:5034:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_peer_dst_ip_handler': pkt_handlers.c:5052:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_timestamp_start_handler': pkt_handlers.c:5144:13: warning: unused variable 'sample' [-Wunused-variable] SFSample *sample = (SFSample *) pptrs->f_data; ^~~~~~ pkt_handlers.c:5142:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_timestamp_arrival_handler': pkt_handlers.c:5154:13: warning: unused variable 'sample' [-Wunused-variable] SFSample *sample = (SFSample *) pptrs->f_data; ^~~~~~ pkt_handlers.c:5152:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_bgp_peer_src_as_fromstd_handler': pkt_handlers.c:5223:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_bgp_peer_src_as_fromext_handler': pkt_handlers.c:5233:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_tunnel_src_host_handler': pkt_handlers.c:5243:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_tunnel_dst_host_handler': pkt_handlers.c:5255:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_tunnel_ip_proto_handler': pkt_handlers.c:5267:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ pkt_handlers.c: In function 'SF_tunnel_ip_tos_handler': pkt_handlers.c:5276:20: warning: unused variable 'pdata' [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^~~~~ cfg_handlers.c: In function 'cfg_key_pre_tag2_filter': cfg_handlers.c:408:12: warning: unused variable 'neg' [-Wunused-variable] u_int8_t neg; ^~~ cfg_handlers.c:407:20: warning: unused variable 'endptr_r' [-Wunused-variable] char *endptr_v, *endptr_r; ^~~~~~~~ cfg_handlers.c:407:9: warning: unused variable 'endptr_v' [-Wunused-variable] char *endptr_v, *endptr_r; ^~~~~~~~ cfg_handlers.c:405:22: warning: unused variable 'range' [-Wunused-variable] pm_id_t value = 0, range = 0; ^~~~~ cfg_handlers.c:405:11: warning: unused variable 'value' [-Wunused-variable] pm_id_t value = 0, range = 0; ^~~~~ cfg_handlers.c:404:23: warning: unused variable 'range_ptr' [-Wunused-variable] char *count_token, *range_ptr; ^~~~~~~~~ cfg_handlers.c:404:9: warning: unused variable 'count_token' [-Wunused-variable] char *count_token, *range_ptr; ^~~~~~~~~~~ cfg_handlers.c: In function 'cfg_key_sql_table': cfg_handlers.c:734:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = strchr(ptr, '%')) { ^ cfg_handlers.c: In function 'cfg_key_print_output_file': cfg_handlers.c:804:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = strchr(ptr, '%')) { ^ cfg_handlers.c: In function 'cfg_key_nfacctd_mcast_groups': cfg_handlers.c:3148:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (count_token = extract_token(&value_ptr, ',')) { ^~~~~~~~~~~ cfg_handlers.c:3143:31: warning: unused variable 'mcast_family' [-Wunused-variable] u_int8_t idx = 0, more = 0, mcast_family; ^~~~~~~~~~~~ cfg_handlers.c:3142:13: warning: unused variable 'value' [-Wunused-variable] u_int32_t value = 0, changes = 0; ^~~~~ In file included from plugin_hooks.h:88:0, from pkt_handlers.c:32: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pkt_handlers.c:29:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pkt_handlers.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from pkt_handlers.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bmp_msglog_file': cfg_handlers.c:3950:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bmp_dump_file': cfg_handlers.c:4143:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bmp_dump_latest_file': cfg_handlers.c:4154:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_igp_daemon_map_msglog': cfg_handlers.c:4443:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_sfacctd_counter_file': cfg_handlers.c:4615:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_nfprobe_ifindex': cfg_handlers.c:5312:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (value = strtol(value_ptr, NULL, 0)) ^~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_msglog_file': cfg_handlers.c:5739:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_table_dump_file': cfg_handlers.c:5932:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_table_dump_latest_file': cfg_handlers.c:5943:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_telemetry_msglog_file': cfg_handlers.c:6766:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_telemetry_dump_file': cfg_handlers.c:6959:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ cfg_handlers.c: In function 'cfg_key_telemetry_dump_latest_file': cfg_handlers.c:6970:7: warning: unused variable 'value' [-Wunused-variable] int value, changes = 0; ^~~~~ In file included from plugin_hooks.h:88:0, from cfg_handlers.c:29: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from cfg_handlers.c:28:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from cfg_handlers.c:27:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from cfg_handlers.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_peer_src_as_type': cfg_handlers.c:3271:85: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized] for (; list; list = list->next, changes++) list->cfg.nfacctd_bgp_peer_as_src_type = value; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_src_local_pref_type': cfg_handlers.c:3347:88: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized] for (; list; list = list->next, changes++) list->cfg.nfacctd_bgp_src_local_pref_type = value; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_src_med_type': cfg_handlers.c:3363:81: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized] for (; list; list = list->next, changes++) list->cfg.nfacctd_bgp_src_med_type = value; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ cfg_handlers.c: In function 'cfg_key_nfacctd_bgp_follow_nexthop': cfg_handlers.c:3467:8: warning: 'valid' may be used uninitialized in this function [-Wmaybe-uninitialized] if (valid) idx++; ^ CC libdaemons_la-net_aggr.lo net_aggr.c: In function 'load_networks4': net_aggr.c:162:19: warning: unused variable 'endptr' [-Wunused-variable] char *endptr; ^~~~~~ net_aggr.c: In function 'load_networks6': net_aggr.c:1508:19: warning: unused variable 'endptr' [-Wunused-variable] char *endptr; ^~~~~~ net_aggr.c:1685:15: warning: unused variable 'j' [-Wunused-variable] int j; ^ net_aggr.c:1699:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!nt->table6[index].mask[0] && !nt->table6[index].mask[1] && ^~ net_aggr.c:1702:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' default_route_in_networks6_table = TRUE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net_aggr.c: In function 'networks_cache_insert6': net_aggr.c:1900:7: warning: unused variable 'chunk' [-Wunused-variable] int chunk; ^~~~~ In file included from plugin_hooks.h:88:0, from net_aggr.c:28: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from net_aggr.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from net_aggr.c:26:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from net_aggr.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-bpf_filter.lo CC libdaemons_la-print_plugin.lo CC libdaemons_la-pretag.lo print_plugin.c: In function 'print_plugin': print_plugin.c:357:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ print_plugin.c:64:9: warning: unused variable 'kafka_msg' [-Wunused-variable] void *kafka_msg; ^~~~~~~~~ print_plugin.c:47:72: warning: variable 'is_event' set but not used [-Wunused-but-set-variable] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, ret, num, is_event; ^~~~~~~~ print_plugin.c:47:47: warning: unused variable 'kafka_timeout' [-Wunused-variable] int timeout, refresh_timeout, amqp_timeout, kafka_timeout, ret, num, is_event; ^~~~~~~~~~~~~ print_plugin.c:46:10: warning: unused variable 't' [-Wunused-variable] time_t t; ^ print_plugin.c: In function 'P_cache_purge': print_plugin.c:455:26: warning: unused variable 'ret' [-Wunused-variable] int file_is_empty, ret; ^~~ print_plugin.c:455:11: warning: unused variable 'file_is_empty' [-Wunused-variable] int file_is_empty, ret; ^~~~~~~~~~~~~ print_plugin.c:590:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (config.what_to_count & COUNT_TAG) fprintf(f, "%-10llu ", data->tag); ~~~~~~^ ~~~~~~~~~ %-10lu print_plugin.c:591:66: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (config.what_to_count & COUNT_TAG2) fprintf(f, "%-10llu ", data->tag2); ~~~~~~^ ~~~~~~~~~~ %-10lu print_plugin.c:845:34: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_start.tv_sec, pnat->timestamp_start.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:845:37: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_start.tv_sec, pnat->timestamp_start.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:851:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_start.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:863:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_end.tv_sec, pnat->timestamp_end.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:863:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_end.tv_sec, pnat->timestamp_end.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:869:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_end.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:881:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_arrival.tv_sec, pnat->timestamp_arrival.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:881:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_arrival.tv_sec, pnat->timestamp_arrival.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:887:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_arrival.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:899:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_min.tv_sec, queue[j]->stitch->timestamp_min.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:899:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_min.tv_sec, queue[j]->stitch->timestamp_min.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:902:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_max.tv_sec, queue[j]->stitch->timestamp_max.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:902:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_max.tv_sec, queue[j]->stitch->timestamp_max.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:909:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, queue[j]->stitch->timestamp_min.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:915:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, queue[j]->stitch->timestamp_max.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:947:29: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] fprintf(f, "%-20llu ", queue[j]->packet_counter); ~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ %-20lu print_plugin.c:948:69: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (config.what_to_count & COUNT_FLOWS) fprintf(f, "%-20llu ", queue[j]->flow_counter); ~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~ %-20lu print_plugin.c:949:26: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] fprintf(f, "%llu\n", queue[j]->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:959:64: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (config.what_to_count & COUNT_TAG) fprintf(f, "%s%llu", write_sep(sep, &count), data->tag); ~~~^ ~~~~~~~~~ %lu print_plugin.c:960:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (config.what_to_count & COUNT_TAG2) fprintf(f, "%s%llu", write_sep(sep, &count), data->tag2); ~~~^ ~~~~~~~~~~ %lu print_plugin.c:1215:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_start.tv_sec, pnat->timestamp_start.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1215:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_start.tv_sec, pnat->timestamp_start.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1221:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_start.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1233:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_end.tv_sec, pnat->timestamp_end.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1233:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_end.tv_sec, pnat->timestamp_end.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1239:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_end.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1251:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_arrival.tv_sec, pnat->timestamp_arrival.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1251:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", pnat->timestamp_arrival.tv_sec, pnat->timestamp_arrival.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1257:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_arrival.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1269:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_min.tv_sec, queue[j]->stitch->timestamp_min.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1269:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_min.tv_sec, queue[j]->stitch->timestamp_min.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1272:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_max.tv_sec, queue[j]->stitch->timestamp_max.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1272:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%u.%u", queue[j]->stitch->timestamp_max.tv_sec, queue[j]->stitch->timestamp_max.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1279:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, queue[j]->stitch->timestamp_min.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1285:44: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, queue[j]->stitch->timestamp_max.tv_usec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1316:28: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] fprintf(f, "%s%llu", write_sep(sep, &count), queue[j]->packet_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1317:68: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (config.what_to_count & COUNT_FLOWS) fprintf(f, "%s%llu", write_sep(sep, &count), queue[j]->flow_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:1318:28: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] fprintf(f, "%s%llu\n", write_sep(sep, &count), queue[j]->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~ %lu print_plugin.c:386:73: warning: unused variable 'empty_ip4' [-Wunused-variable] char *as_path, *bgp_comm, empty_string[] = "", empty_aspath[] = "^$", empty_ip4[] = "0.0.0.0", empty_ip6[] = "::"; ^~~~~~~~~ print_plugin.c:386:50: warning: unused variable 'empty_aspath' [-Wunused-variable] char *as_path, *bgp_comm, empty_string[] = "", empty_aspath[] = "^$", empty_ip4[] = "0.0.0.0", empty_ip6[] = "::"; ^~~~~~~~~~~~ In file included from print_plugin.c:35:0: At top level: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from plugin_hooks.h:88:0, from print_plugin.c:28: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from print_plugin.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from print_plugin.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ print_plugin.c: In function 'print_plugin': print_plugin.c:218:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ret < 0) goto poll_again; ^ print_plugin.c:254:10: warning: 'timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == refresh_timeout) { ^ print_plugin.c:234:10: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == amqp_timeout) { ^ pretag.c: In function 'pt_check_range': pretag.c:679:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ptr = strchr(str, '-')) { ^~~ pretag.c: In function 'pretag_entry_process': pretag.c:843:2: warning: implicit declaration of function 'exec_plugins'; did you mean 'exit_plugin'? [-Wimplicit-function-declaration] exec_plugins(pptrs); ^~~~~~~~~~~~ exit_plugin pretag.c: In function 'pretag_index_fill': pretag.c:1016:28: warning: pointer targets in passing argument 1 of 'cache_crc32' differ in signedness [-Wpointer-sign] modulo = cache_crc32(hash_key_get_val(hash_key), hash_key_get_len(hash_key)) % buckets; ^~~~~~~~~~~~~~~~ In file included from pretag.c:35:0: crc32.h:97:21: note: expected 'const unsigned char *' but argument is of type 'char *' Inline unsigned int cache_crc32(const unsigned char *buf, unsigned int len) ^~~~~~~~~~~ pretag.c: In function 'pretag_index_lookup': pretag.c:1146:28: warning: pointer targets in passing argument 1 of 'cache_crc32' differ in signedness [-Wpointer-sign] modulo = cache_crc32(hash_key_get_val(hash_key), hash_key_get_len(hash_key)) % buckets; ^~~~~~~~~~~~~~~~ In file included from pretag.c:35:0: crc32.h:97:21: note: expected 'const unsigned char *' but argument is of type 'char *' Inline unsigned int cache_crc32(const unsigned char *buf, unsigned int len) ^~~~~~~~~~~ pretag.c: In function 'pretag_index_results_compress': pretag.c:1191:20: warning: unused variable 'ptr' [-Wunused-variable] struct id_entry *ptr = NULL; ^~~ pretag.c: In function 'pretag_index_results_compress_jeqs': pretag.c:1212:20: warning: unused variable 'ptr' [-Wunused-variable] struct id_entry *ptr = NULL; ^~~ In file included from pretag.c:36:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pretag.c:35:0: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from pretag.c:33:0: isis/isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from pretag.c:28:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from pretag.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ pretag.c: In function 'pretag_index_allocate': pretag.c:972:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ret == ERR) { ^ CC libdaemons_la-ip_frag.lo CC libdaemons_la-ports_aggr.lo In file included from plugin_hooks.h:88:0, from ports_aggr.c:27: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ports_aggr.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from ports_aggr.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ ip_frag.c: In function 'notify_orphan_fragment': ip_frag.c:277:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(src_host, &a); ^~~~~~~~ In file included from ip_frag.c:26:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ ip_frag.c:279:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(dst_host, &a); ^~~~~~~~ In file included from ip_frag.c:26:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ ip_frag.c: In function 'notify_orphan_fragment6': ip_frag.c:531:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(src_host, &a); ^~~~~~~~ In file included from ip_frag.c:26:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ ip_frag.c:533:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(dst_host, &a); ^~~~~~~~ In file included from ip_frag.c:26:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from ip_frag.c:28: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ip_frag.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from ip_frag.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-pretag_handlers.lo CC libdaemons_la-ip_flow.lo pretag_handlers.c: In function 'PT_map_id_handler': pretag_handlers.c:90:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (incptr = strstr(value, "++")) { ^~~~~~ pretag_handlers.c: In function 'PT_map_id2_handler': pretag_handlers.c:127:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (incptr = strstr(value, "++")) { ^~~~~~ pretag_handlers.c: In function 'BITR_map_mpls_vpn_id_handler': pretag_handlers.c:414:13: warning: unused variable 'tmp' [-Wunused-variable] u_int32_t tmp; ^~~ pretag_handlers.c: In function 'PT_map_filter_handler': pretag_handlers.c:509:10: warning: unused variable 'link_type' [-Wunused-variable] int x, link_type; ^~~~~~~~~ pretag_handlers.c: In function 'PT_map_sample_type_handler': pretag_handlers.c:645:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&value, ':')) { ^~~~~ pretag_handlers.c: In function 'PT_map_src_comms_handler': pretag_handlers.c:937:9: warning: unused variable 'endptr' [-Wunused-variable] char *endptr, *token; ^~~~~~ pretag_handlers.c: In function 'PT_map_comms_handler': pretag_handlers.c:975:9: warning: unused variable 'endptr' [-Wunused-variable] char *endptr, *token; ^~~~~~ pretag_handlers.c: In function 'PT_map_mpls_vpn_rd_handler': pretag_handlers.c:1013:18: warning: unused variable 'token' [-Wunused-variable] char *endptr, *token; ^~~~~ pretag_handlers.c:1013:9: warning: unused variable 'endptr' [-Wunused-variable] char *endptr, *token; ^~~~~~ pretag_handlers.c: In function 'PT_map_src_mac_handler': pretag_handlers.c:1043:24: warning: pointer targets in passing argument 1 of 'string_etheraddr' differ in signedness [-Wpointer-sign] if (string_etheraddr(value, e->key.src_mac.a)) { ^~~~~ In file included from pretag_handlers.c:25:0: addr.h:54:9: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT int string_etheraddr(const u_char *, char *); ^~~~~~~~~~~~~~~~ pretag_handlers.c: In function 'PT_map_dst_mac_handler': pretag_handlers.c:1070:24: warning: pointer targets in passing argument 1 of 'string_etheraddr' differ in signedness [-Wpointer-sign] if (string_etheraddr(value, e->key.dst_mac.a)) { ^~~~~ In file included from pretag_handlers.c:25:0: addr.h:54:9: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT int string_etheraddr(const u_char *, char *); ^~~~~~~~~~~~~~~~ pretag_handlers.c: In function 'pretag_bgp_bgp_nexthop_handler': pretag_handlers.c:1471:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_engine_type_handler': pretag_handlers.c:1513:32: warning: unused variable 'tpl' [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^~~ pretag_handlers.c: In function 'pretag_engine_id_handler': pretag_handlers.c:1531:32: warning: unused variable 'tpl' [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^~~ pretag_handlers.c: In function 'pretag_bgp_src_as_handler': pretag_handlers.c:1663:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_bgp_dst_as_handler': pretag_handlers.c:1743:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_peer_src_as_handler': pretag_handlers.c:1768:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_peer_dst_as_handler': pretag_handlers.c:1794:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_src_local_pref_handler': pretag_handlers.c:1815:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_local_pref_handler': pretag_handlers.c:1839:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_src_comms_handler': pretag_handlers.c:1858:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_comms_handler': pretag_handlers.c:1879:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_sample_type_handler': pretag_handlers.c:1901:32: warning: unused variable 'tpl' [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^~~ pretag_handlers.c:1900:28: warning: unused variable 'hdr5' [-Wunused-variable] struct struct_header_v5 *hdr5 = (struct struct_header_v5 *) pptrs->f_header; ^~~~ pretag_handlers.c:1899:28: warning: unused variable 'hdr' [-Wunused-variable] struct struct_header_v8 *hdr = (struct struct_header_v8 *) pptrs->f_header; ^~~ pretag_handlers.c: In function 'pretag_sampling_rate_handler': pretag_handlers.c:1912:32: warning: unused variable 'tpl' [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^~~ pretag_handlers.c: In function 'pretag_mpls_vpn_rd_handler': pretag_handlers.c:1950:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'pretag_id_handler': pretag_handlers.c:2077:22: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'SF_pretag_sample_type_handler': pretag_handlers.c:2208:13: warning: unused variable 'sample' [-Wunused-variable] SFSample *sample = (SFSample *) pptrs->f_data; ^~~~~~ pretag_handlers.c: In function 'BPAS_bgp_nexthop_handler': pretag_handlers.c:2326:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'BPAS_bgp_peer_dst_as_handler': pretag_handlers.c:2358:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'BITR_mpls_label_bottom_handler': pretag_handlers.c:2397:35: warning: pointer targets in passing argument 1 of 'decode_mpls_label' differ in signedness [-Wpointer-sign] label = decode_mpls_label(pptrs->f_data+tpl->tpl[label_idx].off); ^~~~~ In file included from pretag_handlers.c:37:0: util.h:74:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT u_int32_t decode_mpls_label(char *); ^~~~~~~~~~~~~~~~~ pretag_handlers.c: In function 'custom_primitives_map_name_handler': pretag_handlers.c:2450:46: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for (idx = 0; idx < table->num && strlen(table->primitive[idx].name); idx++) { ^~~~~ In file included from pmacct.h:36:0, from pretag_handlers.c:24: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pretag_handlers.c:2451:19: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(table->primitive[idx].name, value)) { ^~~~~ In file included from pmacct.h:36:0, from pretag_handlers.c:24: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ pretag_handlers.c:2458:13: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(table->primitive[table->num].name, value, MAX_CUSTOM_PRIMITIVE_NAMELEN); ^~~~~ In file included from pretag_handlers.c:24:0: pmacct.h:365:8: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ pretag_handlers.c: In function 'custom_primitives_map_field_type_handler': pretag_handlers.c:2477:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (type = strchr(value, ':')) { ^~~~ pretag_handlers.c: In function 'custom_primitives_map_validate': pretag_handlers.c:2687:16: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (strcmp(table->primitive[table->num].name, "") && (table->primitive[table->num].field_type || ^~~~~ In file included from pmacct.h:36:0, from pretag_handlers.c:24: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ pretag_handlers.c: In function 'PT_map_index_fdata_bgp_nexthop_handler': pretag_handlers.c:3041:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'PT_map_index_fdata_src_as_handler': pretag_handlers.c:3126:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'PT_map_index_fdata_dst_as_handler': pretag_handlers.c:3179:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'PT_map_index_fdata_peer_src_as_handler': pretag_handlers.c:3232:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'PT_map_index_fdata_peer_dst_as_handler': pretag_handlers.c:3286:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'PT_map_index_fdata_mpls_vpn_rd_handler': pretag_handlers.c:3331:20: warning: unused variable 'peer' [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^~~~ pretag_handlers.c: In function 'PT_map_index_fdata_mpls_label_bottom_handler': pretag_handlers.c:3392:58: warning: pointer targets in passing argument 1 of 'decode_mpls_label' differ in signedness [-Wpointer-sign] e->key.mpls_label_bottom.n = decode_mpls_label(pptrs->f_data+tpl->tpl[label_idx].off); ^~~~~ In file included from pretag_handlers.c:37:0: util.h:74:15: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT u_int32_t decode_mpls_label(char *); ^~~~~~~~~~~~~~~~~ pretag_handlers.c:3382:13: warning: unused variable 'sample' [-Wunused-variable] SFSample *sample = (SFSample *) pptrs->f_data; ^~~~~~ In file included from plugin_hooks.h:88:0, from pretag_handlers.c:35: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pretag_handlers.c:34:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pretag_handlers.c:28:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from pretag_handlers.c:24: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ ip_flow.c: In function 'normalize_flow6': ip_flow.c:477:5: warning: implicit declaration of function 'ip6_addr_cpy'; did you mean 's6_addr16'? [-Wimplicit-function-declaration] ip6_addr_cpy(&taddr, saddr); ^~~~~~~~~~~~ s6_addr16 ip_flow.c:485:9: warning: implicit declaration of function 'ip6_addr_cmp'; did you mean 's6_addr16'? [-Wimplicit-function-declaration] if (ip6_addr_cmp(saddr, daddr) < 0) { ^~~~~~~~~~~~ s6_addr16 ip_flow.c: In function 'find_flow6': ip_flow.c:540:3: warning: label 'create' defined but not used [-Wunused-label] create: ^~~~~~ In file included from plugin_hooks.h:88:0, from ip_flow.c:27: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from ip_flow.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from ip_flow.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-setproctitle.lo setproctitle.c: In function 'initsetproctitle': setproctitle.c:98:6: warning: unused variable 'align' [-Wunused-variable] int align; ^~~~~ In file included from pmacct.h:229:0, from setproctitle.c:17: At top level: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-classifier.lo classifier.c: In function 'parse_pattern_file': classifier.c:348:29: warning: unused variable 'ret' [-Wunused-variable] int len = 0, linelen = 0, ret; ^~~ classifier.c:348:7: warning: unused variable 'len' [-Wunused-variable] int len = 0, linelen = 0, ret; ^~~ classifier.c: In function 'parse_shared_object': classifier.c:452:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (err = dlerror()) { ^~~ In file included from plugin_hooks.h:88:0, from classifier.c:43: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from classifier.c:42:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from classifier.c:41: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ classifier.c: In function 'init_classifiers': classifier.c:75:38: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(fname, sizeof(fname), "%s/%s", path, namelist[n]->d_name); ^~~~~~~ In file included from /usr/include/stdio.h:889:0, from /usr/include/pcap/pcap.h:54, from /usr/include/pcap.h:43, from pmacct.h:30, from classifier.c:41: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC libdaemons_la-regexp.lo CC libdaemons_la-regsub.lo In file included from regexp.c:33:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from regexp.c:32: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from regsub.c:28:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from regsub.c:27: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-conntrack.lo CC libdaemons_la-xflow_status.lo conntrack.c: In function 'conntrack_ftp_helper': conntrack.c:54:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] len = strlen(pptrs->payload_ptr); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ conntrack.c:65:20: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] start = strchr(pptrs->payload_ptr, ' '); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:66:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] end = strchr(pptrs->payload_ptr, '\r'); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:100:20: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] start = strchr(pptrs->payload_ptr, '('); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:101:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] end = strchr(pptrs->payload_ptr, ')'); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:133:20: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] start = strchr(pptrs->payload_ptr, ' '); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:134:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] end = strchr(pptrs->payload_ptr, '\r'); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:166:20: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] start = strchr(pptrs->payload_ptr, '('); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:167:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] end = strchr(pptrs->payload_ptr, ')'); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c: In function 'conntrack_rtsp_helper': conntrack.c:208:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] len = strlen(pptrs->payload_ptr); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ conntrack.c:214:17: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] if ( !strncmp(pptrs->payload_ptr, "SETUP ", 6) ) { ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^~~~~~~ conntrack.c:215:20: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] start = strchr(pptrs->payload_ptr, '\n'); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:224:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern char *strchr (const char *__s, int __c) ^~~~~~ conntrack.c:216:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] end = pptrs->payload_ptr+len; ^ conntrack.c:223:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( ptr = strchr(start, '\r') ) end = ptr; ^~~ conntrack.c:243:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( ss_sep = strchr(ss_start, '-') ) { ^~~~~~ conntrack.c: In function 'conntrack_sip_helper': conntrack.c:283:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] len = strlen(pptrs->payload_ptr); ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ conntrack.c:289:17: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] if ( !strncmp(pptrs->payload_ptr, "INVITE ", 7) || ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^~~~~~~ conntrack.c:290:17: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] !strncmp(pptrs->payload_ptr, "SIP/2.0 200", 11) ) { ^~~~~ In file included from pmacct.h:36:0, from conntrack.c:24: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^~~~~~~ conntrack.c:292:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] for ( start = pptrs->payload_ptr, end = pptrs->payload_ptr+len; ^ conntrack.c:292:43: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] for ( start = pptrs->payload_ptr, end = pptrs->payload_ptr+len; ^ conntrack.c:280:7: warning: unused variable 'x' [-Wunused-variable] int x = 0, len; ^ conntrack.c: In function 'search_conntrack_ipv6': conntrack.c:499:32: warning: implicit declaration of function 'ip6_addr_cmp'; did you mean 's6_addr16'? [-Wimplicit-function-declaration] (ct_elem->ip_src[0] ? !ip6_addr_cmp(&iphp->ip6_src, &ct_elem->ip_src) : 1) && ^~~~~~~~~~~~ s6_addr16 In file included from classifier.h:23:0, from conntrack.c:28: At top level: conntrack.h:87:38: warning: 'conntrack_helper_list' defined but not used [-Wunused-variable] static struct conntrack_helper_entry conntrack_helper_list[] = { ^~~~~~~~~~~~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from conntrack.c:26: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from conntrack.c:25:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from conntrack.c:24: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ xflow_status.c: In function 'search_class_id_status_table': xflow_status.c:239:22: warning: variable 'haystack' set but not used [-Wunused-but-set-variable] pm_class_t needle, haystack; ^~~~~~~~ xflow_status.c:239:14: warning: variable 'needle' set but not used [-Wunused-but-set-variable] pm_class_t needle, haystack; ^~~~~~ In file included from pmacct.h:229:0, from xflow_status.c:25: At top level: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-plugin_common.lo CC libdaemons_la-preprocess.lo plugin_common.c: In function 'P_handle_table_dyn_strings': plugin_common.c:999:29: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] snprintf(buf, newlen, "%u", config.post_tag); ~^ ~~~~~~~~~~~~~~~ %lu plugin_common.c:1019:29: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] snprintf(buf, newlen, "%u", elem->primitives.tag); ~^ ~~~~~~~~~~~~~~~~~~~~ %lu In file included from plugin_common.c:31:0: At top level: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from plugin_common.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from plugin_common.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ preprocess.c: In function 'set_preprocess_funcs': preprocess.c:48:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&string, ',')) { ^~~~~ In file included from preprocess.c:25:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from preprocess.c:24: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ preprocess.c: In function 'set_preprocess_funcs': preprocess.c:81:8: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] if (err == E_NOTFOUND) { ^ preprocess.c: In function 'check_fsrc': preprocess.c:616:20: warning: 'last_seen' may be used uninitialized in this function [-Wmaybe-uninitialized] last_seen->next = new; ~~~~~~~~~~~~~~~~^~~~~ CC libdaemons_la-ll.lo CC libdaemons_la-nl.lo ll.c: In function 'mpls_handler': ll.c:115:16: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *next = bp; ^~ ll.c: In function 'null_handler': ll.c:326:11: warning: variable 'p' set but not used [-Wunused-but-set-variable] u_char *p; ^ ll.c: In function 'sll_handler': ll.c:382:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->mac_ptr = (char *) sll_mac; ^ ll.c: In function 'llc_handler': ll.c:434:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] etype = EXTRACT_16BITS(&llc.ctl.snap_ether.snap_ethertype[0]); ^~~~~ In file included from ll.c:27:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from ll.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ nl.c: In function 'ip6_handler': nl.c:302:15: warning: implicit declaration of function 'ip6_fragment_handler'; did you mean 'ip6_fragment_handler6'? [-Wimplicit-function-declaration] ret = ip6_fragment_handler(pptrs, fhdr); ^~~~~~~~~~~~~~~~~~~~ ip6_fragment_handler6 nl.c:244:16: warning: unused variable 'fragmented' [-Wunused-variable] u_int8_t nh, fragmented = 0; ^~~~~~~~~~ nl.c:241:13: warning: unused variable 'len' [-Wunused-variable] u_int16_t len = 0, plen = ntohs(((struct ip6_hdr *)pptrs->iph_ptr)->ip6_plen); ^~~ nl.c: In function 'PM_find_id': nl.c:365:10: warning: unused variable 'j' [-Wunused-variable] int x, j; ^ nl.c: In function 'tunnel_registry_init': nl.c:449:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (tun_entry = extract_token(&tun_string, ';')) { ^~~~~~~~~ nl.c:452:33: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] for (th_index = 0; strcmp(tunnel_handlers_list[th_index].type, ""); th_index++) { ^~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:36:0, from nl.c:26: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ nl.c:453:14: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(tunnel_handlers_list[th_index].type, tun_type)) { ^~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:36:0, from nl.c:26: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ nl.c:447:9: warning: unused variable 'ret' [-Wunused-variable] int ret; ^~~ nl.c: In function 'gtp_tunnel_func': nl.c:489:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *ptr = pptrs->payload_ptr; ^~~~~ nl.c:512:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->iph_ptr = ptr; ^ nl.c:488:26: warning: unused variable 'gtp_opt_len' [-Wunused-variable] u_int16_t gtp_hdr_len, gtp_opt_len, gtp_version; ^~~~~~~~~~~ nl.c:486:21: warning: unused variable 'udp_hdr' [-Wunused-variable] struct my_udphdr *udp_hdr = (struct my_udphdr *) pptrs->tlh_ptr; ^~~~~~~ nl.c:485:24: warning: unused variable 'gtp_hdr_v1' [-Wunused-variable] struct my_gtphdr_v1 *gtp_hdr_v1 = (struct my_gtphdr_v1 *) pptrs->payload_ptr; ^~~~~~~~~~ nl.c: In function 'set_index_pkt_ptrs': nl.c:574:53: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_PACKET_PTR] = pptrs->packet_ptr; ^ nl.c:575:50: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_MAC_PTR] = pptrs->mac_ptr; ^ nl.c:576:51: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_VLAN_PTR] = pptrs->vlan_ptr; ^ nl.c:577:51: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_MPLS_PTR] = pptrs->mpls_ptr; ^ nl.c:578:49: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_L3_PTR] = pptrs->iph_ptr; ^ nl.c:579:49: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_L4_PTR] = pptrs->tlh_ptr; ^ nl.c:580:54: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->pkt_data_ptrs[CUSTOM_PRIMITIVE_PAYLOAD_PTR] = pptrs->payload_ptr; ^ In file included from nl.c:38:0: At top level: bmp/bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp/bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp/bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from nl.c:36:0: isis/isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from nl.c:30: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from nl.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from nl.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-base64.lo CC libdaemons_la-plugin_cmn_json.lo base64.c: In function 'base64_decode': base64.c:103:19: warning: variable 'olen' set but not used [-Wunused-but-set-variable] size_t i, count, olen; ^~~~ CC libdaemons_la-plugin_cmn_avro.lo plugin_cmn_json.c: In function 'compose_json_class': plugin_cmn_json.c:433:30: warning: unused variable 'str_ptr' [-Wunused-variable] char empty_string[] = "", *str_ptr; ^~~~~~~ plugin_cmn_json.c:433:8: warning: unused variable 'empty_string' [-Wunused-variable] char empty_string[] = "", *str_ptr; ^~~~~~~~~~~~ plugin_cmn_json.c: In function 'compose_json_mpls_vpn_rd': plugin_cmn_json.c:679:3: warning: implicit declaration of function 'bgp_rd2str' [-Wimplicit-function-declaration] bgp_rd2str(rd_str, &cc->pbgp->mpls_vpn_rd); ^~~~~~~~~~ plugin_cmn_json.c: In function 'compose_json_proto': plugin_cmn_json.c:808:8: warning: unused variable 'misc_str' [-Wunused-variable] char misc_str[VERYSHORTBUFLEN]; ^~~~~~~~ plugin_cmn_json.c: In function 'compose_json_tunnel_proto': plugin_cmn_json.c:895:8: warning: unused variable 'misc_str' [-Wunused-variable] char misc_str[VERYSHORTBUFLEN]; ^~~~~~~~ In file included from plugin_cmn_json.c:27:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from plugin_cmn_json.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from plugin_cmn_avro.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from plugin_cmn_avro.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-mysql_plugin.lo CC libdaemons_la-pgsql_plugin.lo In file included from mysql_plugin.c:30:0: sql_common_m.c: In function 'SQL_SetENV': sql_common_m.c:151:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_DB=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:152:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_db, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:154:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:159:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:160:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_table, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:162:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:167:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:168:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:170:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:175:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_USER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:176:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_user, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:178:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:185:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_REFRESH_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:186:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:187:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sql_refresh_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:189:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:196:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SAMPLING_RATE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:197:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:198:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sampling_rate ? config.sampling_rate : config.ext_sampling_rate); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:200:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:205:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_RECOVERY_BACKUP_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:206:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_backup_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:208:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:215:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_MAX_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:216:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:217:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_max()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:219:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:224:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from mysql_plugin.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c: In function 'SQL_SetENV_child': sql_common_m.c:237:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "INSERT_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:238:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:239:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->iqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:241:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:248:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "UPDATE_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:249:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:250:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->uqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:252:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:259:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "ELAPSED_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:260:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:261:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:261:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ~^ ~~~~~~~~~~~~~~~~ %lu sql_common_m.c:263:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:270:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "TOTAL_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:271:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:272:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->ten); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:274:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:281:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:282:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:283:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->een); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:285:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:292:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_BASETIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:293:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:294:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:294:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:296:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:303:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_TIMESLOT=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:304:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:305:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:305:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:307:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:316:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:317:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:318:14: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign] strftime(tmpptr, envbuf.end-tmpptr, config.sql_table, nowtm); ^~~~~~ In file included from pmacct.h:55:0, from mysql_plugin.c:25: /usr/include/time.h:88:15: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strftime (char *__restrict __s, size_t __maxsize, ^~~~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:320:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:327:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_ACTIVE_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:328:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:329:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_active()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from mysql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from mysql_plugin.c:30:0: sql_common_m.c:331:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from mysql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from mysql_plugin.c:30:0: sql_common_m.c:336:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from mysql_plugin.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ mysql_plugin.c: In function 'mysql_plugin': mysql_plugin.c:257:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ mysql_plugin.c: In function 'MY_cache_dbop': mysql_plugin.c:333:76: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu mysql_plugin.c:333:82: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu mysql_plugin.c:333:88: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu mysql_plugin.c:334:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu mysql_plugin.c:334:71: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu mysql_plugin.c:272:53: warning: variable 'ptr_insert' set but not used [-Wunused-but-set-variable] char *ptr_values, *ptr_where, *ptr_mv, *ptr_set, *ptr_insert; ^~~~~~~~~~ mysql_plugin.c: In function 'MY_cache_purge': mysql_plugin.c:427:16: warning: unused variable 'ret' [-Wunused-variable] int j, stop, ret, go_to_pending, saved_index = index; ^~~ In file included from plugin_hooks.h:88:0, from mysql_plugin.c:27: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from mysql_plugin.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from mysql_plugin.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c: In function 'SQL_SetENV': sql_common_m.c:151:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_DB=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:152:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_db, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:154:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:159:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:160:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_table, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:162:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:167:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:168:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:170:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:175:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_USER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:176:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_user, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:178:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:185:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_REFRESH_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:186:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:187:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sql_refresh_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:189:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:196:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SAMPLING_RATE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:197:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:198:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sampling_rate ? config.sampling_rate : config.ext_sampling_rate); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:200:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:205:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_RECOVERY_BACKUP_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:206:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_backup_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:208:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:215:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_MAX_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:216:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:217:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_max()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:219:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:224:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from pgsql_plugin.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c: In function 'SQL_SetENV_child': sql_common_m.c:237:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "INSERT_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:238:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:239:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->iqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:241:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:248:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "UPDATE_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:249:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:250:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->uqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:252:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:259:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "ELAPSED_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:260:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:261:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:261:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ~^ ~~~~~~~~~~~~~~~~ %lu sql_common_m.c:263:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:270:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "TOTAL_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:271:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:272:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->ten); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:274:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:281:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:282:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:283:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->een); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:285:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:292:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_BASETIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:293:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:294:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:294:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:296:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:303:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_TIMESLOT=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:304:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:305:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:305:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:307:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:316:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:317:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:318:14: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign] strftime(tmpptr, envbuf.end-tmpptr, config.sql_table, nowtm); ^~~~~~ In file included from pmacct.h:55:0, from pgsql_plugin.c:25: /usr/include/time.h:88:15: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strftime (char *__restrict __s, size_t __maxsize, ^~~~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:320:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:327:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_ACTIVE_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:328:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:329:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_active()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from pgsql_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from pgsql_plugin.c:30:0: sql_common_m.c:331:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from pgsql_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from pgsql_plugin.c:30:0: sql_common_m.c:336:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from pgsql_plugin.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ pgsql_plugin.c: In function 'pgsql_plugin': pgsql_plugin.c:256:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ pgsql_plugin.c: In function 'PG_cache_dbop_copy': pgsql_plugin.c:296:72: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), "%s%llu%s%llu%s%llu\n", delim_buf, cache_elem->packet_counter, ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:296:78: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), "%s%llu%s%llu%s%llu\n", delim_buf, cache_elem->packet_counter, ~~~^ %lu delim_buf, cache_elem->bytes_counter, ~~~~~~~~~~~~~~~~~~~~~~~~~ pgsql_plugin.c:296:84: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), "%s%llu%s%llu%s%llu\n", delim_buf, cache_elem->packet_counter, ~~~^ %lu pgsql_plugin.c:298:23: delim_buf, cache_elem->flows_counter); ~~~~~~~~~~~~~~~~~~~~~~~~~ pgsql_plugin.c:299:61: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), "%s%llu%s%llu\n", delim_buf, cache_elem->packet_counter, ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:299:67: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), "%s%llu%s%llu\n", delim_buf, cache_elem->packet_counter, ~~~^ %lu delim_buf, cache_elem->bytes_counter); ~~~~~~~~~~~~~~~~~~~~~~~~~ pgsql_plugin.c:271:13: warning: unused variable 'ret' [-Wunused-variable] PGresult *ret; ^~~ pgsql_plugin.c: In function 'PG_cache_dbop': pgsql_plugin.c:388:76: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:388:82: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:388:88: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:389:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:389:71: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pgsql_plugin.c:330:44: warning: variable 'ptr_insert' set but not used [-Wunused-but-set-variable] char *ptr_values, *ptr_where, *ptr_set, *ptr_insert; ^~~~~~~~~~ mysql_plugin.c: In function 'mysql_plugin': mysql_plugin.c:150:10: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == amqp_timeout) { ^ In file included from pgsql_plugin.c:29:0: At top level: pgsql_plugin.h:73:13: warning: 'unified_str' defined but not used [-Wunused-variable] static char unified_str[] = "unified"; ^~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from pgsql_plugin.c:27: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pgsql_plugin.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from pgsql_plugin.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ pgsql_plugin.c: In function 'pgsql_plugin': pgsql_plugin.c:148:10: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == amqp_timeout) { ^ CC libdaemons_la-sqlite3_plugin.lo CC libdaemons_la-amqp_common.lo In file included from sqlite3_plugin.c:30:0: sql_common_m.c: In function 'SQL_SetENV': sql_common_m.c:151:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_DB=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:152:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_db, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:154:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:159:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:160:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_table, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:162:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:167:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:168:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:170:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:175:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_USER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:176:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_user, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:178:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:185:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_REFRESH_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:186:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:187:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sql_refresh_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:189:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:196:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SAMPLING_RATE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:197:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:198:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sampling_rate ? config.sampling_rate : config.ext_sampling_rate); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:200:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:205:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_RECOVERY_BACKUP_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:206:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_backup_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:208:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:215:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_MAX_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:216:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:217:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_max()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:219:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:224:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from sqlite3_plugin.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c: In function 'SQL_SetENV_child': sql_common_m.c:237:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "INSERT_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:238:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:239:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->iqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:241:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:248:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "UPDATE_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:249:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:250:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->uqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:252:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:259:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "ELAPSED_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:260:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:261:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:261:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ~^ ~~~~~~~~~~~~~~~~ %lu sql_common_m.c:263:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:270:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "TOTAL_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:271:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:272:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->ten); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:274:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:281:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:282:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:283:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->een); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:285:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:292:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_BASETIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:293:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:294:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:294:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:296:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:303:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_TIMESLOT=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:304:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:305:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:305:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:307:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:316:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:317:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:318:14: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign] strftime(tmpptr, envbuf.end-tmpptr, config.sql_table, nowtm); ^~~~~~ In file included from pmacct.h:55:0, from sqlite3_plugin.c:25: /usr/include/time.h:88:15: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strftime (char *__restrict __s, size_t __maxsize, ^~~~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:320:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:327:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_ACTIVE_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:328:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:329:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_active()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sqlite3_plugin.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:331:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sqlite3_plugin.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sqlite3_plugin.c:30:0: sql_common_m.c:336:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from sqlite3_plugin.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ sqlite3_plugin.c: In function 'sqlite3_plugin': sqlite3_plugin.c:257:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ sqlite3_plugin.c: In function 'SQLI_cache_dbop': sqlite3_plugin.c:333:76: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu sqlite3_plugin.c:333:82: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu sqlite3_plugin.c:333:88: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (have_flows) snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter, cache_elem->flows_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu sqlite3_plugin.c:334:65: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu sqlite3_plugin.c:334:71: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else snprintf(ptr_values, SPACELEFT(values_clause), ", %llu, %llu)", cache_elem->packet_counter, cache_elem->bytes_counter); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu sqlite3_plugin.c:272:53: warning: variable 'ptr_insert' set but not used [-Wunused-but-set-variable] char *ptr_values, *ptr_where, *ptr_mv, *ptr_set, *ptr_insert; ^~~~~~~~~~ sqlite3_plugin.c: In function 'SQLI_cache_purge': sqlite3_plugin.c:413:16: warning: unused variable 'ret' [-Wunused-variable] int j, stop, ret, go_to_pending, saved_index = index; ^~~ sqlite3_plugin.c: In function 'SQLI_compose_static_queries': sqlite3_plugin.c:595:46: warning: too many arguments for format [-Wformat-extra-args] snprintf(lock_clause, sizeof(lock_clause), "BEGIN", config.sql_table); ^~~~~~~ In file included from plugin_hooks.h:88:0, from sqlite3_plugin.c:27: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from sqlite3_plugin.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from sqlite3_plugin.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ sqlite3_plugin.c: In function 'sqlite3_plugin': sqlite3_plugin.c:150:10: warning: 'amqp_timeout' may be used uninitialized in this function [-Wmaybe-uninitialized] if (timeout == amqp_timeout) { ^ amqp_common.c: In function 'p_amqp_init_host': amqp_common.c:36:5: warning: implicit declaration of function 'P_broker_timers_set_retry_interval' [-Wimplicit-function-declaration] P_broker_timers_set_retry_interval(&amqp_host->btimers, AMQP_DEFAULT_RETRY); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.c: In function 'p_amqp_get_sockfd': amqp_common.c:145:10: warning: implicit declaration of function 'P_broker_timers_get_last_fail' [-Wimplicit-function-declaration] if (!P_broker_timers_get_last_fail(&amqp_host->btimers)) return amqp_get_sockfd(amqp_host->conn); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.c: In function 'p_amqp_connect_to_publish': amqp_common.c:229:3: warning: implicit declaration of function 'P_broker_timers_unset_last_fail' [-Wimplicit-function-declaration] P_broker_timers_unset_last_fail(&amqp_host->btimers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:226:0, from amqp_common.c:25: amqp_common.c: In function 'p_amqp_consume_binary': pmacct-defines.h:111:13: warning: statement with no effect [-Wunused-value] #define ERR -1 ^ amqp_common.c:392:41: note: in expansion of macro 'ERR' if (!amqp_host || !data || !data_len) ERR; ^~~ amqp_common.c:390:10: warning: unused variable 'size' [-Wunused-variable] size_t size; ^~~~ amqp_common.c: In function 'p_amqp_close': amqp_common.c:473:7: warning: implicit declaration of function 'P_broker_timers_set_last_fail' [-Wimplicit-function-declaration] P_broker_timers_set_last_fail(&amqp_host->btimers, time(NULL)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from amqp_common.c:27:0: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from amqp_common.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from amqp_common.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-amqp_plugin.lo CC libdaemons_la-sql_common.lo amqp_plugin.c: In function 'amqp_plugin': amqp_plugin.c:313:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ amqp_plugin.c:44:10: warning: unused variable 't' [-Wunused-variable] time_t t, avro_schema_deadline = 0; ^ amqp_plugin.c: In function 'amqp_cache_purge': amqp_plugin.c:459:11: warning: unused variable 'json_obj' [-Wunused-variable] void *json_obj; ^~~~~~~~ amqp_plugin.c:342:19: warning: unused variable 'batch_idx' [-Wunused-variable] int i, j, stop, batch_idx, is_routing_key_dyn = FALSE, qn = 0, ret, saved_index = index; ^~~~~~~~~ amqp_plugin.c:342:7: warning: unused variable 'i' [-Wunused-variable] int i, j, stop, batch_idx, is_routing_key_dyn = FALSE, qn = 0, ret, saved_index = index; ^ amqp_plugin.c:341:27: warning: unused variable 'misc_str' [-Wunused-variable] char rd_str[SRVBUFLEN], misc_str[SRVBUFLEN], dyn_amqp_routing_key[SRVBUFLEN], *orig_amqp_routing_key = NULL; ^~~~~~~~ amqp_plugin.c:341:8: warning: unused variable 'rd_str' [-Wunused-variable] char rd_str[SRVBUFLEN], misc_str[SRVBUFLEN], dyn_amqp_routing_key[SRVBUFLEN], *orig_amqp_routing_key = NULL; ^~~~~~ amqp_plugin.c:340:90: warning: unused variable 'ip_address' [-Wunused-variable] char src_mac[18], dst_mac[18], src_host[INET6_ADDRSTRLEN], dst_host[INET6_ADDRSTRLEN], ip_address[INET6_ADDRSTRLEN]; ^~~~~~~~~~ amqp_plugin.c:340:62: warning: unused variable 'dst_host' [-Wunused-variable] char src_mac[18], dst_mac[18], src_host[INET6_ADDRSTRLEN], dst_host[INET6_ADDRSTRLEN], ip_address[INET6_ADDRSTRLEN]; ^~~~~~~~ amqp_plugin.c:340:34: warning: unused variable 'src_host' [-Wunused-variable] char src_mac[18], dst_mac[18], src_host[INET6_ADDRSTRLEN], dst_host[INET6_ADDRSTRLEN], ip_address[INET6_ADDRSTRLEN]; ^~~~~~~~ amqp_plugin.c:340:21: warning: unused variable 'dst_mac' [-Wunused-variable] char src_mac[18], dst_mac[18], src_host[INET6_ADDRSTRLEN], dst_host[INET6_ADDRSTRLEN], ip_address[INET6_ADDRSTRLEN]; ^~~~~~~ amqp_plugin.c:340:8: warning: unused variable 'src_mac' [-Wunused-variable] char src_mac[18], dst_mac[18], src_host[INET6_ADDRSTRLEN], dst_host[INET6_ADDRSTRLEN], ip_address[INET6_ADDRSTRLEN]; ^~~~~~~ amqp_plugin.c:334:35: warning: variable 'pvlen' set but not used [-Wunused-but-set-variable] struct pkt_vlen_hdr_primitives *pvlen = NULL; ^~~~~ amqp_plugin.c:333:9: warning: variable 'pcust' set but not used [-Wunused-but-set-variable] char *pcust = NULL; ^~~~~ amqp_plugin.c:332:33: warning: variable 'ptun' set but not used [-Wunused-but-set-variable] struct pkt_tunnel_primitives *ptun = NULL; ^~~~ amqp_plugin.c:331:31: warning: variable 'pmpls' set but not used [-Wunused-but-set-variable] struct pkt_mpls_primitives *pmpls = NULL; ^~~~~ amqp_plugin.c:330:30: warning: variable 'pnat' set but not used [-Wunused-but-set-variable] struct pkt_nat_primitives *pnat = NULL; ^~~~ amqp_plugin.c:329:30: warning: variable 'pbgp' set but not used [-Wunused-but-set-variable] struct pkt_bgp_primitives *pbgp = NULL; ^~~~ amqp_plugin.c:328:26: warning: variable 'data' set but not used [-Wunused-but-set-variable] struct pkt_primitives *data = NULL; ^~~~ In file included from amqp_plugin.c:26:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from amqp_plugin.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ amqp_plugin.c: In function 'amqp_cache_purge': amqp_plugin.c:655:9: warning: 'json_str' may be used uninitialized in this function [-Wmaybe-uninitialized] Log(LOG_DEBUG, "DEBUG ( %s/%s ): %s\n\n", config.name, config.type, json_str); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_plugin.c:538:38: warning: 'json_str' may be used uninitialized in this function [-Wmaybe-uninitialized] int json_strlen = (strlen(json_str) ? (strlen(json_str) + 1) : 0); ^ amqp_plugin.c:423:9: warning: 'json_str' may be used uninitialized in this function [-Wmaybe-uninitialized] Log(LOG_DEBUG, "DEBUG ( %s/%s ): %s\n\n", config.name, config.type, json_str); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sql_common.c:30:0: sql_common_m.c: In function 'SQL_SetENV': sql_common_m.c:151:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_DB=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:152:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_db, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:154:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:159:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:160:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_table, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:162:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:167:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:168:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:170:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:175:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_USER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:176:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_user, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:178:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:185:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_REFRESH_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:186:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:187:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sql_refresh_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:189:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:196:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SAMPLING_RATE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:197:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:198:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", config.sampling_rate ? config.sampling_rate : config.ext_sampling_rate); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:200:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:205:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_RECOVERY_BACKUP_HOST=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:206:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, config.sql_backup_host, envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:208:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:215:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_MAX_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:216:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:217:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_max()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:219:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:224:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from sql_common.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c: In function 'SQL_SetENV_child': sql_common_m.c:237:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "INSERT_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:238:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:239:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->iqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:241:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:248:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "UPDATE_QUERIES_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:249:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:250:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->uqn); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:252:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:259:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "ELAPSED_TIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:260:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:261:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:261:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time); ~^ ~~~~~~~~~~~~~~~~ %lu sql_common_m.c:263:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:270:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "TOTAL_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:271:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:272:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", idata->ten); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:274:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:281:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_ELEM_NUMBER=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:282:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:283:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->een); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:285:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:292:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_BASETIME=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:293:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:294:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:294:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:296:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:303:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_HISTORY_TIMESLOT=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:304:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:305:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:305:43: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'time_t {aka const long int}' [-Wformat=] snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot); ~^ ~~~~~~~~~~~~~~~ %lu sql_common_m.c:307:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:316:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "EFFECTIVE_SQL_TABLE=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:317:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:318:14: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign] strftime(tmpptr, envbuf.end-tmpptr, config.sql_table, nowtm); ^~~~~~ In file included from pmacct.h:55:0, from sql_common.c:25: /usr/include/time.h:88:15: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strftime (char *__restrict __s, size_t __maxsize, ^~~~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:320:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:327:13: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] strncat(envbuf.ptr, "SQL_ACTIVE_WRITERS=", envbuf.end-envbuf.ptr); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/string3.h:152:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncat (char *__restrict __dest, const char *__restrict __src, ^ In file included from sql_common.c:30:0: sql_common_m.c:328:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] tmpptr = envbuf.ptr + strlen(envbuf.ptr); ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:329:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(tmpptr, envbuf.end-tmpptr, "%d", dump_writers_get_active()); ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sql_common.c:25: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ In file included from sql_common.c:30:0: sql_common_m.c:331:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] envbuf.ptr += strlen(envbuf.ptr)+1; ^~~~~~ In file included from pmacct.h:36:0, from sql_common.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from sql_common.c:30:0: sql_common_m.c:336:12: warning: pointer targets in passing argument 1 of 'putenv' differ in signedness [-Wpointer-sign] putenv(ptrs[i]); ^~~~ In file included from pmacct.h:34:0, from sql_common.c:25: /usr/include/stdlib.h:507:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int putenv (char *__string) __THROW __nonnull ((1)); ^~~~~~ sql_common.c: In function 'sql_cache_flush': sql_common.c:314:54: warning: unused variable 'SavedCursor' [-Wunused-variable] struct db_cache *Cursor, *auxCursor, *PendingElem, SavedCursor; ^~~~~~~~~~~ sql_common.c:314:41: warning: unused variable 'PendingElem' [-Wunused-variable] struct db_cache *Cursor, *auxCursor, *PendingElem, SavedCursor; ^~~~~~~~~~~ sql_common.c:314:29: warning: unused variable 'auxCursor' [-Wunused-variable] struct db_cache *Cursor, *auxCursor, *PendingElem, SavedCursor; ^~~~~~~~~ sql_common.c:314:20: warning: unused variable 'Cursor' [-Wunused-variable] struct db_cache *Cursor, *auxCursor, *PendingElem, SavedCursor; ^~~~~~ sql_common.c: In function 'sql_cache_search': sql_common.c:510:16: warning: variable 'modulo' set but not used [-Wunused-but-set-variable] unsigned int modulo; ^~~~~~ sql_common.c: In function 'sql_cache_insert': sql_common.c:966:56: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memcpy(queries_queue, pending_queries_queue, sizeof(queries_queue)); ^ sql_common.c: In function 'sql_evaluate_primitives': sql_common.c:2719:10: warning: unused variable 'cp_str' [-Wunused-variable] char cp_str[SRVBUFLEN]; ^~~~~~ sql_common.c: In function 'sql_query': sql_common.c:3184:3: warning: label 'quit' defined but not used [-Wunused-label] quit: ^~~~ In file included from sql_common.c:29:0: At top level: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from plugin_hooks.h:88:0, from sql_common.c:27: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from sql_common.c:26:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from sql_common.c:25: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-sql_handlers.lo sql_handlers.c: In function 'count_src_mac_handler': sql_handlers.c:53:3: warning: implicit declaration of function 'etheraddr_string'; did you mean 'lower_string'? [-Wimplicit-function-declaration] etheraddr_string(ubuf, sbuf); ^~~~~~~~~~~~~~~~ lower_string sql_handlers.c: In function 'count_src_host_handler': sql_handlers.c:103:3: warning: implicit declaration of function 'addr_to_str' [-Wimplicit-function-declaration] addr_to_str(ptr, &cache_elem->primitives.src_ip); ^~~~~~~~~~~ sql_handlers.c: In function 'count_custom_primitives_handler': sql_handlers.c:552:8: warning: unused variable 'cp_str' [-Wunused-variable] char cp_str[SRVBUFLEN]; ^~~~~~ sql_handlers.c: In function 'count_mpls_vpn_rd_handler': sql_handlers.c:719:3: warning: implicit declaration of function 'bgp_rd2str' [-Wimplicit-function-declaration] bgp_rd2str(ptr, &cache_elem->pbgp->mpls_vpn_rd); ^~~~~~~~~~ sql_handlers.c: In function 'fake_host_aton_handler': sql_handlers.c:1146:47: warning: unused variable 'aton_v6' [-Wunused-variable] char *aton = NULL, aton_v4[] = "INET_ATON", aton_v6[] = "INET6_ATON"; ^~~~~~~ In file included from plugin_hooks.h:88:0, from sql_handlers.c:34: At top level: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from sql_handlers.c:33:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from sql_handlers.c:32: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC libdaemons_la-thread_pool.lo In file included from pmacct.h:229:0, from thread_pool.c:30: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC strlcpy.lo CC addr.lo addr.c: In function 'str_to_addr_mask': addr.c:81:24: warning: variable 'net' set but not used [-Wunused-but-set-variable] char *delim = NULL, *net = NULL, *mask = NULL; ^~~ addr.c: In function 'sa_port_cmp': addr.c:252:23: warning: unused variable 'sa6_local' [-Wunused-variable] struct sockaddr_in6 sa6_local; ^~~~~~~~~ addr.c: In function 'host_addr_mask_sa_cmp': addr.c:278:24: warning: unused variable 'sa6' [-Wunused-variable] struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)s1; ^~~ In file included from pmacct.h:229:0, from addr.c:24: At top level: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC jansson.lo CC pmacct.o pmacct.c: In function 'main': pmacct.c:1064:12: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(custom_primitives_input.primitive[custom_primitives_input.num].name, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.c:25:0: pmacct.h:365:8: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ pmacct.c:1257:20: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(custom_primitives_input.primitive[idx].name, pmc_custom_primitives_registry.primitive[idx2].name)) { ^~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ pmacct.c:1257:65: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(custom_primitives_input.primitive[idx].name, pmc_custom_primitives_registry.primitive[idx2].name)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ pmacct.c:1468:34: warning: pointer targets in passing argument 1 of 'string_etheraddr' differ in signedness [-Wpointer-sign] res = string_etheraddr(match_string_token, ethaddr); ^~~~~~~~~~~~~~~~~~ In file included from pmacct.c:27:0: addr.h:54:9: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT int string_etheraddr(const u_char *, char *); ^~~~~~~~~~~~~~~~ pmacct.c:1468:54: warning: pointer targets in passing argument 2 of 'string_etheraddr' differ in signedness [-Wpointer-sign] res = string_etheraddr(match_string_token, ethaddr); ^~~~~~~ In file included from pmacct.c:27:0: addr.h:54:9: note: expected 'char *' but argument is of type 'unsigned char *' EXT int string_etheraddr(const u_char *, char *); ^~~~~~~~~~~~~~~~ pmacct.c:1479:34: warning: pointer targets in passing argument 1 of 'string_etheraddr' differ in signedness [-Wpointer-sign] res = string_etheraddr(match_string_token, ethaddr); ^~~~~~~~~~~~~~~~~~ In file included from pmacct.c:27:0: addr.h:54:9: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT int string_etheraddr(const u_char *, char *); ^~~~~~~~~~~~~~~~ pmacct.c:1479:54: warning: pointer targets in passing argument 2 of 'string_etheraddr' differ in signedness [-Wpointer-sign] res = string_etheraddr(match_string_token, ethaddr); ^~~~~~~ In file included from pmacct.c:27:0: addr.h:54:9: note: expected 'char *' but argument is of type 'unsigned char *' EXT int string_etheraddr(const u_char *, char *); ^~~~~~~~~~~~~~~~ pmacct.c:1493:33: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'u_int16_t * {aka short unsigned int *}' [-Wformat=] sscanf(match_string_token, "%x", &request.data.etype); ~^ ~~~~~~~~~~~~~~~~~~~ %hx pmacct.c:1991:58: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] if (!strcmp(count_token[match_string_index], pmc_custom_primitives_registry.primitive[idx].name)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ pmacct.c:2149:47: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (extras.off_custom_primitives) pcust = ((u_char *)elem + extras.off_custom_primitives); ^ pmacct.c:2164:60: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-10llu ", acc_elem->primitives.tag); ~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ %-10lu pmacct.c:2165:58: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%llu", write_sep(sep_ptr, &count), acc_elem->primitives.tag); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:2169:60: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-10llu ", acc_elem->primitives.tag2); ~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %-10lu pmacct.c:2170:58: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_id_t {aka long unsigned int}' [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%llu", write_sep(sep_ptr, &count), acc_elem->primitives.tag2); ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:2823:60: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-20llu ", acc_elem->pkt_num); ~~~~~~^ ~~~~~~~~~~~~~~~~~ %-20lu pmacct.c:2824:58: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%llu", write_sep(sep_ptr, &count), acc_elem->pkt_num); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2827:62: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-20llu ", acc_elem->flo_num); ~~~~~~^ ~~~~~~~~~~~~~~~~~ %-20lu pmacct.c:2828:60: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%llu", write_sep(sep_ptr, &count), acc_elem->flo_num); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2832:19: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] printf("%s%llu\n", write_sep(sep_ptr, &count), acc_elem->pkt_len); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2878:46: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type '__time_t {aka long int}' [-Wformat=] if (table_reset_stamp.tv_sec) printf("%u\n", cycle_stamp.tv_sec - table_reset_stamp.tv_sec); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:2936:44: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] if (which_counter == 0) printf("%llu\n", acc_elem->pkt_len); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2938:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 1) printf("%llu\n", acc_elem->pkt_num); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2940:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 2) printf("%llu %llu %llu %lu\n", acc_elem->pkt_num, acc_elem->pkt_len, acc_elem->flo_num, acc_elem->time_start.tv_sec); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2940:47: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 2) printf("%llu %llu %llu %lu\n", acc_elem->pkt_num, acc_elem->pkt_len, acc_elem->flo_num, acc_elem->time_start.tv_sec); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2940:52: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 2) printf("%llu %llu %llu %lu\n", acc_elem->pkt_num, acc_elem->pkt_len, acc_elem->flo_num, acc_elem->time_start.tv_sec); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2942:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'pm_counter_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 3) printf("%llu\n", acc_elem->flo_num); ~~~^ ~~~~~~~~~~~~~~~~~ %lu pmacct.c:2954:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] if (which_counter == 0) printf("%llu\n", bcnt); /* print bytes */ ~~~^ %lu pmacct.c:2955:47: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 1) printf("%llu\n", pcnt); /* print packets */ ~~~^ %lu pmacct.c:2956:47: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 2) printf("%llu %llu %llu %u\n", pcnt, bcnt, fcnt, num_counters); /* print packets+bytes+flows+num */ ~~~^ %lu pmacct.c:2956:52: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 2) printf("%llu %llu %llu %u\n", pcnt, bcnt, fcnt, num_counters); /* print packets+bytes+flows+num */ ~~~^ %lu pmacct.c:2956:57: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 2) printf("%llu %llu %llu %u\n", pcnt, bcnt, fcnt, num_counters); /* print packets+bytes+flows+num */ ~~~^ %lu pmacct.c:2957:47: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'u_int64_t {aka long unsigned int}' [-Wformat=] else if (which_counter == 3) printf("%llu\n", fcnt); /* print flows */ ~~~^ %lu pmacct.c:2993:9: warning: unused variable 'pldt_eff' [-Wunused-variable] int pldt_eff=0; ^~~~~~~~ pmacct.c:707:20: warning: variable 'want_mrtg' set but not used [-Wunused-but-set-variable] int want_status, want_mrtg, want_counter, want_match, want_all_fields; ^~~~~~~~~ pmacct.c: In function 'check_data_sizes': pmacct.c:3091:65: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("ERROR: Counter sizes mismatch: daemon: %d client: %d\n", qh->cnt_sz*8, sizeof(acc_elem->pkt_len)*8); ~^ %ld pmacct.c:3098:68: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("ERROR: IP address sizes mismatch. daemon: %d client: %d\n", qh->ip_sz, sizeof(acc_elem->primitives.src_ip)); ~^ %ld pmacct.c: In function 'pmc_bgp_rd2str': pmacct.c:3246:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(ip_address, &a); ^~~~~~~~~~ In file included from pmacct.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ pmacct.c: In function 'pmc_bgp_str2rd': pmacct.c:3270:13: warning: unused variable 'tmp16' [-Wunused-variable] u_int16_t tmp16; ^~~~~ pmacct.c: In function 'pmc_compose_json': pmacct.c:3693:35: warning: pointer targets in passing argument 2 of 'json_object_set_new_nocheck' differ in signedness [-Wpointer-sign] json_object_set_new_nocheck(obj, pmc_custom_primitives_registry.primitive[cp_idx].name, json_string(cp_str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:219:0, from pmacct.c:25: /usr/include/jansson.h:149:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int json_object_set_new_nocheck(json_t *object, const char *key, json_t *value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pmacct.c:3700:35: warning: pointer targets in passing argument 2 of 'json_object_set_new_nocheck' differ in signedness [-Wpointer-sign] json_object_set_new_nocheck(obj, pmc_custom_primitives_registry.primitive[cp_idx].name, json_string(label_ptr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pmacct.h:219:0, from pmacct.c:25: /usr/include/jansson.h:149:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int json_object_set_new_nocheck(json_t *object, const char *key, json_t *value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pmacct.c:3353:7: warning: unused variable 'ret' [-Wunused-variable] int ret = FALSE; ^~~ pmacct.c: In function 'pmc_compose_timestamp': pmacct.c:3737:39: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] if (usec) snprintf(buf, buflen, "%u.%u", tv->tv_sec, tv->tv_usec); ~^ ~~~~~~~~~~ %lu pmacct.c:3737:42: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] if (usec) snprintf(buf, buflen, "%u.%u", tv->tv_sec, tv->tv_usec); ~^ ~~~~~~~~~~~ %lu pmacct.c:3738:34: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type '__time_t {aka long int}' [-Wformat=] else snprintf(buf, buflen, "%u.0", tv->tv_sec); ~^ ~~~~~~~~~~ %lu pmacct.c:3745:42: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type '__suseconds_t {aka long int}' [-Wformat=] if (usec) snprintf(buf, buflen, "%s.%u", tmpbuf, tv->tv_usec); ~^ ~~~~~~~~~~~ %lu pmacct.c: In function 'pmc_custom_primitive_header_print': pmacct.c:3760:72: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3760:123: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3760:35: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka const long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:3768:62: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3768:103: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3768:35: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:3782:59: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3782:90: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3782:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:3791:59: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3791:90: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3791:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c: In function 'pmc_custom_primitive_value_print': pmacct.c:3811:81: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3811:132: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3811:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka const long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:3847:64: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3847:105: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3847:35: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:3880:61: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3880:92: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3880:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu pmacct.c:3892:24: warning: pointer targets in passing argument 1 of 'etheraddr_string' differ in signedness [-Wpointer-sign] etheraddr_string(in+cp_entry->off, eth_str); ^~ In file included from pmacct.c:27:0: addr.h:53:10: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' EXT void etheraddr_string(const u_char *, char *); ^~~~~~~~~~~~~~~~ pmacct.c:3895:61: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3895:92: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^~~~~~~~ In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:383:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ pmacct.c:3895:42: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu In file included from pmacct.h:229:0, from pmacct.c:25: At top level: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC pmacctd.o pmacctd.c: In function 'main': pmacctd.c:700:73: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(pcap_fileno(device.dev_desc), SOL_SOCKET, SO_RCVBUF, &x, &slen); ^ In file included from pmacct.h:56:0, from pmacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ pmacctd.c:820:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cb_data.f_agent = (char *)&client; ^ pmacctd.c:101:20: warning: unused variable 'ret' [-Wunused-variable] int index, logf, ret; ^~~ In file included from pmacctd.c:38:0: At top level: isis/isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from pmacctd.c:30: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pmacctd.c:27:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from pmacctd.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC nfacctd.o nfacctd.c: In function 'main': nfacctd.c:573:60: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.sock, SOL_SOCKET, SO_RCVBUF, &saved, &l); ^ In file included from pmacct.h:56:0, from nfacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ nfacctd.c:575:63: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from pmacct.h:56:0, from nfacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ nfacctd.c:579:65: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from pmacct.h:56:0, from nfacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ nfacctd.c:921:99: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] ret = recvfrom(config.sock, netflow_packet, NETFLOW_MSG_SIZE, 0, (struct sockaddr *) &client, &clen); ^ In file included from /usr/include/sys/socket.h:274:0, from pmacct.h:56, from nfacctd.c:26: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^~~~~~~~ nfacctd.c:963:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ((struct struct_header_v5 *)netflow_packet)->version = ntohs(((struct struct_header_v5 *)netflow_packet)->version); ^~~~~~~~~~~~~~~~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:215, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from nfacctd.c:26: nfacctd.c:963:77: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ((struct struct_header_v5 *)netflow_packet)->version = ntohs(((struct struct_header_v5 *)netflow_packet)->version); ^ nfacctd.c:967:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] switch(((struct struct_header_v5 *)netflow_packet)->version) { ^~~~~~~~~~~~~~~~ nfacctd.c:983:64: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] process_v9_packet(netflow_packet, ret, &pptrs, &req, ((struct struct_header_v5 *)netflow_packet)->version); ^~~~~~~~~~~~~~~~ nfacctd.c:97:24: warning: unused variable 'no' [-Wunused-variable] int logf, rc, yes=1, no=0, allowed; ^~ nfacctd.c: In function 'process_v5_packet': nfacctd.c:1069:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_status = nfv578_check_status(pptrs); ^ nfacctd.c:1078:19: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(debug_agent_addr, &debug_a); ^~~~~~~~~~~~~~~~ In file included from nfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ nfacctd.c: In function 'process_v7_packet': nfacctd.c:1141:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_status = nfv578_check_status(pptrs); ^ nfacctd.c: In function 'process_v8_packet': nfacctd.c:1205:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_status = nfv578_check_status(pptrs); ^ nfacctd.c: In function 'process_v9_packet': nfacctd.c:1272:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(debug_agent_addr, &debug_a); ^~~~~~~~~~~~~~~~ In file included from nfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ nfacctd.c:1286:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrsv->v4.f_status = nfv9_check_status(pptrs, SourceId, 0, FlowSeq, TRUE); ^ nfacctd.c:1288:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrsv->v4.f_status_g = nfv9_check_status(pptrs, 0, NF9_OPT_SCOPE_SYSTEM, 0, FALSE); ^ nfacctd.c:1386:19: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(debug_agent_addr, &debug_a); ^~~~~~~~~~~~~~~~ In file included from nfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ nfacctd.c:1541:26: warning: pointer targets in passing argument 1 of 'resolve_vlen_template' differ in signedness [-Wpointer-sign] resolve_vlen_template(pkt, flowsetlen, tpl); ^~~ In file included from nfacctd.c:28:0: nfacctd.h:810:10: note: expected 'char *' but argument is of type 'unsigned char *' EXT void resolve_vlen_template(char *, u_int16_t, struct template_cache_entry *); ^~~~~~~~~~~~~~~~~~~~~ nfacctd.c: In function 'process_raw_packet': nfacctd.c:2174:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(debug_agent_addr, &debug_a); ^~~~~~~~~~~~~~~~ In file included from nfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ nfacctd.c: In function 'notify_malf_packet': nfacctd.c:2304:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from nfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ nfacctd.c:2305:45: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (!config.nfacctd_ip) config.nfacctd_ip = any; ^ nfacctd.c:2307:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] if (seq) snprintf(errstr, SRVBUFLEN, "%s: nfacctd=%s:%u agent=%s:%u seq=%u\n", ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from nfacctd.c:26: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ nfacctd.c:2309:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] else snprintf(errstr, SRVBUFLEN, "%s: nfacctd=%s:%u agent=%s:%u\n", ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from nfacctd.c:26: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ nfacctd.c:2312:17: warning: pointer targets in passing argument 2 of 'Log' differ in signedness [-Wpointer-sign] Log(severity, errstr); ^~~~~~ In file included from pmacct.h:232:0, from nfacctd.c:26: log.h:71:10: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT void Log(short int, char *, ...); ^~~ nfacctd.c: In function 'NF_find_id': nfacctd.c:2318:10: warning: unused variable 'j' [-Wunused-variable] int x, j, begin = 0, end = 0; ^ In file included from nfacctd.c:39:0: At top level: bmp/bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp/bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp/bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from nfacctd.c:38:0: isis/isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from plugin_hooks.h:88:0, from nfacctd.c:31: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from nfacctd.c:30:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from nfacctd.c:28:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from nfacctd.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC nfv8_handlers.o nfv8_handlers.c: In function 'v8_1_filter_handler': nfv8_handlers.c:94:30: warning: unused variable 'exp' [-Wunused-variable] struct struct_export_v8_1 *exp = (struct struct_export_v8_1 *) data; ^~~ In file included from nfv8_handlers.c:28:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from nfv8_handlers.c:27:0: nfacctd.h:667:14: warning: 'opt_tpl_desc_list' defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^~~~~~~~~~~~~~~~~ nfacctd.h:598:14: warning: 'tpl_desc_list' defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from nfv8_handlers.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC nfv9_template.o nfv9_template.c: In function 'handle_template': nfv9_template.c:44:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (tpl = find_template(hdr->template_id, (struct host_addr *) pptrs->f_agent, tpl_type, sid)) ^~~ nfv9_template.c:50:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (tpl = find_template(hdr->template_id, (struct host_addr *) pptrs->f_agent, tpl_type, sid)) ^~~ nfv9_template.c: In function 'save_template': nfv9_template.c:372:34: warning: unused variable 'agent_obj' [-Wunused-variable] json_t *root = json_object(), *agent_obj; ^~~~~~~~~ nfv9_template.c:370:9: warning: unused variable 'fmt' [-Wunused-variable] char *fmt; ^~~ nfv9_template.c:369:12: warning: unused variable 'idx' [-Wunused-variable] u_int8_t idx; ^~~ nfv9_template.c: In function 'nfacctd_offline_read_json_template': nfv9_template.c:486:13: warning: unused variable 'field_idx' [-Wunused-variable] u_int16_t field_idx; ^~~~~~~~~ nfv9_template.c: In function 'log_template_header': nfv9_template.c:893:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from nfv9_template.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ nfv9_template.c:890:32: warning: unused variable 'size' [-Wunused-variable] u_int16_t agent_port, count, size; ^~~~ nfv9_template.c:890:25: warning: unused variable 'count' [-Wunused-variable] u_int16_t agent_port, count, size; ^~~~~ In file included from nfv9_template.c:29:0: At top level: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from nfv9_template.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ nfv9_template.c: In function 'insert_opt_template': nfv9_template.c:996:20: warning: 'tid' may be used uninitialized in this function [-Wmaybe-uninitialized] ptr->template_id = tid; ~~~~~~~~~~~~~~~~~^~~~~ nfv9_template.c:998:18: warning: 'olen' may be used uninitialized in this function [-Wmaybe-uninitialized] ptr->num = olen+slen; ~~~~^~~~~ nfv9_template.c:998:18: warning: 'slen' may be used uninitialized in this function [-Wmaybe-uninitialized] nfv9_template.c:980:20: warning: 'modulo' may be used uninitialized in this function [-Wmaybe-uninitialized] ptr = tpl_cache.c[modulo]; ~~~~~~~~~~~^~~~~~~~ nfv9_template.c: In function 'refresh_opt_template': nfv9_template.c:1073:20: warning: 'tid' may be used uninitialized in this function [-Wmaybe-uninitialized] tpl->template_id = tid; ~~~~~~~~~~~~~~~~~^~~~~ nfv9_template.c:1075:18: warning: 'olen' may be used uninitialized in this function [-Wmaybe-uninitialized] tpl->num = olen+slen; ~~~~^~~~~ nfv9_template.c:1075:18: warning: 'slen' may be used uninitialized in this function [-Wmaybe-uninitialized] CC sfacctd.o sfacctd.c: In function 'main': sfacctd.c:580:60: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.sock, SOL_SOCKET, SO_RCVBUF, &saved, &l); ^ In file included from pmacct.h:56:0, from sfacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ sfacctd.c:582:63: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from pmacct.h:56:0, from sfacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ sfacctd.c:586:65: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] getsockopt(config.sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ In file included from pmacct.h:56:0, from sfacctd.c:26: /usr/include/sys/socket.h:213:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ sfacctd.c:958:99: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] ret = recvfrom(config.sock, sflow_packet, SFLOW_MAX_MSG_SIZE, 0, (struct sockaddr *) &client, &clen); ^ In file included from /usr/include/sys/socket.h:274:0, from pmacct.h:56, from sfacctd.c:26: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^~~~~~~~ sfacctd.c:1020:28: warning: implicit declaration of function 'P_broker_timers_get_last_fail' [-Wimplicit-function-declaration] time_t last_fail = P_broker_timers_get_last_fail(&sfacctd_counter_amqp_host.btimers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfacctd.c:1022:40: warning: implicit declaration of function 'P_broker_timers_get_retry_interval' [-Wimplicit-function-declaration] if (last_fail && ((last_fail + P_broker_timers_get_retry_interval(&sfacctd_counter_amqp_host.btimers)) <= sf_cnt_misc_db->log_tstamp.tv_sec)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfacctd.c:98:24: warning: unused variable 'no' [-Wunused-variable] int logf, rc, yes=1, no=0, allowed; ^~ sfacctd.c: In function 'process_SFv2v4_packet': sfacctd.c:1121:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrsv->v4.f_status = sfv245_check_status(spp, agent); ^ sfacctd.c:1126:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(debug_agent_addr, &debug_a); ^~~~~~~~~~~~~~~~ In file included from sfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ sfacctd.c:1139:1: warning: label 'SFv2v4_read_sampleType' defined but not used [-Wunused-label] SFv2v4_read_sampleType: ^~~~~~~~~~~~~~~~~~~~~~ sfacctd.c: In function 'process_SFv5_packet': sfacctd.c:1168:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrsv->v4.f_status = sfv245_check_status(spp, agent); ^ sfacctd.c:1173:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(debug_agent_addr, &debug_a); ^~~~~~~~~~~~~~~~ In file included from sfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ sfacctd.c: In function 'process_SF_raw_packet': sfacctd.c:1253:17: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from sfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ sfacctd.c:1269:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dissect.hdrBasePtr = spp->rawSample; ^ sfacctd.c:1310:16: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from sfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ sfacctd.c: In function 'SF_notify_malf_packet': sfacctd.c:1385:15: warning: pointer targets in passing argument 1 of 'addr_to_str' differ in signedness [-Wpointer-sign] addr_to_str(agent_addr, &a); ^~~~~~~~~~ In file included from sfacctd.c:27:0: addr.h:37:18: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT unsigned int addr_to_str(char *, const struct host_addr *); ^~~~~~~~~~~ sfacctd.c:1386:45: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (!config.nfacctd_ip) config.nfacctd_ip = any; ^ sfacctd.c:1387:12: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(errstr, SRVBUFLEN, "%s: sfacctd=%s:%u agent=%s:%u \n", ^~~~~~ In file included from /usr/include/features.h:421:0, from /usr/include/sys/types.h:25, from /usr/include/pcap/pcap.h:46, from /usr/include/pcap.h:43, from pmacct.h:30, from sfacctd.c:26: /usr/include/bits/stdio2.h:61:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (snprintf (char *__restrict __s, size_t __n, ^ sfacctd.c:1389:17: warning: pointer targets in passing argument 2 of 'Log' differ in signedness [-Wpointer-sign] Log(severity, errstr); ^~~~~~ In file included from pmacct.h:232:0, from sfacctd.c:26: log.h:71:10: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' EXT void Log(short int, char *, ...); ^~~ sfacctd.c: In function 'readCounters_generic': sfacctd.c:2087:35: warning: unused variable 'kv' [-Wunused-variable] json_t *obj = (json_t *) vobj, *kv; ^~ sfacctd.c:2086:8: warning: unused variable 'ip_address' [-Wunused-variable] char ip_address[INET6_ADDRSTRLEN]; ^~~~~~~~~~ sfacctd.c: In function 'readCounters_ethernet': sfacctd.c:2163:35: warning: unused variable 'kv' [-Wunused-variable] json_t *obj = (json_t *) vobj, *kv; ^~ sfacctd.c:2162:8: warning: unused variable 'ip_address' [-Wunused-variable] char ip_address[INET6_ADDRSTRLEN]; ^~~~~~~~~~ sfacctd.c: In function 'readCounters_vlan': sfacctd.c:2223:8: warning: unused variable 'ip_address' [-Wunused-variable] char ip_address[INET6_ADDRSTRLEN]; ^~~~~~~~~~ sfacctd.c: In function 'sfacctd_counter_init_amqp_host': sfacctd.c:2280:3: warning: implicit declaration of function 'P_broker_timers_set_retry_interval' [-Wimplicit-function-declaration] P_broker_timers_set_retry_interval(&sfacctd_counter_amqp_host.btimers, config.sfacctd_counter_amqp_retry); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sfacctd.c:42:0: At top level: bmp/bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp/bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp/bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from sfacctd.c:41:0: isis/isis.h:43:31: warning: '_isis_devices' defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^~~~~~~~~~~~~ In file included from sfacctd.c:40:0: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from plugin_hooks.h:88:0, from sfacctd.c:35: amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from sfacctd.c:34:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from sfacctd.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC sflow.o sflow.c: In function 'decodeIPLayer4': sflow.c:188:6: warning: variable 'bytesLeft' set but not used [-Wunused-but-set-variable] int bytesLeft; ^~~~~~~~~ sflow.c: In function 'decodeIPV6': sflow.c:286:13: warning: variable 'payloadLen' set but not used [-Wunused-but-set-variable] u_int16_t payloadLen; ^~~~~~~~~~ sflow.c: In function 'printTag': sflow.c:438:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u_int32_t {aka unsigned int}' [-Wformat=] sprintf(buf, "%lu:%lu", (tag >> 12), (tag & 0x00000FFF)); ~~^ ~~~~~~~~~~~ %u sflow.c:438:23: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'u_int32_t {aka unsigned int}' [-Wformat=] sprintf(buf, "%lu:%lu", (tag >> 12), (tag & 0x00000FFF)); ~~^ ~~~~~~~~~~~~~~~~~~ %u sflow.c: In function 'readExtendedRouter': sflow.c:465:8: warning: unused variable 'buf' [-Wunused-variable] char buf[51]; ^~~ sflow.c:464:13: warning: unused variable 'addrType' [-Wunused-variable] u_int32_t addrType; ^~~~~~~~ sflow.c: In function 'readExtendedGateway': sflow.c:517:17: warning: variable 'seg_type' set but not used [-Wunused-but-set-variable] u_int32_t seg_type; ^~~~~~~~ sflow.c:507:8: warning: unused variable 'buf' [-Wunused-variable] char buf[51]; ^~~ sflow.c: In function 'mplsLabelStack': sflow.c:640:13: warning: unused variable 'lab' [-Wunused-variable] u_int32_t lab; ^~~ sflow.c: In function 'readExtendedMpls': sflow.c:656:8: warning: unused variable 'buf' [-Wunused-variable] char buf[51]; ^~~ sflow.c: In function 'readExtendedNat': sflow.c:673:8: warning: unused variable 'buf' [-Wunused-variable] char buf[51]; ^~~ sflow.c: In function 'readExtendedMplsTunnel': sflow.c:691:24: warning: variable 'tunnel_cos' set but not used [-Wunused-but-set-variable] u_int32_t tunnel_id, tunnel_cos; ^~~~~~~~~~ sflow.c:691:13: warning: variable 'tunnel_id' set but not used [-Wunused-but-set-variable] u_int32_t tunnel_id, tunnel_cos; ^~~~~~~~~ sflow.c: In function 'readExtendedMplsVC': sflow.c:709:13: warning: variable 'vc_cos' set but not used [-Wunused-but-set-variable] u_int32_t vc_cos; ^~~~~~ sflow.c: In function 'readExtendedMplsFTN': sflow.c:727:13: warning: variable 'ftn_mask' set but not used [-Wunused-but-set-variable] u_int32_t ftn_mask; ^~~~~~~~ sflow.c: In function 'readExtendedMplsLDP_FEC': sflow.c:742:13: warning: unused variable 'fec_addr_prefix_len' [-Wunused-variable] u_int32_t fec_addr_prefix_len = getData32(sample); ^~~~~~~~~~~~~~~~~~~ sflow.c: In function 'readExtendedClass': sflow.c:797:21: warning: implicit declaration of function 'SF_evaluate_classifiers'; did you mean 'SF_evaluate_flow_type'? [-Wimplicit-function-declaration] sample->class = SF_evaluate_classifiers(buf); ^~~~~~~~~~~~~~~~~~~~~~~ SF_evaluate_flow_type sflow.c: In function 'readv5FlowSample': sflow.c:1072:41: warning: unused variable 'actualSampleLength' [-Wunused-variable] u_int32_t num_elements, sampleLength, actualSampleLength; ^~~~~~~~~~~~~~~~~~ sflow.c: In function 'readv5CountersSample': sflow.c:1195:111: warning: pointer targets in passing argument 2 of 'printTag' differ in signedness [-Wpointer-sign] Log(LOG_DEBUG, "DEBUG ( %s/core ): readv5CountersSample(): element tag %s.\n", config.name, printTag(tag, buf, 50)); ^~~ sflow.c:436:7: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' char *printTag(u_int32_t tag, char *buf, int bufLen) { ^~~~~~~~ sflow.c:1164:46: warning: unused variable 'drain' [-Wunused-variable] u_int32_t sampleLength, num_elements, idx, drain; ^~~~~ In file included from sflow.c:38:0: At top level: crc32.h:84:21: warning: '__crc32' defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^~~~~~~ crc32.h:49:21: warning: 'crc_32_tab' defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^~~~~~~~~~ In file included from sflow.c:37:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from sflow.c:31: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC sfv5_module.o In file included from sfv5_module.c:32:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from sfv5_module.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC pmtelemetryd.o pmacct.c: In function 'Recv': pmacct.c:3075:19: warning: 'elem' may be used uninitialized in this function [-Wmaybe-uninitialized] if (((char *)elem+num) > (char *)sbrk(0)) sbrk(LARGEBUFLEN); ~~~~~~~~~~~~~^~~~~ In file included from plugin_hooks.h:88:0, from pmtelemetryd.c:32: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pmtelemetryd.c:31:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from pmtelemetryd.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC pmbgpd.o In file included from plugin_hooks.h:88:0, from pmbgpd.c:31: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pmbgpd.c:30:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmacct.h:229:0, from pmbgpd.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CC pmbmpd.o In file included from plugin_hooks.h:88:0, from pmbmpd.c:32: amqp_common.h:112:13: warning: 'default_amqp_vhost' defined but not used [-Wunused-variable] static char default_amqp_vhost[] = "/"; ^~~~~~~~~~~~~~~~~~ amqp_common.h:111:13: warning: 'default_amqp_host' defined but not used [-Wunused-variable] static char default_amqp_host[] = "127.0.0.1"; ^~~~~~~~~~~~~~~~~ amqp_common.h:110:13: warning: 'default_amqp_routing_key' defined but not used [-Wunused-variable] static char default_amqp_routing_key[] = "acct"; ^~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:109:13: warning: 'default_amqp_exchange_type' defined but not used [-Wunused-variable] static char default_amqp_exchange_type[] = "direct"; ^~~~~~~~~~~~~~~~~~~~~~~~~~ amqp_common.h:108:13: warning: 'default_amqp_exchange' defined but not used [-Wunused-variable] static char default_amqp_exchange[] = "pmacct"; ^~~~~~~~~~~~~~~~~~~~~ amqp_common.h:107:13: warning: 'rabbitmq_pwd' defined but not used [-Wunused-variable] static char rabbitmq_pwd[] = "guest"; ^~~~~~~~~~~~ amqp_common.h:106:13: warning: 'rabbitmq_user' defined but not used [-Wunused-variable] static char rabbitmq_user[] = "guest"; ^~~~~~~~~~~~~ In file included from pmbmpd.c:31:0: pmacct-data.h:266:20: warning: 'cps_type' defined but not used [-Wunused-variable] static const char *cps_type[] = { ^~~~~~~~ In file included from pmbmpd.c:28:0: bmp/bmp.h:131:20: warning: 'bmp_stats_cnt_types' defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^~~~~~~~~~~~~~~~~~~ bmp/bmp.h:93:20: warning: 'bmp_term_reason_types' defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^~~~~~~~~~~~~~~~~~~~~ bmp/bmp.h:44:20: warning: 'bmp_msg_types' defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^~~~~~~~~~~~~ In file included from pmacct.h:229:0, from pmbmpd.c:26: cfg.h:558:13: warning: 'default_proc_name' defined but not used [-Wunused-variable] static char default_proc_name[] = "default"; ^~~~~~~~~~~~~~~~~ CCLD libcommon.la pmacct.c: In function 'main': pmacct.c:2040:9: warning: 'acc_elem' may be used uninitialized in this function [-Wmaybe-uninitialized] if (check_data_sizes((struct query_header *)largebuf, acc_elem)) exit(1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pmacct.c:2924:9: warning: 'acc_elem' may be used uninitialized in this function [-Wmaybe-uninitialized] if (check_data_sizes((struct query_header *)largebuf, acc_elem)) exit(1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pmacct.c:1903:9: warning: 'proto' may be used uninitialized in this function [-Wmaybe-uninitialized] if (proto <= 0) { ^ pmacct.c:1569:9: warning: 'proto' may be used uninitialized in this function [-Wmaybe-uninitialized] if (proto <= 0) { ^ CCLD libdaemons.la copying selected object files to avoid basename conflicts... CCLD pmacctd /usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libssl.so.1.1 /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libcrypto.so.1.1 CCLD nfacctd /usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libssl.so.1.1 /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libcrypto.so.1.1 CCLD sfacctd CCLD pmtelemetryd /usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libssl.so.1.1 /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libcrypto.so.1.1 CCLD pmbgpd /usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libssl.so.1.1 /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libcrypto.so.1.1 CCLD pmbmpd /usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libssl.so.1.1 /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libcrypto.so.1.1 CCLD pmacct /usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libssl.so.1.1 /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient.so, may conflict with libcrypto.so.1.1 gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[1]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[1]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420' gmake[1]: Nothing to be done for 'all-am'. gmake[1]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EPCdZb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 ++ dirname /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 + cd pmacct-1.6.2.a6b2420 + make DESTDIR=/builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 install -j2 Making install in src gmake[1]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' Making install in nfprobe_plugin gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/nfprobe_plugin' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/nfprobe_plugin' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/nfprobe_plugin' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/nfprobe_plugin' Making install in sfprobe_plugin gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/sfprobe_plugin' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/sfprobe_plugin' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/sfprobe_plugin' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/sfprobe_plugin' Making install in bgp gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bgp' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bgp' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bgp' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bgp' Making install in tee_plugin gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/tee_plugin' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/tee_plugin' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/tee_plugin' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/tee_plugin' Making install in isis gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/isis' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/isis' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/isis' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/isis' Making install in bmp gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bmp' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bmp' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bmp' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/bmp' Making install in telemetry gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/telemetry' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/telemetry' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/telemetry' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/telemetry' Making install in ndpi gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/ndpi' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/ndpi' gmake[3]: Nothing to be done for 'install-exec-am'. gmake[3]: Nothing to be done for 'install-data-am'. gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/ndpi' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src/ndpi' gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[3]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[3]: Nothing to be done for 'install-data-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/bin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin' /bin/sh ../libtool --mode=install /usr/bin/install -c pmacct '/builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/bin' /bin/sh ../libtool --mode=install /usr/bin/install -c pmacctd nfacctd sfacctd pmtelemetryd pmbgpd pmbmpd '/builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin' libtool: install: /usr/bin/install -c pmacct /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/bin/pmacct libtool: install: /usr/bin/install -c pmacctd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmacctd libtool: install: /usr/bin/install -c nfacctd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/nfacctd libtool: install: /usr/bin/install -c sfacctd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/sfacctd libtool: install: /usr/bin/install -c pmtelemetryd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmtelemetryd libtool: install: /usr/bin/install -c pmbgpd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmbgpd libtool: install: /usr/bin/install -c pmbmpd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmbmpd gmake[3]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[1]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420/src' gmake[1]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420' gmake[2]: Entering directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420' gmake[2]: Nothing to be done for 'install-exec-am'. gmake[2]: Nothing to be done for 'install-data-am'. gmake[2]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420' gmake[1]: Leaving directory '/builddir/build/BUILD/pmacct-1.6.2.a6b2420' + install -Dp examples/nfacctd-sql_v2.conf.example /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64//etc/pmacct/nfacctd.conf + install -Dp examples/pmacctd-sql_v2.conf.example /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64//etc/pmacct/pmacctd.conf + install -d /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64//usr/lib/systemd/system /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64//etc/sysconfig/pmacct + install /builddir/build/SOURCES/nfacctd.service /builddir/build/SOURCES/pmacctd.service /builddir/build/SOURCES/sfacctd.service /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64//usr/lib/systemd/system + install /builddir/build/SOURCES/nfacctd /builddir/build/SOURCES/pmacctd /builddir/build/SOURCES/sfacctd /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64//etc/sysconfig/pmacct + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --ver-rel 1.6.2.a6b2420-3 --unique-debug-arch x86_64 --unique-debug-src-base pmacct --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/pmacct-1.6.2.a6b2420 extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmbmpd extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmbgpd extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmtelemetryd extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/sfacctd extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/nfacctd extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/sbin/pmacctd extracting debug info from /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/bin/pmacct /usr/lib/rpm/sepdebugcrcfix: Updated 7 CRC32s, 0 CRC32s did match. 7322 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink Processing files: pmacct-1.6.2.a6b2420-3.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.HNrop9 + umask 022 + cd /builddir/build/BUILD + cd pmacct-1.6.2.a6b2420 + DOCDIR=/builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr AUTHORS /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr ChangeLog /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr CONFIG-KEYS /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr COPYING /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr FAQS /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr INSTALL /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr QUICKSTART /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr TOOLS /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr UPGRADE /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr docs /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr examples /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + cp -pr sql /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64/usr/share/doc/pmacct + exit 0 Provides: config(pmacct) = 1.6.2.a6b2420-3 pmacct = 1.6.2.a6b2420-3 pmacct(x86-64) = 1.6.2.a6b2420-3 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: /bin/bash /bin/sh /usr/bin/env ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libGeoIP.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.16)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypto.so.1.1()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libjansson.so.4()(64bit) libm.so.6()(64bit) libmysqlclient.so.18()(64bit) libmysqlclient.so.18(libmysqlclient_18)(64bit) libpcap.so.1()(64bit) libpq.so.5()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) librabbitmq.so.4()(64bit) libsqlite3.so.0()(64bit) libssl.so.1.1()(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: pmacct-debuginfo-1.6.2.a6b2420-3.x86_64 Provides: pmacct-debuginfo = 1.6.2.a6b2420-3 pmacct-debuginfo(x86-64) = 1.6.2.a6b2420-3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 Wrote: /builddir/build/RPMS/pmacct-1.6.2.a6b2420-3.x86_64.rpm Wrote: /builddir/build/RPMS/pmacct-debuginfo-1.6.2.a6b2420-3.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.o7MDWn + umask 022 + cd /builddir/build/BUILD + cd pmacct-1.6.2.a6b2420 + /usr/bin/rm -rf /builddir/build/BUILDROOT/pmacct-1.6.2.a6b2420-3.x86_64 + exit 0 Child return code was: 0