* Package: net-analyzer/pmacct-1.5.1 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc ipv6 kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking for gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler (x86_64-pc-linux-gnu-gcc -march=native -Wformat -Werror=format-security -g0 -O2 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu) works... yes checking whether the C compiler (x86_64-pc-linux-gnu-gcc -march=native -Wformat -Werror=format-security -g0 -O2 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu) is a cross-compiler... no checking whether we are using GNU C... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking OS... Linux checking hardware... x86_64 checking for ranlib... x86_64-pc-linux-gnu-ranlib checking whether to enable debugging compiler options... yes 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 IPv4-mapped IPv6 sockets ... yes checking whether to enable IP prefix labels... 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 packet capture type... linux checking whether to enable MySQL support... checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E no checking whether to enable PostgreSQL support... no checking whether to enable MongoDB support... no checking whether to enable SQLite3 support... no checking whether to enable RabbitMQ/AMQP support... no checking whether to enable GeoIP support... no checking whether to enable Jansson support... no checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for getopt.h... yes checking for sys/select.h... yes checking for sys/time.h... yes checking for u_int64_t in sys/types.h... yes checking for u_int32_t in sys/types.h... yes checking for u_int16_t in sys/types.h... yes checking for u_int8_t in sys/types.h... yes checking for uint64_t in sys/types.h... no checking for uint32_t in sys/types.h... no checking for uint16_t in sys/types.h... no checking for uint8_t in sys/types.h... no checking whether to enable 64bit counters... no checking whether to enable multithreading in pmacct... no checking whether to enable ULOG support... no checking return type of signal handlers... void checking for strlcpy... no checking for vsnprintf... yes checking for setproctitle... no checking for mallopt... yes PLATFORM ..... : x86_64 OS ........... : Linux 3.2.68-hardened-xxxx-std-ipv6-64 (ns207970.ip-94-23-217.eu) COMPILER ..... : x86_64-pc-linux-gnu-gcc CFLAGS ....... : -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall LIBS ......... : -lpcap -ldl SERVER_LIBS ...: -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin -Lsfprobe_plugin/ -lbgp -Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis -Lisis/ -lbmp -Lbmp/ LDFLAGS ...... : -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu Now type 'make' to compile the source code. Are you willing to get in touch with other pmacct users? Join the pmacct mailing-list by sending a message to pmacct-discussion-subscribe@pmacct.net Need for documentation and examples? Read the README file or go to http://wiki.pmacct.net/ updating cache ./config.cache creating ./config.status creating Makefile creating src/Makefile creating src/nfprobe_plugin/Makefile creating src/sfprobe_plugin/Makefile creating src/bgp/Makefile creating src/tee_plugin/Makefile creating src/isis/Makefile creating src/bmp/Makefile Making all in src gmake[1]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src' Making all in nfprobe_plugin gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/nfprobe_plugin' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -DFLOW_SPLAY -DEXPIRY_RB -c -o nfprobe_plugin.o nfprobe_plugin.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -DFLOW_SPLAY -DEXPIRY_RB -c -o netflow1.o netflow1.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -DFLOW_SPLAY -DEXPIRY_RB -c -o netflow5.o netflow5.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -DFLOW_SPLAY -DEXPIRY_RB -c -o netflow9.o netflow9.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -DFLOW_SPLAY -DEXPIRY_RB -c -o convtime.o convtime.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -DFLOW_SPLAY -DEXPIRY_RB -c -o strlcat.o strlcat.c In file included from /usr/include/sys/types.h:25:0, from /usr/include/pcap/pcap.h:44, from /usr/include/pcap.h:43, from ../pmacct.h:30, from common.h:30, from netflow5.c:34: /usr/include/features.h:148: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:44, from /usr/include/pcap.h:43, from ../pmacct.h:30, from common.h:30, from netflow1.c:27: /usr/include/features.h:148: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:44, from /usr/include/pcap.h:43, from ../pmacct.h:30, from common.h:30, from strlcat.c:21: /usr/include/features.h:148: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:44, from /usr/include/pcap.h:43, from ../pmacct.h:30, from common.h:30, from netflow9.c:36: /usr/include/features.h:148: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:44, from /usr/include/pcap.h:43, from ../pmacct.h:30, from common.h:30, from nfprobe_plugin.c:53: /usr/include/features.h:148: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:44, from /usr/include/pcap.h:43, from ../pmacct.h:30, from common.h:30, from convtime.c:25: /usr/include/features.h:148: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" ^ netflow5.c: In function ‘send_netflow_v5’: netflow5.c:127:14: warning: unused variable ‘rec32’ [-Wunused-variable] u_int32_t rec32; ^ netflow5.c:175:14: warning: unused variable ‘rec32’ [-Wunused-variable] u_int32_t rec32; ^ netflow1.c: In function ‘send_netflow_v1’: netflow1.c:68:32: warning: unused parameter ‘engine_type’ [-Wunused-parameter] int verbose_flag, u_int8_t engine_type, u_int8_t engine_id) ^ netflow1.c:68:54: warning: unused parameter ‘engine_id’ [-Wunused-parameter] int verbose_flag, u_int8_t engine_type, u_int8_t engine_id) ^ netflow9.c: In function ‘flow_to_flowset_ip_proto_handler’: netflow9.c:398:78: warning: unused parameter ‘idx’ [-Wunused-parameter] flow_to_flowset_ip_proto_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c: In function ‘flow_to_flowset_vlan_handler’: netflow9.c:438:74: warning: unused parameter ‘idx’ [-Wunused-parameter] flow_to_flowset_vlan_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c: In function ‘flow_to_flowset_class_handler’: netflow9.c:454:75: warning: unused parameter ‘idx’ [-Wunused-parameter] flow_to_flowset_class_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c: In function ‘flow_to_flowset_label_handler’: netflow9.c:484:84: warning: unused parameter ‘size’ [-Wunused-parameter] flow_to_flowset_label_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c: In function ‘flow_to_flowset_sampler_id_handler’: netflow9.c:507:70: warning: unused parameter ‘flow’ [-Wunused-parameter] flow_to_flowset_sampler_id_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c:507:80: warning: unused parameter ‘idx’ [-Wunused-parameter] flow_to_flowset_sampler_id_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c: In function ‘flow_to_flowset_cp_handler’: netflow9.c:518:81: warning: unused parameter ‘size’ [-Wunused-parameter] flow_to_flowset_cp_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ netflow9.c: In function ‘flow_to_flowset_cp_pen_handler’: netflow9.c:563:85: warning: unused parameter ‘size’ [-Wunused-parameter] flow_to_flowset_cp_pen_handler(char *flowset, const struct FLOW *flow, int idx, int size) ^ nfprobe_plugin.c: In function ‘nfprobe_exit_gracefully’: nfprobe_plugin.c:108:34: warning: unused parameter ‘signum’ [-Wunused-parameter] void nfprobe_exit_gracefully(int signum) ^ In file included from nfprobe_plugin.c:54:0: nfprobe_plugin.c: In function ‘EXPIRIES_RB_NEXT’: sys-tree.h:625:29: warning: unused parameter ‘head’ [-Wunused-parameter] name##_RB_NEXT(struct name *head, struct type *elm) \ ^ treetype.h:61:25: note: in expansion of macro ‘RB_GENERATE’ #define EXPIRY_GENERATE RB_GENERATE ^ nfprobe_plugin.c:180:1: note: in expansion of macro ‘EXPIRY_GENERATE’ EXPIRY_GENERATE(EXPIRIES, EXPIRY, trp, expiry_compare); ^ nfprobe_plugin.c: In function ‘format_flow’: nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ [-Wformat=] flow->ip6_flowlabel[0], flow->ip6_flowlabel[1]); ^ nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 10 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 11 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 12 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 13 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 15 has type ‘__suseconds_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 17 has type ‘__suseconds_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 10 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 11 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 12 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 13 has type ‘u_int32_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 15 has type ‘__suseconds_t’ [-Wformat=] nfprobe_plugin.c:221:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 17 has type ‘__suseconds_t’ [-Wformat=] nfprobe_plugin.c: In function ‘format_flow_brief’: nfprobe_plugin.c:240:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ [-Wformat=] (int)flow->protocol); ^ nfprobe_plugin.c:240:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ [-Wformat=] nfprobe_plugin.c: In function ‘l2_to_flowrec_update’: nfprobe_plugin.c:381:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ nfprobe_plugin.c:357:83: warning: unused parameter ‘extras’ [-Wunused-parameter] l2_to_flowrec_update(struct FLOW *flow, struct pkt_data *data, struct pkt_extras *extras, int ndx) ^ nfprobe_plugin.c: In function ‘vlen_to_flowrec’: nfprobe_plugin.c:423:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ nfprobe_plugin.c: In function ‘ipv4_to_flowrec_update’: nfprobe_plugin.c:482:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ nfprobe_plugin.c:465:83: warning: unused parameter ‘isfrag’ [-Wunused-parameter] ipv4_to_flowrec_update(struct FLOW *flow, struct primitives_ptrs *prim_ptrs, int *isfrag, int af) ^ nfprobe_plugin.c:465:95: warning: unused parameter ‘af’ [-Wunused-parameter] ipv4_to_flowrec_update(struct FLOW *flow, struct primitives_ptrs *prim_ptrs, int *isfrag, int af) ^ nfprobe_plugin.c: In function ‘ipv6_to_flowrec’: nfprobe_plugin.c:494:12: warning: unused variable ‘nxt’ [-Wunused-variable] int ndx, nxt; ^ nfprobe_plugin.c: In function ‘ipv6_to_flowrec_update’: nfprobe_plugin.c:547:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ nfprobe_plugin.c:527:83: warning: unused parameter ‘isfrag’ [-Wunused-parameter] ipv6_to_flowrec_update(struct FLOW *flow, struct primitives_ptrs *prim_ptrs, int *isfrag, int af) ^ nfprobe_plugin.c:527:95: warning: unused parameter ‘af’ [-Wunused-parameter] ipv6_to_flowrec_update(struct FLOW *flow, struct primitives_ptrs *prim_ptrs, int *isfrag, int af) ^ netflow9.c: In function ‘nf_sampling_option_to_flowset’: netflow9.c:1882:80: warning: unused parameter ‘system_boot_time’ [-Wunused-parameter] nf_sampling_option_to_flowset(u_char *packet, u_int len, const struct timeval *system_boot_time, u_int *len_used) ^ netflow9.c: In function ‘nf_class_option_to_flowset’: nfprobe_plugin.c: In function ‘force_expire’: netflow9.c:1939:88: warning: unused parameter ‘system_boot_time’ [-Wunused-parameter] nf_class_option_to_flowset(u_int idx, u_char *packet, u_int len, const struct timeval *system_boot_time, u_int *len_used) ^ nfprobe_plugin.c:1043:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i >= num_to_expire) ^ netflow9.c: In function ‘send_netflow_v9’: nfprobe_plugin.c:1047:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i < num_to_expire) { ^ netflow9.c:2022:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (flow_j = 0, class_j = 0; flow_j < num_flows;) { ^ nfprobe_plugin.c:1053:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < num_to_expire; i++) { ^ nfprobe_plugin.c: In function ‘connsock’: nfprobe_plugin.c:1134:5: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] ret = str_to_addr(config.nfprobe_source_ip, &config.nfprobe_source_ha); ^ netflow9.c:2112:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (flow_i = 0, class_i = 0; flow_i + flow_j < num_flows; flow_i++) { ^ nfprobe_plugin.c:1135:5: warning: implicit declaration of function ‘addr_to_sa’ [-Wimplicit-function-declaration] addr_to_sa(&ssource_ip, &config.nfprobe_source_ha, 0); ^ netflow9.c:2114:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (dh == NULL || (!send_options && (flows[flow_i + flow_j]->af != last_af || new_direction)) || ^ netflow9.c:2169:31: warning: pointer targets in passing argument 1 of ‘nf_sampling_option_to_flowset’ differ in signedness [-Wpointer-sign] sizeof(packet) - offset, system_boot_time, &inc); ^ netflow9.c:1882:1: note: expected ‘u_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) ^ nfprobe_plugin.c: In function ‘handle_timeouts’: nfprobe_plugin.c:1276:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (sep = strchr(current, ':')) { ^ netflow9.c:2174:31: warning: pointer targets in passing argument 2 of ‘nf_class_option_to_flowset’ differ in signedness [-Wpointer-sign] sizeof(packet) - offset, system_boot_time, &inc); ^ netflow9.c:1939:1: note: expected ‘u_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) ^ nfprobe_plugin.c: In function ‘nfprobe_plugin’: netflow9.c:2182:8: warning: pointer targets in passing argument 2 of ‘nf_flow_to_flowset’ differ in signedness [-Wpointer-sign] sizeof(packet) - offset, system_boot_time, &inc, direction); ^ nfprobe_plugin.c:1396:3: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] pm_setproctitle("%s [%s]", "Netflow Probe Plugin", config.name); ^ netflow9.c:1613:1: note: expected ‘u_char *’ but argument is of type ‘char *’ nf_flow_to_flowset(const struct FLOW *flow, u_char *packet, u_int len, ^ netflow9.c: 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) ^ nfprobe_plugin.c:1609:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (flowtrack.num_flows > max_flows || next_expire(&flowtrack) == 0) { ^ nfprobe_plugin.c:1635:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (flowtrack.num_flows > max_flows) { ^ nfprobe_plugin.c:1381:40: warning: unused variable ‘exit_request’ [-Wunused-variable] int max_flows, stop_collection_flag, exit_request, hoplimit; ^ nfprobe_plugin.c:1381: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:1380:21: warning: unused variable ‘ctlsock’ [-Wunused-variable] int ch, linktype, ctlsock, i, r, err, always_v6; ^ nfprobe_plugin.c:1380:7: warning: unused variable ‘ch’ [-Wunused-variable] int ch, linktype, ctlsock, i, r, err, always_v6; ^ nfprobe_plugin.c:1365:15: warning: unused variable ‘refresh_deadline’ [-Wunused-variable] time_t now, refresh_deadline; ^ nfprobe_plugin.c:1365:10: warning: unused variable ‘now’ [-Wunused-variable] time_t now, refresh_deadline; ^ nfprobe_plugin.c:1363:19: warning: unused variable ‘tz’ [-Wunused-variable] struct timezone tz; ^ In file included from nfprobe_plugin.c:56:0: nfprobe_plugin.c: At top level: ../nfacctd.h:588:14: warning: ‘tpl_desc_list’ defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^ ../nfacctd.h:657:14: warning: ‘opt_tpl_desc_list’ defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^ In file included from nfprobe_plugin.c:60:0: ../pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ nfprobe_plugin.c:1066:1: warning: ‘delete_all_flows’ defined but not used [-Wunused-function] delete_all_flows(struct FLOWTRACK *ft) ^ nfprobe_plugin.c: In function ‘cust_to_flowrec’: nfprobe_plugin.c:409:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ nfprobe_plugin.c: In function ‘nfprobe_plugin’: nfprobe_plugin.c:1475:20: warning: ‘linktype’ is used uninitialized in this function [-Wuninitialized] cb_ctxt.linktype = linktype; ^ ar rc libnfprobe_plugin.a netflow1.o netflow5.o netflow9.o nfprobe_plugin.o convtime.o strlcat.o x86_64-pc-linux-gnu-ranlib libnfprobe_plugin.a gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/nfprobe_plugin' Making all in sfprobe_plugin gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/sfprobe_plugin' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o sflow_agent.o sflow_agent.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o sflow_poller.o sflow_poller.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o sflow_receiver.o sflow_receiver.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o sflow_sampler.o sflow_sampler.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o sfprobe_plugin.o sfprobe_plugin.c sflow_sampler.c: In function ‘sfl_sampler_tick’: sflow_sampler.c:102:51: warning: unused parameter ‘now’ [-Wunused-parameter] void sfl_sampler_tick(SFLSampler *sampler, time_t now) ^ sflow_receiver.c: In function ‘sfl_receiver_tick’: sflow_receiver.c:119:54: warning: unused parameter ‘now’ [-Wunused-parameter] void sfl_receiver_tick(SFLReceiver *receiver, time_t now) ^ sflow_receiver.c: In function ‘putGateway’: sflow_receiver.c:235:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(seg = 0; seg < gw->dst_as_path_segments; seg++) { ^ sflow_receiver.c: In function ‘gatewayEncodingLength’: sflow_receiver.c:250:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(seg = 0; seg < gw->dst_as_path_segments; seg++) { ^ sflow_receiver.c: In function ‘mplsLdpFecEncodingLength’: sflow_receiver.c:359:76: warning: unused parameter ‘ldpfec’ [-Wunused-parameter] inline static u_int32_t mplsLdpFecEncodingLength(SFLExtended_mpls_LDP_FEC *ldpfec) { ^ sflow_receiver.c: In function ‘putClass’: sflow_receiver.c:383:3: 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 *’ 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:490:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(packedSize > (receiver->sFlowRcvrMaximumDatagramSize / 2)) { ^ sflow_receiver.c:481:7: warning: unused variable ‘num_extended’ [-Wunused-variable] int num_extended = 0, packedSize; ^ sflow_receiver.c: In function ‘sfl_receiver_writeCountersSample’: sflow_receiver.c:662:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(packedSize > (receiver->sFlowRcvrMaximumDatagramSize / 2)) { ^ sfprobe_plugin.c: In function ‘sfprobe_exit_now’: sfprobe_plugin.c:77:27: warning: unused parameter ‘signum’ [-Wunused-parameter] void sfprobe_exit_now(int signum) ^ sfprobe_plugin.c: In function ‘agentCB_alloc’: sfprobe_plugin.c:141:34: warning: unused parameter ‘magic’ [-Wunused-parameter] static void *agentCB_alloc(void *magic, SFLAgent *agent, size_t bytes) ^ sfprobe_plugin.c:141:51: warning: unused parameter ‘agent’ [-Wunused-parameter] static void *agentCB_alloc(void *magic, SFLAgent *agent, size_t bytes) ^ sfprobe_plugin.c: In function ‘agentCB_free’: sfprobe_plugin.c:146:31: warning: unused parameter ‘magic’ [-Wunused-parameter] static int agentCB_free(void *magic, SFLAgent *agent, void *obj) ^ sfprobe_plugin.c:146:48: warning: unused parameter ‘agent’ [-Wunused-parameter] static int agentCB_free(void *magic, SFLAgent *agent, void *obj) ^ sfprobe_plugin.c: In function ‘agentCB_error’: sfprobe_plugin.c:152:33: warning: unused parameter ‘magic’ [-Wunused-parameter] static void agentCB_error(void *magic, SFLAgent *agent, char *msg) ^ sfprobe_plugin.c:152:50: warning: unused parameter ‘agent’ [-Wunused-parameter] static void agentCB_error(void *magic, SFLAgent *agent, char *msg) ^ 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:443:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (header_len > sp->snaplen) header_len = sp->snaplen; ^ 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:592:3: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] pm_setproctitle("%s [%s]", "sFlow Probe Plugin", config.name); ^ 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 sfprobe_plugin.c:30:0: sfprobe_plugin.c: At top level: ../pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ sflow_poller.c: In function ‘sfl_poller_tick’: sflow_poller.c:90:48: warning: unused parameter ‘now’ [-Wunused-parameter] void sfl_poller_tick(SFLPoller *poller, time_t now) ^ ar rc libsfprobe_plugin.a sflow_agent.o sflow_poller.o sflow_receiver.o sflow_sampler.o sfprobe_plugin.o x86_64-pc-linux-gnu-ranlib libsfprobe_plugin.a gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/sfprobe_plugin' Making all in bgp gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/bgp' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp.o bgp.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_aspath.o bgp_aspath.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_community.o bgp_community.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_ecommunity.o bgp_ecommunity.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_hash.o bgp_hash.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_prefix.o bgp_prefix.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_table.o bgp_table.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bgp_logdump.o bgp_logdump.c bgp_table.c: In function ‘bgp_node_free_aggressive’: bgp_table.c:114:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (ri_idx = 0; ri_idx < (config.bgp_table_peer_buckets * config.bgp_table_per_peer_buckets); ri_idx++) { ^ bgp_logdump.c: In function ‘bgp_peer_log_msg’: bgp_logdump.c:40:20: warning: unused variable ‘attr’ [-Wunused-variable] struct bgp_attr *attr = ri->attr; ^ bgp_logdump.c:39:20: warning: unused variable ‘peer’ [-Wunused-variable] struct bgp_peer *peer = ri->peer; ^ bgp_logdump.c:38:8: warning: unused variable ‘log_rk’ [-Wunused-variable] char log_rk[SRVBUFLEN]; ^ bgp_logdump.c:36:39: warning: unused parameter ‘route’ [-Wunused-parameter] int bgp_peer_log_msg(struct bgp_node *route, struct bgp_info *ri, safi_t safi, char *event_type, int output) ^ bgp_logdump.c:36:74: warning: unused parameter ‘safi’ [-Wunused-parameter] int bgp_peer_log_msg(struct bgp_node *route, struct bgp_info *ri, safi_t safi, char *event_type, int output) ^ bgp_logdump.c:36:86: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bgp_peer_log_msg(struct bgp_node *route, struct bgp_info *ri, safi_t safi, char *event_type, int output) ^ bgp_table.c: In function ‘bgp_node_delete’: bgp_table.c:400:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (ri_idx = 0; ri_idx < (config.bgp_table_peer_buckets * config.bgp_table_per_peer_buckets); ri_idx++) ^ bgp_logdump.c: In function ‘bgp_peer_log_init’: bgp_logdump.c:190:38: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] if (!(*bpl) || !peer || peer->log) return; ^ bgp_logdump.c:164:14: warning: variable ‘ls’ set but not used [-Wunused-but-set-variable] u_int64_t *ls; ^ bgp_logdump.c:163:7: warning: variable ‘amqp_routing_key_rr’ set but not used [-Wunused-but-set-variable] int amqp_routing_key_rr, max_peers; ^ bgp_logdump.c:162:41: warning: variable ‘pa_str’ set but not used [-Wunused-but-set-variable] char *file, *amqp_routing_key, *lts, *pa_str; ^ bgp_logdump.c:162:35: warning: variable ‘lts’ set but not used [-Wunused-but-set-variable] char *file, *amqp_routing_key, *lts, *pa_str; ^ bgp_logdump.c:157:33: warning: unused variable ‘event_type’ [-Wunused-variable] char log_filename[SRVBUFLEN], event_type[] = "log_init"; ^ bgp_logdump.c: In function ‘bgp_peer_log_close’: bgp_logdump.c:301:27: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] if (!peer || peer->log) return; ^ bgp_table.c: At top level: bgp_table.c:133:1: warning: ‘bgp_table_free’ defined but not used [-Wunused-function] bgp_table_free (struct bgp_table *rt) ^ bgp.c: In function ‘skinny_bgp_daemon’: bgp_logdump.c:281:14: warning: variable ‘ls’ set but not used [-Wunused-but-set-variable] u_int64_t *ls; ^ bgp.c:121:5: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] ret = str_to_addr(config.nfacctd_bgp_ip, &addr); ^ bgp_logdump.c:280:41: warning: variable ‘pa_str’ set but not used [-Wunused-but-set-variable] char *file, *amqp_routing_key, *lts, *pa_str; ^ bgp_logdump.c:280:35: warning: variable ‘lts’ set but not used [-Wunused-but-set-variable] char *file, *amqp_routing_key, *lts, *pa_str; ^ bgp.c:126:5: warning: implicit declaration of function ‘addr_to_sa’ [-Wimplicit-function-declaration] slen = addr_to_sa((struct sockaddr *)&server, &addr, config.nfacctd_bgp_port); ^ bgp_logdump.c:280:16: warning: variable ‘amqp_routing_key’ set but not used [-Wunused-but-set-variable] char *file, *amqp_routing_key, *lts, *pa_str; ^ bgp_logdump.c:276:9: warning: variable ‘amqp_log_ptr’ set but not used [-Wunused-but-set-variable] void *amqp_log_ptr; ^ bgp_table.c: In function ‘bgp_node_create’: bgp_logdump.c:274:8: warning: unused variable ‘event_type’ [-Wunused-variable] char event_type[] = "log_close", peer_ip_src[] = "peer_ip_src", bmp_router[] = "bmp_router"; ^ bgp_table.c:78:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ bgp_logdump.c: In function ‘bgp_peer_log_dynname’: bgp_logdump.c:395:5: warning: implicit declaration of function ‘addr_to_str’ [-Wimplicit-function-declaration] if (peer->addr.family) addr_to_str(peer_src_ip, &peer->addr); ^ bgp.c:216:5: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] getsockopt(config.bgp_sock, SOL_SOCKET, SO_RCVBUF, &saved, &l); ^ bgp_logdump.c:388:14: warning: unused variable ‘howmany’ [-Wunused-variable] int len, howmany; ^ In file included from ../pmacct.h:52:0, from bgp.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ bgp_logdump.c: In function ‘bgp_peer_dump_init’: bgp.c:218:5: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] getsockopt(config.bgp_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ bgp_logdump.c:417:28: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] if (!peer || !peer->log) return; ^ In file included from ../pmacct.h:52:0, from bgp.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ bgp.c:221:5: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] getsockopt(config.bgp_sock, SOL_SOCKET, SO_RCVBUF, &obtained, &l); ^ bgp_logdump.c:415:7: warning: variable ‘amqp_routing_key_rr’ set but not used [-Wunused-but-set-variable] int amqp_routing_key_rr; ^ In file included from ../pmacct.h:52:0, from bgp.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ bgp_logdump.c:414:44: warning: variable ‘lts’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:414:35: warning: variable ‘pa_str’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:414:28: warning: variable ‘file’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:414:9: warning: variable ‘amqp_routing_key’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp.c:251:5: warning: implicit declaration of function ‘sa_to_addr’ [-Wimplicit-function-declaration] sa_to_addr(&server, &srv_addr, &srv_port); ^ bgp_logdump.c:410:8: warning: unused variable ‘event_type’ [-Wunused-variable] char event_type[] = "dump_init", peer_ip_src[] = "peer_ip_src", bmp_router[] = "bmp_router"; ^ bgp.c:252:5: warning: implicit declaration of function ‘addr_to_str’ [-Wimplicit-function-declaration] addr_to_str(srv_string, &srv_addr); ^ bgp_logdump.c: In function ‘bgp_peer_dump_close’: bgp_logdump.c:488:28: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] if (!peer || !peer->log) return; ^ bgp_logdump.c:486:44: warning: variable ‘lts’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:486:35: warning: variable ‘pa_str’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:486:28: warning: variable ‘file’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:486:9: warning: variable ‘amqp_routing_key’ set but not used [-Wunused-but-set-variable] char *amqp_routing_key, *file, *pa_str, *lts; ^ bgp_logdump.c:482:8: warning: unused variable ‘event_type’ [-Wunused-variable] char event_type[] = "dump_close", peer_src_ip[] = "peer_src_ip", bmp_router[] = "bmp_router"; ^ bgp_logdump.c: In function ‘bgp_handle_dump_event’: bgp_logdump.c:568:5: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] pm_setproctitle("%s %s [%s]", config.type, "Core Process -- BGP Dump Writer", config.name); ^ bgp.c:425:50: 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:52:0, from bgp.c:26: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ bgp.c:439:39: 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:52:0, from bgp.c:26: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ bgp_logdump.c:634:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (peer_buckets = 0; peer_buckets < config.bgp_table_per_peer_buckets; peer_buckets++) { ^ bgp.c:443:50: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] peer->fd = accept(config.bgp_sock, (struct sockaddr *) &client, &clen); ^ In file included from ../pmacct.h:52:0, from bgp.c:26: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ bgp.c:446:7: warning: implicit declaration of function ‘ipv4_mapped_to_ipv4’ [-Wimplicit-function-declaration] ipv4_mapped_to_ipv4(&client); ^ In file included from bgp_logdump.c:28:0: bgp_logdump.c: At top level: ../bmp/bmp.h:41:20: warning: ‘bmp_msg_types’ defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^ ../bmp/bmp.h:89:20: warning: ‘bmp_term_reason_types’ defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^ ../bmp/bmp.h:116:20: warning: ‘bmp_stats_cnt_types’ defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^ bgp.c:542:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (peer->buf.truncated_len+peer->msglen > peer->buf.len) { ^ bgp.c:627:41: warning: unused variable ‘cap_type’ [-Wunused-variable] u_int8_t len, opt_type, opt_len, cap_type; ^ bgp.c:67:20: warning: unused variable ‘multi_req6’ [-Wunused-variable] struct ipv6_mreq multi_req6; ^ bgp.c: In function ‘bgp_open_msg’: bgp.c:914:3: warning: implicit declaration of function ‘is_any’ [-Wimplicit-function-declaration] if (config.nfacctd_bgp_id && !is_any(&bgp_id) && !my_id_addr.family) { ^ bgp.c: In function ‘bgp_update_msg’: bgp.c:979:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] withdraw.nlri = pkt; ^ bgp.c:1004:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] update.nlri = pkt; ^ bgp.c:943:20: warning: unused variable ‘endp’ [-Wunused-variable] u_char *startp, *endp; ^ bgp.c:943:11: warning: unused variable ‘startp’ [-Wunused-variable] u_char *startp, *endp; ^ bgp.c: In function ‘bgp_attr_parse’: bgp.c:1063:30: warning: variable ‘mp_nlri’ set but not used [-Wunused-but-set-variable] u_int8_t flag, type, *tmp, mp_nlri = 0; ^ bgp.c: In function ‘bgp_attr_parse_aspath’: bgp.c:1141:108: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_aspath(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag) ^ bgp.c: In function ‘bgp_attr_parse_as4path’: bgp.c:1150:45: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_as4path(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag, struct aspath **aspath4) ^ bgp.c:1150:83: warning: unused parameter ‘attr’ [-Wunused-parameter] int bgp_attr_parse_as4path(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag, struct aspath **aspath4) ^ bgp.c:1150:109: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_as4path(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag, struct aspath **aspath4) ^ bgp.c: In function ‘bgp_attr_parse_nexthop’: bgp.c:1157:45: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_nexthop(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c:1157:107: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_nexthop(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c: In function ‘bgp_attr_parse_community’: bgp.c:1171:47: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_community(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag) ^ bgp.c:1171:111: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_community(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag) ^ bgp.c: In function ‘bgp_attr_parse_ecommunity’: bgp.c:1182:35: warning: pointer targets in passing argument 1 of ‘ecommunity_parse’ differ in signedness [-Wpointer-sign] else attr->ecommunity = (struct ecommunity *) ecommunity_parse(ptr, len); ^ In file included from bgp.h:27:0, from bgp.c:27: bgp_ecommunity.h:82:24: note: expected ‘u_int8_t *’ but argument is of type ‘char *’ EXT struct ecommunity *ecommunity_parse (u_int8_t *, u_short); ^ bgp.c:1179:48: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_ecommunity(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag) ^ bgp.c:1179:112: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_ecommunity(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_int8_t flag) ^ bgp.c: In function ‘bgp_attr_parse_med’: bgp.c:1188:41: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_med(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c:1188:103: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_med(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c: In function ‘bgp_attr_parse_local_pref’: bgp.c:1203:48: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_local_pref(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c:1203:110: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_local_pref(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c: In function ‘bgp_attr_parse_origin’: bgp.c:1217:44: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_origin(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c:1217:106: warning: unused parameter ‘flag’ [-Wunused-parameter] int bgp_attr_parse_origin(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, u_char flag) ^ bgp.c: In function ‘bgp_attr_parse_mp_reach’: bgp.c:1292:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mp_update->nlri = ptr; ^ bgp.c:1227:46: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_mp_reach(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, struct bgp_nlri *mp_update) ^ bgp.c: In function ‘bgp_attr_parse_mp_unreach’: bgp.c:1317:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mp_withdraw->nlri = ptr; ^ bgp.c:1298:48: warning: unused parameter ‘peer’ [-Wunused-parameter] int bgp_attr_parse_mp_unreach(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, struct bgp_nlri *mp_withdraw) ^ bgp.c:1298:86: warning: unused parameter ‘attr’ [-Wunused-parameter] int bgp_attr_parse_mp_unreach(struct bgp_peer *peer, u_int16_t len, struct bgp_attr *attr, char *ptr, struct bgp_nlri *mp_withdraw) ^ bgp.c: In function ‘bgp_nlri_parse’: bgp.c:1390:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (info->afi == AFI_IP && p.prefixlen > 120 || (info->afi == AFI_IP6 && p.prefixlen > 216)) return -1; ^ bgp.c:1433:4: warning: pointer targets in passing argument 8 of ‘bgp_process_update’ differ in signedness [-Wpointer-sign] ret = bgp_process_update(peer, &p, attr, info->afi, safi, &rd, &path_id, label); ^ In file included from bgp.c:27:0: bgp.h:167:9: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT int bgp_process_update(struct bgp_peer *, struct prefix *, void *, afi_t, safi_t, rd_t *, path_id_t *, char *); ^ bgp.c:1435:4: warning: pointer targets in passing argument 8 of ‘bgp_process_withdraw’ differ in signedness [-Wpointer-sign] ret = bgp_process_withdraw(peer, &p, attr, info->afi, safi, &rd, &path_id, label); ^ In file included from bgp.c:27:0: bgp.h:168:9: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT int bgp_process_withdraw(struct bgp_peer *, struct prefix *, void *, afi_t, safi_t, rd_t *, path_id_t *, char *); ^ bgp.c:1332:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret; ^ bgp.c: In function ‘bgp_process_withdraw’: bgp.c:1605:10: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (ri && config.nfacctd_bgp_msglog_file || config.nfacctd_bgp_msglog_amqp_routing_key) { ^ bgp.c:1572:73: warning: unused parameter ‘attr’ [-Wunused-parameter] int bgp_process_withdraw(struct bgp_peer *peer, struct prefix *p, void *attr, afi_t afi, safi_t safi, ^ bgp.c:1573:41: warning: unused parameter ‘label’ [-Wunused-parameter] rd_t *rd, path_id_t *path_id, char *label) ^ bgp.c: In function ‘bgp_str2rd’: bgp.c:1671:13: warning: unused variable ‘tmp16’ [-Wunused-variable] u_int16_t tmp16; ^ bgp.c: In function ‘bgp_peer_init’: bgp.c:1989:10: warning: unused variable ‘safi’ [-Wunused-variable] safi_t safi; ^ bgp.c:1988:9: warning: unused variable ‘afi’ [-Wunused-variable] afi_t afi; ^ bgp.c: In function ‘bgp_peer_close’: bgp.c:2040:5: warning: implicit declaration of function ‘bmp_dump_close_peer’ [-Wimplicit-function-declaration] bmp_dump_close_peer(peer); ^ bgp.c:2010:10: warning: unused variable ‘safi’ [-Wunused-variable] safi_t safi; ^ bgp.c:2009:9: warning: unused variable ‘afi’ [-Wunused-variable] afi_t afi; ^ bgp.c: In function ‘bgp_peer_info_delete’: bgp.c:2072:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (peer_buckets = 0; peer_buckets < config.bgp_table_per_peer_buckets; peer_buckets++) { ^ bgp.c: In function ‘evaluate_comm_patterns’: bgp.c:2152:18: warning: variable ‘srclen’ set but not used [-Wunused-but-set-variable] int idx, i, j, srclen; ^ bgp.c: In function ‘bgp_srcdst_lookup’: bgp.c:2317:7: warning: implicit declaration of function ‘ip6_addr_32bit_cpy’ [-Wimplicit-function-declaration] ip6_addr_32bit_cpy(&((struct sockaddr_in6 *)sa)->sin6_addr, &pptrs->bta, 0, 0, 1); ^ bgp.c:2344:5: warning: implicit declaration of function ‘sa_addr_cmp’ [-Wimplicit-function-declaration] if ((!sa_addr_cmp(sa, &peers[peer_idx].addr) || !sa_addr_cmp(sa, &peers[peer_idx].id)) && ^ bgp.c:2345:9: warning: implicit declaration of function ‘sa_port_cmp’ [-Wimplicit-function-declaration] (!compare_bgp_port || !sa_port_cmp(sa, peers[peer_idx].tcp_port))) { ^ bgp.c:2383:7: warning: implicit declaration of function ‘NF_peer_dst_ip_handler’ [-Wimplicit-function-declaration] if (config.acct_type == ACCT_NF) NF_peer_dst_ip_handler(NULL, pptrs, &pbgp_ptr); ^ bgp.c:2384:7: warning: implicit declaration of function ‘SF_peer_dst_ip_handler’ [-Wimplicit-function-declaration] else if (config.acct_type == ACCT_SF) SF_peer_dst_ip_handler(NULL, pptrs, &pbgp_ptr); ^ bgp.c:2604:15: warning: implicit declaration of function ‘ip6_addr_cpy’ [-Wimplicit-function-declaration] ip6_addr_cpy(&((struct sockaddr_in6 *)sa)->sin6_addr, &info->attr->mp_nexthop.address.ipv6); ^ bgp.c: In function ‘bgp_follow_nexthop_lookup’: bgp.c:2639:23: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *saved_agent = pptrs->f_agent; ^ bgp.c:2713:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = (char *) &sa_local; ^ bgp.c:2737:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = (char *) &sa_local; ^ bgp.c:2761:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = (char *) &sa_local; ^ bgp.c:2777:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptrs->f_agent = saved_agent; ^ bgp.c: In function ‘bgp_rd2str’: bgp.c:1664:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ar rc libbgp.a bgp.o bgp_aspath.o bgp_community.o bgp_ecommunity.o bgp_hash.o bgp_prefix.o bgp_table.o bgp_logdump.o x86_64-pc-linux-gnu-ranlib libbgp.a gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/bgp' Making all in tee_plugin gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/tee_plugin' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o tee_plugin.o tee_plugin.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o tee_recvs.o tee_recvs.c 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:28:36: warning: unused parameter ‘filename’ [-Wunused-parameter] int tee_recvs_map_id_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c:28:63: warning: unused parameter ‘e’ [-Wunused-parameter] int tee_recvs_map_id_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c:28:112: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int tee_recvs_map_id_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c: In function ‘tee_recvs_map_ip_handler’: tee_recvs.c:78:5: 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:67:63: warning: unused parameter ‘e’ [-Wunused-parameter] int tee_recvs_map_ip_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c:67:112: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int tee_recvs_map_ip_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ 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:107:64: warning: unused parameter ‘e’ [-Wunused-parameter] int tee_recvs_map_tag_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c:107:113: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int tee_recvs_map_tag_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ 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:122:72: warning: unused parameter ‘e’ [-Wunused-parameter] int tee_recvs_map_balance_alg_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c:122:121: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int tee_recvs_map_balance_alg_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ tee_recvs.c: In function ‘tee_recvs_map_validate’: tee_recvs.c:153:35: warning: unused parameter ‘filename’ [-Wunused-parameter] void tee_recvs_map_validate(char *filename, struct plugin_requests *req) ^ tee_plugin.c: In function ‘tee_plugin’: tee_plugin.c:49:3: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] pm_setproctitle("%s [%s]", "Tee Plugin", config.name); ^ tee_plugin.c:212:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) msg; ^ tee_plugin.c:39:34: warning: unused variable ‘dest_serv’ [-Wunused-variable] char *dataptr, dest_addr[256], dest_serv[256]; ^ tee_plugin.c:39:18: warning: unused variable ‘dest_addr’ [-Wunused-variable] char *dataptr, dest_addr[256], dest_serv[256]; ^ tee_plugin.c:35:17: warning: unused variable ‘fd’ [-Wunused-variable] int ret, num, fd, pool_idx, recv_idx; ^ tee_plugin.c:35:12: warning: unused variable ‘num’ [-Wunused-variable] int ret, num, fd, pool_idx, recv_idx; ^ tee_plugin.c:34:16: warning: unused variable ‘err’ [-Wunused-variable] int timeout, err; ^ tee_plugin.c: In function ‘Tee_exit_now’: tee_plugin.c:222:23: warning: unused parameter ‘signum’ [-Wunused-parameter] void Tee_exit_now(int signum) ^ tee_plugin.c: In function ‘Tee_send’: tee_plugin.c:239:5: warning: implicit declaration of function ‘sa_to_addr’ [-Wimplicit-function-declaration] sa_to_addr((struct sockaddr *)msg, &a, &agent_port); ^ tee_plugin.c:240:5: warning: implicit declaration of function ‘addr_to_str’ [-Wimplicit-function-declaration] addr_to_str(agent_addr, &a); ^ tee_plugin.c: In function ‘Tee_prepare_sock’: tee_plugin.c:424:7: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] ret = str_to_addr(config.nfprobe_source_ip, &source_ip); ^ tee_plugin.c:425:7: warning: implicit declaration of function ‘addr_to_sa’ [-Wimplicit-function-declaration] addr_to_sa(&ssource_ip, &source_ip, 0); ^ tee_plugin.c:445:9: warning: unused variable ‘hincl’ [-Wunused-variable] int hincl = 1; /* 1 = on, 0 = off */ ^ tee_plugin.c:462:5: 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:52:0, from tee_plugin.c:24: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ tee_plugin.c:464:5: 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:52:0, from tee_plugin.c:24: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ tee_plugin.c:468:7: 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:52:0, from tee_plugin.c:24: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ tee_plugin.c: In function ‘Tee_rr_balance’: tee_plugin.c:520:65: warning: unused parameter ‘msg’ [-Wunused-parameter] struct tee_receiver *Tee_rr_balance(void *pool, struct pkt_msg *msg) ^ In file included from tee_plugin.c:26:0: tee_plugin.c: At top level: ../pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ ar rc libtee_plugin.a tee_plugin.o tee_recvs.o x86_64-pc-linux-gnu-ranlib libtee_plugin.a gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/tee_plugin' Making all in isis gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/isis' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis.o isis.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o checksum.o checksum.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o dict.o dict.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o table.o table.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o prefix.o prefix.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o sockunion.o sockunion.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o hash.o hash.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o stream.o stream.c In file included from checksum.c:12:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ table.c: In function ‘route_node_match_ipv6’: table.c:254:43: warning: passing argument 2 of ‘route_node_match’ from incompatible pointer type [enabled by default] return route_node_match (table, (struct sis_prefix *) &p); ^ sockunion.c: In function ‘sockunion_connect’: table.c:199:1: note: expected ‘const struct isis_prefix *’ but argument is of type ‘struct sis_prefix *’ route_node_match (const struct route_table *table, const struct isis_prefix *p) ^ sockunion.c:241:19: warning: unused parameter ‘ifindex’ [-Wunused-parameter] unsigned int ifindex) ^ sockunion.c: In function ‘sockopt_cork’: sockunion.c:443:19: warning: unused parameter ‘sock’ [-Wunused-parameter] sockopt_cork (int sock, int onoff) ^ sockunion.c:443:29: warning: unused parameter ‘onoff’ [-Wunused-parameter] sockopt_cork (int sock, int onoff) ^ In file included from table.c:26:0: table.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ In file included from sockunion.c:25:0: sockunion.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ In file included from prefix.c:26:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ In file included from hash.c:25:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ dict.c: In function ‘dnode_alloc’: dict.c:51:17: warning: unused parameter ‘dict_context’ [-Wunused-parameter] #define context dict_context ^ dict.c:941:35: note: in expansion of macro ‘context’ static dnode_t *dnode_alloc(void *context) ^ dict.c: In function ‘dnode_free’: dict.c:51:17: warning: unused parameter ‘dict_context’ [-Wunused-parameter] #define context dict_context ^ dict.c:946:45: note: in expansion of macro ‘context’ static void dnode_free(dnode_t *node, void *context) ^ In file included from dict.c:21:0: dict.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis.c: In function ‘skinny_isis_daemon’: isis.c:153:3: warning: implicit declaration of function ‘area_net_title’ [-Wimplicit-function-declaration] if (config.nfacctd_isis_net) area_net_title(area, config.nfacctd_isis_net); ^ isis.c:174:5: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] ret = str_to_addr(config.nfacctd_isis_ip, &addr); ^ isis.c:199:5: warning: implicit declaration of function ‘if_nametoindex’ [-Wimplicit-function-declaration] circuit->interface->ifindex = if_nametoindex(config.nfacctd_isis_iface); ^ isis.c: In function ‘isis_pdu_runner’: isis.c:270:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ssnpa = pptrs.packet_ptr; ^ isis.c:275:2: 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:51:0: isis_pdu.h:241:9: note: expected ‘u_char *’ but argument is of type ‘char *’ EXT int isis_handle_pdu (struct isis_circuit *, u_char *); ^ isis.c:240:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret; ^ isis.c:239:17: warning: unused variable ‘thread’ [-Wunused-variable] struct thread thread; ^ isis.c: In function ‘isis_sll_handler’: isis.c:320:11: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] u_char *p; ^ isis.c: In function ‘iso_handler’: isis.c:345:46: warning: unused parameter ‘pptrs’ [-Wunused-parameter] int iso_handler(register struct packet_ptrs *pptrs) ^ In file included from stream.c:26:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis.c: In function ‘igp_daemon_map_node_handler’: isis.c:433:66: warning: unused parameter ‘e’ [-Wunused-parameter] int igp_daemon_map_node_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c:433:115: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int igp_daemon_map_node_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c: In function ‘igp_daemon_map_area_id_handler’: isis.c:445:69: warning: unused parameter ‘e’ [-Wunused-parameter] int igp_daemon_map_area_id_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c:445:118: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int igp_daemon_map_area_id_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c: In function ‘igp_daemon_map_adj_metric_handler’: isis.c:483:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ';')) { ^ isis.c:475:16: warning: unused variable ‘debug_idx’ [-Wunused-variable] int idx = 0, debug_idx; ^ isis.c:471:72: warning: unused parameter ‘e’ [-Wunused-parameter] int igp_daemon_map_adj_metric_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o thread.o thread.c isis.c:471:121: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int igp_daemon_map_adj_metric_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c: In function ‘igp_daemon_map_reach_metric_handler’: isis.c:534:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ';')) { ^ isis.c:526:16: warning: unused variable ‘debug_idx’ [-Wunused-variable] int idx = 0, debug_idx; ^ isis.c:522:74: warning: unused parameter ‘e’ [-Wunused-parameter] int igp_daemon_map_reach_metric_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c:522:123: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int igp_daemon_map_reach_metric_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c: In function ‘igp_daemon_map_reach6_metric_handler’: isis.c:586:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (token = extract_token(&str_ptr, ';')) { ^ isis.c:578:16: warning: unused variable ‘debug_idx’ [-Wunused-variable] int idx = 0, debug_idx; ^ isis.c:574:75: warning: unused parameter ‘e’ [-Wunused-parameter] int igp_daemon_map_reach6_metric_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c:574:124: warning: unused parameter ‘acct_type’ [-Wunused-parameter] int igp_daemon_map_reach6_metric_handler(char *filename, struct id_entry *e, char *value, struct plugin_requests *req, int acct_type) ^ isis.c: In function ‘igp_daemon_map_validate’: isis.c:670:7: 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 isis.c:28:0: isis.h:104:9: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT int igp_daemon_map_handle_lsp_id(char *, struct host_addr *); ^ isis.c:806:2: 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:419:6: note: expected ‘u_char *’ but argument is of type ‘char *’ void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^ isis.c:806:2: 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:419:6: note: expected ‘const u_char *’ but argument is of type ‘char *’ void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^ isis.c: In function ‘igp_daemon_map_initialize’: isis.c:818:38: warning: unused parameter ‘filename’ [-Wunused-parameter] void igp_daemon_map_initialize(char *filename, struct plugin_requests *req) ^ isis.c:818:72: warning: unused parameter ‘req’ [-Wunused-parameter] void igp_daemon_map_initialize(char *filename, struct plugin_requests *req) ^ isis.c: In function ‘igp_daemon_map_finalize’: isis.c:833:36: warning: unused parameter ‘filename’ [-Wunused-parameter] void igp_daemon_map_finalize(char *filename, struct plugin_requests *req) ^ isis.c:833:70: warning: unused parameter ‘req’ [-Wunused-parameter] void igp_daemon_map_finalize(char *filename, struct plugin_requests *req) ^ isis.c: In function ‘iso_handler’: isis.c:347:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o linklist.o linklist.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_circuit.o isis_circuit.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_events.o isis_events.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_route.o isis_route.c 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; ^ thread.c: In function ‘funcname_thread_execute’: thread.c:949:48: warning: unused parameter ‘m’ [-Wunused-parameter] funcname_thread_execute (struct thread_master *m, ^ In file included from thread.c:25:0: thread.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ thread.c:250:1: warning: ‘cpu_record_hash_clear’ defined but not used [-Wunused-function] cpu_record_hash_clear (struct hash_backet *bucket, ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_tlv.o isis_tlv.c In file included from linklist.c:25:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_csm.o isis_csm.c In file included from isis_circuit.c:26:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis_events.c: In function ‘isis_event_area_addr_change’: isis_events.c:125:48: warning: unused parameter ‘area’ [-Wunused-parameter] isis_event_area_addr_change (struct isis_area *area) ^ isis_events.c: In function ‘circuit_commence_level’: isis_events.c:132:46: warning: unused parameter ‘circuit’ [-Wunused-parameter] circuit_commence_level (struct isis_circuit *circuit, int level) ^ isis_events.c: In function ‘circuit_resign_level’: isis_events.c:149:7: warning: unused variable ‘idx’ [-Wunused-variable] int idx = level - 1; ^ isis_events.c:147:44: warning: unused parameter ‘circuit’ [-Wunused-parameter] circuit_resign_level (struct isis_circuit *circuit, int level) ^ isis_events.c: In function ‘isis_event_adjacency_state_change’: isis_events.c:229:68: warning: unused parameter ‘newstate’ [-Wunused-parameter] isis_event_adjacency_state_change (struct isis_adjacency *adj, int newstate) ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_flags.o isis_flags.c In file included from isis_route.c:28:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_misc.o isis_misc.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isisd.o isisd.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_adjacency.o isis_adjacency.c 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; ^ isis_tlv.c: In function ‘tlv_add_authinfo’: isis_tlv.c:805:24: warning: unused parameter ‘auth_type’ [-Wunused-parameter] tlv_add_authinfo (char auth_type, char auth_len, u_char *auth_value, ^ isis_tlv.c: In function ‘tlv_add_checksum’: isis_tlv.c:817:36: warning: unused parameter ‘checksum’ [-Wunused-parameter] tlv_add_checksum (struct checksum *checksum, struct stream *stream) ^ In file included from isis_tlv.c:27:0: isis_tlv.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ In file included from isis_csm.c:26:0: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_dynhn.o isis_dynhn.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_spf.o isis_spf.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o iso_checksum.o iso_checksum.c 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: isis_flags.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_lsp.o isis_lsp.c isis_misc.c: In function ‘dotformat2buff’: isis_misc.c:109:3: 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:398:15: note: expected ‘const char *’ but argument is of type ‘const u_char *’ extern size_t strlen (const char *__s) ^ isis_misc.c: In function ‘sysid2buff’: isis_misc.c:167:3: 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:398:15: note: expected ‘const char *’ but argument is of type ‘const u_char *’ extern size_t strlen (const char *__s) ^ isis_misc.c: In function ‘string2circuit_t’: isis_misc.c:279:3: 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:144:12: note: expected ‘const char *’ but argument is of type ‘const u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ isis_misc.c:282:3: 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:144:12: note: expected ‘const char *’ but argument is of type ‘const u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ isis_misc.c:282:3: 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:144:12: note: expected ‘const char *’ but argument is of type ‘const u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ isis_misc.c:285:3: 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:144:12: note: expected ‘const char *’ but argument is of type ‘const u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ isisd.c: In function ‘isis_area_destroy’: isisd.c:202:4: warning: implicit declaration of function ‘isis_circuit_down’ [-Wimplicit-function-declaration] isis_circuit_down (circuit); ^ In file included from isis_misc.c:27:0: isis_misc.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ In file included from isisd.c:26:0: isisd.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ 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; ^ In file included from isis_adjacency.c:27:0: isis_adjacency.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis_adjacency.c:186:1: warning: ‘adj_state2string’ defined but not used [-Wunused-function] adj_state2string (int state) ^ isis_dynhn.c: In function ‘dyn_cache_cleanup’: isis_dynhn.c:64:7: warning: implicit declaration of function ‘isis_list_delete_node’ [-Wimplicit-function-declaration] isis_list_delete_node (dyn_cache, node); ^ In file included from isis_dynhn.c:26:0: isis_dynhn.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o isis_pdu.o isis_pdu.c iso_checksum.c: In function ‘iso_csum_verify’: iso_checksum.c:75:3: warning: implicit declaration of function ‘fletcher_checksum’ [-Wimplicit-function-declaration] checksum = fletcher_checksum(buffer, len, offset); ^ In file included from iso_checksum.c:27:0: iso_checksum.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis_spf.c: In function ‘vid2string’: isis_spf.c:107:7: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] return rawlspid_print (vertex->N.id); ^ isis_spf.c:112:7: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] return sysid_print (vertex->N.id); ^ isis_spf.c: In function ‘remove_excess_adjs’: isis_spf.c:182:3: warning: implicit declaration of function ‘isis_list_delete_node’ [-Wimplicit-function-declaration] isis_list_delete_node (adjs, excess); ^ isis_spf.c: In function ‘isis_spf_add2tent’: isis_spf.c:413:4: warning: implicit declaration of function ‘isis_list_add_node_prev’ [-Wimplicit-function-declaration] isis_list_add_node_prev (spftree->tents, node, vertex); ^ isis_spf.c:434:4: warning: implicit declaration of function ‘isis_list_add_node_next’ [-Wimplicit-function-declaration] isis_list_add_node_next (spftree->tents, node, vertex); ^ isis_spf.c:381:21: warning: unused parameter ‘family’ [-Wunused-parameter] int depth, int family) ^ 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:4: 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 *’ EXT int isis_prefix2str (const struct isis_prefix *, char *, int); ^ isis_spf.c:868:4: 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 *’ EXT int isis_prefix2str (const struct isis_prefix *, char *, int); ^ In file included from isis_spf.c:27:0: isis_spf.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis_lsp.c: In function ‘lsp_inc_seqnum’: isis_lsp.c:292:3: warning: implicit declaration of function ‘fletcher_checksum’ [-Wimplicit-function-declaration] fletcher_checksum (STREAM_DATA (lsp->pdu) + 12, ^ isis_lsp.c: In function ‘lsp_update_data’: isis_lsp.c:342:7: warning: variable ‘retval’ set but not used [-Wunused-but-set-variable] int retval; ^ isis_lsp.c: In function ‘lsp_new_from_stream_ptr’: isis_lsp.c:422:15: warning: unused parameter ‘pdu_len’ [-Wunused-parameter] u_int16_t pdu_len, struct isis_lsp *lsp0, ^ isis_lsp.c: In function ‘lsp_build_nonpseudo’: isis_lsp.c:762:3: warning: implicit declaration of function ‘isis_list_add_list’ [-Wimplicit-function-declaration] isis_list_add_list (lsp->tlv_data.area_addrs, area->area_addrs); ^ In file included from isis_lsp.c:27:0: isis_lsp.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis_lsp.c:594:1: warning: ‘lsp_set_time’ defined but not used [-Wunused-function] lsp_set_time (struct isis_lsp *lsp) ^ isis_pdu.c: In function ‘process_lsp’: isis_pdu.c:825:5: warning: implicit declaration of function ‘fletcher_checksum’ [-Wimplicit-function-declaration] fletcher_checksum (STREAM_DATA (lsp->pdu) + 12, ^ isis_pdu.c:657:64: warning: unused parameter ‘ssnpa’ [-Wunused-parameter] process_lsp (int level, struct isis_circuit *circuit, u_char * ssnpa) ^ isis_pdu.c: In function ‘process_snp’: isis_pdu.c:1133:7: warning: implicit declaration of function ‘lsp_build_isis_list_nonzero_ht’ [-Wimplicit-function-declaration] lsp_build_isis_list_nonzero_ht (chdr->start_lsp_id, chdr->stop_lsp_id, ^ isis_pdu.c:1145:5: warning: implicit declaration of function ‘isis_list_delete_node’ [-Wimplicit-function-declaration] isis_list_delete_node (lsp_list, node2); ^ isis_pdu.c:963:26: warning: unused variable ‘adj’ [-Wunused-variable] struct isis_adjacency *adj; ^ isis_pdu.c:961:8: warning: variable ‘typechar’ set but not used [-Wunused-but-set-variable] char typechar = ' '; ^ isis_pdu.c:957:16: warning: unused parameter ‘ssnpa’ [-Wunused-parameter] u_char * ssnpa) ^ isis_pdu.c: In function ‘isis_send_pdu_p2p’: isis_pdu.c:1625:3: warning: implicit declaration of function ‘if_nametoindex’ [-Wimplicit-function-declaration] sa.sll_ifindex = if_nametoindex(config.nfacctd_isis_iface); ^ isis_pdu.c:1618:7: warning: variable ‘written’ set but not used [-Wunused-but-set-variable] int written = 1; ^ isis_pdu.c: In function ‘send_psnp’: isis_pdu.c:1730:11: warning: implicit declaration of function ‘lsp_build_isis_list_ssn’ [-Wimplicit-function-declaration] lsp_build_isis_list_ssn (circuit, list, circuit->area->lspdb[level - 1]); ^ In file included from isis_pdu.c:27:0: isis_pdu.c: At top level: isis.h:46:31: warning: ‘_isis_devices’ defined but not used [-Wunused-variable] static struct _devices_struct _isis_devices[] = { ^ isis_pdu.c:141:1: warning: ‘ip_match’ defined but not used [-Wunused-function] ip_match (struct list *left, struct list *right) ^ ar rc libisis.a isis.o checksum.o dict.o table.o prefix.o sockunion.o hash.o stream.o thread.o linklist.o isis_circuit.o isis_events.o isis_route.o isis_tlv.o isis_csm.o isis_flags.o isis_misc.o isisd.o isis_adjacency.o isis_dynhn.o isis_spf.o iso_checksum.o isis_lsp.o isis_pdu.o x86_64-pc-linux-gnu-ranlib libisis.a gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/isis' Making all in bmp gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/bmp' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bmp.o bmp.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I.. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c -o bmp_logdump.o bmp_logdump.c bmp_logdump.c: In function ‘bmp_log_msg’: bmp_logdump.c:39:16: warning: unused variable ‘amqp_ret’ [-Wunused-variable] int ret = 0, amqp_ret = 0; ^ bmp_logdump.c:37:34: warning: unused parameter ‘peer’ [-Wunused-parameter] int bmp_log_msg(struct bgp_peer *peer, struct bmp_data *bdata, void *log_data, char *event_type, int output, int log_type) ^ bmp_logdump.c:37:57: warning: unused parameter ‘bdata’ [-Wunused-parameter] int bmp_log_msg(struct bgp_peer *peer, struct bmp_data *bdata, void *log_data, char *event_type, int output, int log_type) ^ bmp_logdump.c:37:70: warning: unused parameter ‘log_data’ [-Wunused-parameter] int bmp_log_msg(struct bgp_peer *peer, struct bmp_data *bdata, void *log_data, char *event_type, int output, int log_type) ^ bmp_logdump.c:37:86: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bmp_log_msg(struct bgp_peer *peer, struct bmp_data *bdata, void *log_data, char *event_type, int output, int log_type) ^ bmp_logdump.c:37:114: warning: unused parameter ‘log_type’ [-Wunused-parameter] int bmp_log_msg(struct bgp_peer *peer, struct bmp_data *bdata, void *log_data, char *event_type, int output, int log_type) ^ bmp_logdump.c: In function ‘bmp_log_msg_stats’: bmp_logdump.c:109:8: warning: unused variable ‘bmp_msg_type’ [-Wunused-variable] char bmp_msg_type[] = "stats"; ^ bmp_logdump.c:107:40: warning: unused parameter ‘peer’ [-Wunused-parameter] int bmp_log_msg_stats(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_stats *blstats, char *event_type, int output, void *vobj) ^ bmp_logdump.c:107:63: warning: unused parameter ‘bdata’ [-Wunused-parameter] int bmp_log_msg_stats(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_stats *blstats, char *event_type, int output, void *vobj) ^ bmp_logdump.c:107:92: warning: unused parameter ‘blstats’ [-Wunused-parameter] int bmp_log_msg_stats(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_stats *blstats, char *event_type, int output, void *vobj) ^ bmp_logdump.c:107:107: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bmp_log_msg_stats(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_stats *blstats, char *event_type, int output, void *vobj) ^ bmp_logdump.c:107:123: warning: unused parameter ‘output’ [-Wunused-parameter] int bmp_log_msg_stats(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_stats *blstats, char *event_type, int output, void *vobj) ^ bmp_logdump.c:107:137: warning: unused parameter ‘vobj’ [-Wunused-parameter] int bmp_log_msg_stats(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_stats *blstats, char *event_type, int output, void *vobj) ^ bmp_logdump.c: In function ‘bmp_log_msg_init’: bmp_logdump.c:161:8: warning: unused variable ‘bmp_msg_type’ [-Wunused-variable] char bmp_msg_type[] = "init"; ^ bmp_logdump.c:159:39: warning: unused parameter ‘peer’ [-Wunused-parameter] int bmp_log_msg_init(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_init *blinit, char *event_type, int output, void *vobj) ^ bmp_logdump.c:159:62: warning: unused parameter ‘bdata’ [-Wunused-parameter] int bmp_log_msg_init(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_init *blinit, char *event_type, int output, void *vobj) ^ bmp_logdump.c:159:90: warning: unused parameter ‘blinit’ [-Wunused-parameter] int bmp_log_msg_init(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_init *blinit, char *event_type, int output, void *vobj) ^ bmp_logdump.c:159:104: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bmp_log_msg_init(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_init *blinit, char *event_type, int output, void *vobj) ^ bmp_logdump.c:159:120: warning: unused parameter ‘output’ [-Wunused-parameter] int bmp_log_msg_init(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_init *blinit, char *event_type, int output, void *vobj) ^ bmp_logdump.c:159:134: warning: unused parameter ‘vobj’ [-Wunused-parameter] int bmp_log_msg_init(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_init *blinit, char *event_type, int output, void *vobj) ^ bmp_logdump.c: In function ‘bmp_log_msg_term’: bmp_logdump.c:194:8: warning: unused variable ‘bmp_msg_type’ [-Wunused-variable] char bmp_msg_type[] = "term"; ^ bmp_logdump.c:192:39: warning: unused parameter ‘peer’ [-Wunused-parameter] int bmp_log_msg_term(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_term *blterm, char *event_type, int output, void *vobj) ^ bmp_logdump.c:192:62: warning: unused parameter ‘bdata’ [-Wunused-parameter] int bmp_log_msg_term(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_term *blterm, char *event_type, int output, void *vobj) ^ bmp_logdump.c:192:90: warning: unused parameter ‘blterm’ [-Wunused-parameter] int bmp_log_msg_term(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_term *blterm, char *event_type, int output, void *vobj) ^ bmp_logdump.c:192:104: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bmp_log_msg_term(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_term *blterm, char *event_type, int output, void *vobj) ^ bmp_logdump.c:192:120: warning: unused parameter ‘output’ [-Wunused-parameter] int bmp_log_msg_term(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_term *blterm, char *event_type, int output, void *vobj) ^ bmp_logdump.c:192:134: warning: unused parameter ‘vobj’ [-Wunused-parameter] int bmp_log_msg_term(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_term *blterm, char *event_type, int output, void *vobj) ^ bmp_logdump.c: In function ‘bmp_log_msg_peer_up’: bmp_logdump.c:238:8: warning: unused variable ‘bmp_msg_type’ [-Wunused-variable] char bmp_msg_type[] = "peer_up"; ^ bmp_logdump.c:236:42: warning: unused parameter ‘peer’ [-Wunused-parameter] int bmp_log_msg_peer_up(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_up *blpu, char *event_type, int output, void *vobj) ^ bmp_logdump.c:236:65: warning: unused parameter ‘bdata’ [-Wunused-parameter] int bmp_log_msg_peer_up(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_up *blpu, char *event_type, int output, void *vobj) ^ bmp_logdump.c:236:96: warning: unused parameter ‘blpu’ [-Wunused-parameter] int bmp_log_msg_peer_up(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_up *blpu, char *event_type, int output, void *vobj) ^ bmp_logdump.c:236:108: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bmp_log_msg_peer_up(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_up *blpu, char *event_type, int output, void *vobj) ^ bmp_logdump.c:236:124: warning: unused parameter ‘output’ [-Wunused-parameter] int bmp_log_msg_peer_up(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_up *blpu, char *event_type, int output, void *vobj) ^ bmp_logdump.c:236:138: warning: unused parameter ‘vobj’ [-Wunused-parameter] int bmp_log_msg_peer_up(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_up *blpu, char *event_type, int output, void *vobj) ^ bmp_logdump.c: In function ‘bmp_log_msg_peer_down’: bmp_logdump.c:286:8: warning: unused variable ‘bmp_msg_type’ [-Wunused-variable] char bmp_msg_type[] = "peer_down"; ^ bmp_logdump.c:284:44: warning: unused parameter ‘peer’ [-Wunused-parameter] int bmp_log_msg_peer_down(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_down *blpd, char *event_type, int output, void *vobj) ^ bmp_logdump.c:284:67: warning: unused parameter ‘bdata’ [-Wunused-parameter] int bmp_log_msg_peer_down(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_down *blpd, char *event_type, int output, void *vobj) ^ bmp_logdump.c:284:100: warning: unused parameter ‘blpd’ [-Wunused-parameter] int bmp_log_msg_peer_down(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_down *blpd, char *event_type, int output, void *vobj) ^ bmp_logdump.c:284:112: warning: unused parameter ‘event_type’ [-Wunused-parameter] int bmp_log_msg_peer_down(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_down *blpd, char *event_type, int output, void *vobj) ^ bmp_logdump.c:284:128: warning: unused parameter ‘output’ [-Wunused-parameter] int bmp_log_msg_peer_down(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_down *blpd, char *event_type, int output, void *vobj) ^ bmp_logdump.c:284:142: warning: unused parameter ‘vobj’ [-Wunused-parameter] int bmp_log_msg_peer_down(struct bgp_peer *peer, struct bmp_data *bdata, struct bmp_log_peer_down *blpd, char *event_type, int output, void *vobj) ^ bmp.c: In function ‘skinny_bmp_daemon’: bmp.c:118:5: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] ret = str_to_addr(config.nfacctd_bmp_ip, &addr); ^ bmp_logdump.c: In function ‘bmp_handle_dump_event’: bmp.c:123:5: warning: implicit declaration of function ‘addr_to_sa’ [-Wimplicit-function-declaration] slen = addr_to_sa((struct sockaddr *)&server, &addr, config.nfacctd_bmp_port); ^ bmp_logdump.c:454:5: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] pm_setproctitle("%s %s [%s]", config.type, "Core Process -- BMP Dump Writer", config.name); ^ bmp.c:216:5: 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:52:0, from bmp.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ bmp_logdump.c:436:8: warning: unused variable ‘event_type’ [-Wunused-variable] char event_type[] = "dump"; ^ bmp.c:218:5: 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:52:0, from bmp.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ bmp.c:221:5: 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:52:0, from bmp.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ In file included from bmp_logdump.c:29:0: bmp_logdump.c: At top level: bmp.h:41:20: warning: ‘bmp_msg_types’ defined but not used [-Wunused-variable] static const char *bmp_msg_types[] = { ^ bmp.h:89:20: warning: ‘bmp_term_reason_types’ defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^ bmp.h:116:20: warning: ‘bmp_stats_cnt_types’ defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^ bmp.c:251:5: warning: implicit declaration of function ‘sa_to_addr’ [-Wimplicit-function-declaration] sa_to_addr(&server, &srv_addr, &srv_port); ^ bmp.c:252:5: warning: implicit declaration of function ‘addr_to_str’ [-Wimplicit-function-declaration] addr_to_str(srv_string, &srv_addr); ^ bmp.c:408:50: 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:52:0, from bmp.c:26: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ bmp.c:421:46: 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:52:0, from bmp.c:26: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ bmp.c:425:50: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] peer->fd = accept(config.bmp_sock, (struct sockaddr *) &client, &clen); ^ In file included from ../pmacct.h:52:0, from bmp.c:26: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ bmp.c:428:7: warning: implicit declaration of function ‘ipv4_mapped_to_ipv4’ [-Wimplicit-function-declaration] ipv4_mapped_to_ipv4(&client); ^ bmp.c:69:20: warning: unused variable ‘multi_req6’ [-Wunused-variable] struct ipv6_mreq multi_req6; ^ bmp.c:60:42: warning: unused variable ‘bmp_packet_ptr’ [-Wunused-variable] char bmp_packet[BMP_MAX_PACKET_SIZE], *bmp_packet_ptr; ^ bmp.c: In function ‘bmp_process_msg_peer_up’: bmp.c:700:16: warning: value computed is not used [-Wunused-value] config.name), peer->addr_str; ^ bmp.c: In function ‘bmp_stats_cnt_get_data64’: bmp.c:1074:5: warning: implicit declaration of function ‘pm_ntohll’ [-Wimplicit-function-declaration] (*data) = pm_ntohll((*data)); ^ In file included from bmp.c:28:0: bmp.c: At top level: bmp.h:89:20: warning: ‘bmp_term_reason_types’ defined but not used [-Wunused-variable] static const char *bmp_term_reason_types[] = { ^ bmp.h:116:20: warning: ‘bmp_stats_cnt_types’ defined but not used [-Wunused-variable] static const char *bmp_stats_cnt_types[] = { ^ ar rc libbmp.a bmp.o bmp_logdump.o x86_64-pc-linux-gnu-ranlib libbmp.a gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src/bmp' gmake[2]: Entering directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src' x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c pmacct.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c strlcpy.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c addr.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c pmacctd.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c signals.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c util.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c plugin_hooks.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c server.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c acct.c signals.c: In function ‘handle_falling_child’: signals.c:63:9: warning: implicit declaration of function ‘delete_pipe_channel’ [-Wimplicit-function-declaration] delete_pipe_channel(list->pipe[1]); ^ signals.c: In function ‘my_sigint_handler’: addr.c: In function ‘str_to_addr_mask’: signals.c:119:3: warning: implicit declaration of function ‘fill_pipe_buffer’ [-Wimplicit-function-declaration] fill_pipe_buffer(); ^ addr.c:81:24: warning: variable ‘net’ set but not used [-Wunused-but-set-variable] char *delim = NULL, *net = NULL, *mask = NULL; ^ signals.c:99:28: warning: unused parameter ‘signum’ [-Wunused-parameter] void my_sigint_handler(int signum) ^ 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; ^ util.c: In function ‘extract_token’: util.c:93:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (delim_ptr = strchr(*string, delim)) { ^ pmacct.c: In function ‘version_client’: pmacct.c:112:27: warning: unused parameter ‘prog’ [-Wunused-parameter] void version_client(char *prog) ^ pmacct.c: In function ‘pmc_sanitize_buf’: util.c: In function ‘open_logfile’: pmacct.c:124:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (x < strlen(buf)) { ^ util.c:370:8: warning: unused variable ‘timebuf’ [-Wunused-variable] char timebuf[SRVBUFLEN], buf[LARGEBUFLEN]; ^ util.c: In function ‘close_print_output_file’: util.c:408:13: warning: unused variable ‘offset’ [-Wunused-variable] u_int16_t offset; ^ util.c: In function ‘handle_dynname_internal_strings’: util.c:570:5: warning: implicit declaration of function ‘addr_to_str’ [-Wimplicit-function-declaration] if (prim_ptrs && prim_ptrs->pbgp) addr_to_str(peer_src_ip, &prim_ptrs->pbgp->peer_src_ip); ^ util.c:563:14: warning: unused variable ‘howmany’ [-Wunused-variable] int len, howmany; ^ util.c:593:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] if (prim_ptrs && prim_ptrs->data) snprintf(buf, newlen, "%llu", prim_ptrs->data->primitives.tag); ^ util.c:593:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] util.c:594:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] else snprintf(buf, newlen, "%llu", zero_tag); ^ util.c:594:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] server.c: In function ‘process_query_data’: util.c:586:14: warning: unused variable ‘howmany’ [-Wunused-variable] int len, howmany; ^ server.c:156:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (idx = 0; idx < config.buckets; idx++) { ^ util.c:614:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] if (prim_ptrs && prim_ptrs->data) snprintf(buf, newlen, "%llu", prim_ptrs->data->primitives.tag2); ^ util.c:614:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] util.c:615:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] else snprintf(buf, newlen, "%llu", zero_tag); ^ util.c:615:5: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘pm_id_t’ [-Wformat=] server.c:201:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (idx = 0; idx < config.buckets; idx++) { ^ util.c:607:14: warning: unused variable ‘howmany’ [-Wunused-variable] int len, howmany; ^ util.c: In function ‘write_pid_file_plugin’: util.c:700:26: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(fname, 0, sizeof(fname)); ^ server.c:331:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (idx = 0; idx < config.buckets; idx++) { ^ util.c: In function ‘file_lock’: util.c:753:3: warning: implicit declaration of function ‘flock’ [-Wimplicit-function-declaration] ret = flock(fd, LOCK_EX); ^ util.c: In function ‘sanitize_buf’: util.c:795:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (x < strlen(buf)) { ^ server.c:407:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (idx = 0; idx < config.cpptrs.num; idx++) { ^ server.c:408:7: 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:327:8: note: expected ‘char *’ but argument is of type ‘u_char *’ size_t strlcpy(char *, const char *, size_t); ^ util.c: In function ‘Setsocksize’: util.c:852:3: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] getsockopt(s, level, optname, &saved, &len); ^ server.c:438:5: warning: label ‘send_pldt_dummy’ defined but not used [-Wunused-label] send_pldt_dummy: ^ In file included from pmacct.h:52:0, from util.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ server.c:68:29: warning: unused variable ‘tmpbuf’ [-Wunused-variable] struct acc *acc_elem = 0, tmpbuf; ^ server.c:66:57: warning: unused parameter ‘len’ [-Wunused-parameter] void process_query_data(int sd, unsigned char *buf, int len, struct extra_primitives *extras, int datasize, int forked) ^ plugin_hooks.c: In function ‘load_plugins’: pmacctd.c: In function ‘main’: pmacctd.c:352:3: warning: implicit declaration of function ‘initsetproctitle’ [-Wimplicit-function-declaration] initsetproctitle(argc, argv, envp); ^ plugin_hooks.c:86:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (list->cfg.pipe_size < min_sz) list->cfg.pipe_size = min_sz; ^ plugin_hooks.c:87:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (list->cfg.buffer_size < min_sz) list->cfg.buffer_size = min_sz; ^ util.c: In function ‘copy_packet_ptrs’: util.c:1264:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] offset = (int) new_pptrs->packet_ptr - (int) pptrs->packet_ptr; ^ plugin_hooks.c:91:7: 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); ^ util.c:1264:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] offset = (int) new_pptrs->packet_ptr - (int) pptrs->packet_ptr; ^ In file included from pmacct.h:52:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ util.c:1269:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (pptrs->tlh_ptr) ^ plugin_hooks.c:92:7: 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:52:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ pmacct.c: In function ‘main’: util.c: In function ‘load_allow_file’: pmacct.c:981:4: warning: pointer targets in passing argument 1 of ‘strlcpy’ differ in signedness [-Wpointer-sign] count_token[count_index], MAX_CUSTOM_PRIMITIVE_NAMELEN); ^ In file included from pmacct.c:25:0: pmacct.h:327:8: note: expected ‘char *’ but argument is of type ‘u_char *’ size_t strlcpy(char *, const char *, size_t); ^ util.c:1356:11: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] if (str_to_addr(buf, &t->table[index])) index++; ^ plugin_hooks.c:106:7: 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); ^ pmacctd.c:540:56: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if ((list->cfg.what_to_count & COUNT_SRC_HOST) && (list->cfg.what_to_count & COUNT_SRC_NET) || ^ util.c: In function ‘load_bgp_md5_file’: In file included from pmacct.h:52:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ util.c:1388:10: warning: unused variable ‘endptr’ [-Wunused-variable] char *endptr, *token; ^ plugin_hooks.c:107:7: 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); ^ util.c: In function ‘check_allow’: pmacctd.c:582:2: warning: implicit declaration of function ‘bgp_config_checks’ [-Wimplicit-function-declaration] bgp_config_checks(&list->cfg); ^ In file included from pmacct.h:52:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ util.c:1438:9: warning: implicit declaration of function ‘ip6_addr_cmp’ [-Wimplicit-function-declaration] if (!ip6_addr_cmp(&(((struct sockaddr_in6 *)sa)->sin6_addr), &allow->table[index].address.ipv6)) ^ pmacctd.c:593:5: warning: implicit declaration of function ‘init_classifiers’ [-Wimplicit-function-declaration] init_classifiers(config.classifiers_path); ^ pmacctd.c:594:5: warning: implicit declaration of function ‘init_conntrack_table’ [-Wimplicit-function-declaration] init_conntrack_table(); ^ plugin_hooks.c:114:9: 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); ^ pmacct.c:1167:8: 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:144:12: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ In file included from pmacct.h:52:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ pmacct.c:1167:8: 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:144:12: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ util.c: In function ‘load_labels’: pmacctd.c:664:5: 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:52:0, from pmacctd.c:26: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ util.c:1538:23: warning: unused parameter ‘filename’ [-Wunused-parameter] int load_labels(char *filename, struct pretag_label_filter *filter, char *value_ptr) ^ plugin_hooks.c:115:9: 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:52:0, from plugin_hooks.c:25: /usr/include/sys/socket.h:219:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int getsockopt (int __fd, int __level, int __optname, ^ util.c: In function ‘load_pkt_len_distrib_bins’: util.c:1608:34: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] config.pkt_len_distrib_bins[0] = pkt_len_distrib_unknown; ^ pmacctd.c:817:3: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] if (!config.proc_name) pm_setproctitle("%s [%s]", "Core Process", "default"); ^ pmacctd.c:98:20: warning: unused variable ‘ret’ [-Wunused-variable] int index, logf, ret; ^ pmacctd.c: In function ‘NF_find_id’: pmacct.c:1338:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (q.num = 0; (q.num < strnum) && (q.num < MAX_QUERIES); q.num++) { ^ pmacctd.c:863:34: warning: unused parameter ‘t’ [-Wunused-parameter] void NF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ pmacctd.c:863:57: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void NF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ util.c: In function ‘compose_json’: pmacctd.c:863:73: warning: unused parameter ‘tag’ [-Wunused-parameter] void NF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ pmacct.c:1360:11: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] if (!str_to_addr(match_string_token, &request.data.src_ip)) { ^ util.c:2217:30: warning: unused parameter ‘wtc’ [-Wunused-parameter] char *compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacctd.c:863:87: warning: unused parameter ‘tag2’ [-Wunused-parameter] void NF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ pmacctd.c: In function ‘SF_find_id’: pmacctd.c:867:34: warning: unused parameter ‘t’ [-Wunused-parameter] void SF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ util.c:2217:45: warning: unused parameter ‘wtc_2’ [-Wunused-parameter] char *compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacctd.c:867:57: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void SF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ pmacct.c:1390:11: warning: implicit declaration of function ‘string_etheraddr’ [-Wimplicit-function-declaration] res = string_etheraddr(match_string_token, ethaddr); ^ pmacctd.c:867:73: warning: unused parameter ‘tag’ [-Wunused-parameter] void SF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ util.c:2217:61: warning: unused parameter ‘flow_type’ [-Wunused-parameter] char *compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacctd.c:867:87: warning: unused parameter ‘tag2’ [-Wunused-parameter] void SF_find_id(struct id_table *t, struct packet_ptrs *pptrs, pm_id_t *tag, pm_id_t *tag2) ^ util.c:2217:95: warning: unused parameter ‘pbase’ [-Wunused-parameter] char *compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacct.c:1415:4: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘u_int16_t *’ [-Wformat=] sscanf(match_string_token, "%x", &request.data.etype); ^ util.c:2218:46: warning: unused parameter ‘pbgp’ [-Wunused-parameter] struct pkt_bgp_primitives *pbgp, struct pkt_nat_primitives *pnat, struct pkt_mpls_primitives *pmpls, ^ In file included from pmacctd.c:27:0: pmacctd.c: At top level: util.c:2218:79: warning: unused parameter ‘pnat’ [-Wunused-parameter] struct pkt_bgp_primitives *pbgp, struct pkt_nat_primitives *pnat, struct pkt_mpls_primitives *pmpls, ^ pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ util.c:2218:113: warning: unused parameter ‘pmpls’ [-Wunused-parameter] struct pkt_bgp_primitives *pbgp, struct pkt_nat_primitives *pnat, struct pkt_mpls_primitives *pmpls, ^ util.c:2219:11: warning: unused parameter ‘pcust’ [-Wunused-parameter] char *pcust, struct pkt_vlen_hdr_primitives *pvlen, pm_counter_t bytes_counter, ^ util.c:2219:50: warning: unused parameter ‘pvlen’ [-Wunused-parameter] char *pcust, struct pkt_vlen_hdr_primitives *pvlen, pm_counter_t bytes_counter, ^ plugin_hooks.c: In function ‘exec_plugins’: util.c:2219:70: warning: unused parameter ‘bytes_counter’ [-Wunused-parameter] char *pcust, struct pkt_vlen_hdr_primitives *pvlen, pm_counter_t bytes_counter, ^ plugin_hooks.c:307:5: 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) && ^ util.c:2220:18: warning: unused parameter ‘packet_counter’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime, ^ In file included from plugin_hooks.c:28:0: plugin_hooks.h:110:9: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT int evaluate_filters(struct aggregate_filter *, char *, struct pcap_pkthdr *); ^ util.c:2220:47: warning: unused parameter ‘flow_counter’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime, ^ util.c:2220:71: warning: unused parameter ‘tcp_flags’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime, ^ util.c:2220:98: warning: unused parameter ‘basetime’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime, ^ util.c:2221:27: warning: unused parameter ‘stitch’ [-Wunused-parameter] struct pkt_stitching *stitch) ^ util.c: In function ‘write_and_free_json’: pmacct.c:1777:4: warning: implicit declaration of function ‘strptime’ [-Wimplicit-function-declaration] strptime(match_string_token, "%Y-%m-%d %H:%M:%S", &tmp); ^ util.c:2228:32: warning: unused parameter ‘f’ [-Wunused-parameter] void write_and_free_json(FILE *f, void *obj) ^ util.c:2228:41: warning: unused parameter ‘obj’ [-Wunused-parameter] void write_and_free_json(FILE *f, void *obj) ^ pmacct.c:1806:13: 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)) { ^ util.c: In function ‘write_and_free_json_amqp’: In file included from pmacct.h:36:0, from pmacct.c:25: /usr/include/string.h:144:12: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ util.c:2233:36: warning: unused parameter ‘amqp_log’ [-Wunused-parameter] int write_and_free_json_amqp(void *amqp_log, void *obj) ^ util.c:2233:52: warning: unused parameter ‘obj’ [-Wunused-parameter] int write_and_free_json_amqp(void *amqp_log, void *obj) ^ util.c: In function ‘compose_timestamp’: util.c:2251:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] if (usec) snprintf(buf, buflen, "%s.%u", tmpbuf, tv->tv_usec); ^ util.c:2251:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] pmacct.c:1926:42: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if ((what_to_count & COUNT_SRC_HOST) && (what_to_count & COUNT_SRC_NET) || ^ plugin_hooks.c: In function ‘insert_pipe_channel’: plugin_hooks.c:423:18: warning: unused variable ‘x’ [-Wunused-variable] int index = 0, x; ^ pmacct.c:1966:47: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (extras.off_custom_primitives) pcust = ((u_char *)elem + extras.off_custom_primitives); ^ util.c: In function ‘custom_primitives_reconcile’: pmacct.c:1979:4: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘pm_id_t’ [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-10llu ", acc_elem->primitives.tag); ^ util.c:2367:7: 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:144:12: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern int strcmp (const char *__s1, const char *__s2) ^ pmacct.c:1980:4: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘pm_id_t’ [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%llu", write_sep(sep_ptr, &count), acc_elem->primitives.tag); ^ util.c: In function ‘custom_primitive_header_print’: pmacct.c:1984:4: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘pm_id_t’ [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-10llu ", acc_elem->primitives.tag2); ^ util.c:2422:2: 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)); ^ pmacct.c:1985:4: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘pm_id_t’ [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%llu", write_sep(sep_ptr, &count), acc_elem->primitives.tag2); ^ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ util.c:2422:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] 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)); ^ pmacct.c:1989:135: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-16s ", (acc_elem->primitives.class == 0 || acc_elem->primitives.class > ct_idx || ^ plugin_hooks.c: In function ‘evaluate_filters’: util.c:2422:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:1992:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (acc_elem->primitives.class == 0 || acc_elem->primitives.class > ct_idx || ^ plugin_hooks.c:624:5: 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; ^ util.c:2422:129: warning: signed and unsigned type in conditional expression [-Wsign-compare] 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 /usr/include/pcap.h:43:0, from pmacct.h:30, from plugin_hooks.c:25: /usr/include/pcap/pcap.h:434:7: note: expected ‘const u_char *’ but argument is of type ‘char *’ u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int); ^ util.c:2422:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-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)); ^ util.c:2422:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:2012:4: warning: implicit declaration of function ‘etheraddr_string’ [-Wimplicit-function-declaration] etheraddr_string(acc_elem->primitives.eth_shost, ethernet_address); ^ util.c:2430:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c memory.c util.c:2430:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ util.c:2430:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->ptr->len > strlen(cp_entry->ptr->name) ? cp_entry->ptr->len : strlen(cp_entry->ptr->name)); ^ util.c:2430:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] util.c:2444:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ plugin_hooks.c: In function ‘pkt_payload_clean’: util.c:2444:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^ plugin_hooks.c:763:43: warning: unused parameter ‘len’ [-Wunused-parameter] int pkt_payload_clean(void *ppayload, int len) ^ util.c:2444:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2176:11: warning: implicit declaration of function ‘addr_to_str’ [-Wimplicit-function-declaration] addr_to_str(ip_address, &pbgp->peer_src_ip); ^ plugin_hooks.c: In function ‘pkt_msg_clean’: util.c:2444:86: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^ plugin_hooks.c:770:39: warning: unused parameter ‘len’ [-Wunused-parameter] int pkt_msg_clean(void *ppayload, int len) ^ util.c:2444:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^ util.c:2444:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] plugin_hooks.c: In function ‘pkt_extras_clean’: plugin_hooks.c:777:41: warning: unused parameter ‘len’ [-Wunused-parameter] int pkt_extras_clean(void *pextras, int len) ^ util.c:2453:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ util.c:2453:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^ util.c:2453:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ In file included from plugin_hooks.c:26:0: plugin_hooks.c: At top level: util.c:2453:86: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^ pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ util.c:2453:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name)); ^ util.c:2453:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] util.c: In function ‘custom_primitive_value_print’: util.c:2473:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2482:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_start.tv_usec); ^ util.c:2473:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] 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), ^ pmacct.c:2482:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] util.c:2473:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2495:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] snprintf(buf2, SRVBUFLEN, "%s.%u", buf1, pnat->timestamp_end.tv_usec); ^ pmacct.c:2495:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] util.c:2473:138: warning: signed and unsigned type in conditional expression [-Wsign-compare] 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), ^ util.c:2474:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->ptr->semantics]); ^ util.c:2474:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:2526:11: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pm_counter_t’ [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-10lu ", acc_elem->pkt_num); ^ pmacct.c:2527:11: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘pm_counter_t’ [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%lu", write_sep(sep_ptr, &count), acc_elem->pkt_num); ^ util.c:2502:9: warning: implicit declaration of function ‘pm_ntohll’ [-Wimplicit-function-declaration] st64 = pm_ntohll(t64); ^ acct.c: In function ‘search_accounting_structure’: pmacct.c:2530:6: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pm_counter_t’ [-Wformat=] if (want_output & PRINT_OUTPUT_FORMATTED) printf("%-10lu ", acc_elem->flo_num); ^ acct.c:38:35: warning: unused variable ‘pvlen’ [-Wunused-variable] struct pkt_vlen_hdr_primitives *pvlen = prim_ptrs->pvlen; ^ util.c:2509:2: 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), ^ acct.c: In function ‘compare_accounting_structure’: In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ acct.c:88:7: warning: implicit declaration of function ‘cache_to_pkt_bgp_primitives’ [-Wimplicit-function-declaration] cache_to_pkt_bgp_primitives(&tmp_pbgp, elem->cbgp, config.what_to_count); ^ pmacct.c:2531:6: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘pm_counter_t’ [-Wformat=] else if (want_output & PRINT_OUTPUT_CSV) printf("%s%lu", write_sep(sep_ptr, &count), acc_elem->flo_num); ^ util.c:2509:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2535:6: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘pm_counter_t’ [-Wformat=] printf("%s%lu\n", write_sep(sep_ptr, &count), acc_elem->pkt_len); ^ util.c:2510:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->ptr->semantics]); ^ util.c:2510:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] acct.c: In function ‘insert_accounting_structure’: pmacct.c:2569:7: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘__time_t’ [-Wformat=] if (table_reset_stamp.tv_sec) printf("%u\n", cycle_stamp.tv_sec - table_reset_stamp.tv_sec); ^ acct.c:226:9: warning: implicit declaration of function ‘pkt_to_cache_bgp_primitives’ [-Wimplicit-function-declaration] pkt_to_cache_bgp_primitives(elem_acc->cbgp, pbgp, config.what_to_count); ^ util.c:2542:9: 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), ^ acct.c:228:7: warning: implicit declaration of function ‘free_cache_bgp_primitives’ [-Wimplicit-function-declaration] else free_cache_bgp_primitives(&elem_acc->cbgp); ^ In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ util.c:2542:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^ pmacct.c:2635:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pm_counter_t’ [-Wformat=] if (which_counter == 0) printf("%lu\n", acc_elem->pkt_len); ^ acct.c:320:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (current_pool->space_left >= sizeof(struct acc)) { ^ util.c:2542:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2636:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pm_counter_t’ [-Wformat=] else if (which_counter == 1) printf("%lu\n", acc_elem->pkt_num); ^ util.c:2542:88: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^ pmacct.c:2637:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pm_counter_t’ [-Wformat=] else if (which_counter == 2) printf("%lu %lu %lu %lu\n", acc_elem->pkt_num, acc_elem->pkt_len, acc_elem->flo_num, acc_elem->time_start.tv_sec); ^ pmacct.c:2637:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘pm_counter_t’ [-Wformat=] pmacct.c:2637:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pm_counter_t’ [-Wformat=] util.c:2543:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->ptr->semantics]); ^ util.c:2543:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:2638:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘pm_counter_t’ [-Wformat=] else if (which_counter == 3) printf("%lu\n", acc_elem->flo_num); ^ In file included from acct.c:27:0: acct.c: At top level: util.c:2554:7: warning: implicit declaration of function ‘etheraddr_string’ [-Wimplicit-function-declaration] etheraddr_string(in+cp_entry->off, eth_str); ^ crc32.c:49:21: warning: ‘crc_32_tab’ defined but not used [-Wunused-variable] static unsigned int crc_32_tab[] = { /* CRC polynomial 0xedb88320 */ ^ crc32.c:84:21: warning: ‘__crc32’ defined but not used [-Wunused-variable] static unsigned int __crc32 = 0x0U; ^ pmacct.c:2650:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘u_int32_t’ [-Wformat=] if (which_counter == 0) printf("%lu\n", bcnt); ^ util.c:2557:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2651:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘u_int32_t’ [-Wformat=] else if (which_counter == 1) printf("%lu\n", pcnt); ^ util.c:2557:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^ pmacct.c:2652:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘u_int32_t’ [-Wformat=] else if (which_counter == 2) printf("%lu %lu %lu %u\n", pcnt, bcnt, fcnt, num_counters); ^ pmacct.c:2652:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u_int32_t’ [-Wformat=] util.c:2557:9: 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), ^ pmacct.c:2652:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘u_int32_t’ [-Wformat=] In file included from pmacct.h:36:0, from util.c:25: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:2653:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘u_int32_t’ [-Wformat=] else if (which_counter == 3) printf("%lu\n", fcnt); ^ util.c:2557:88: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->ptr->name) ? len : strlen(cp_entry->ptr->name), ^ util.c:2558:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->ptr->semantics]); ^ util.c:2558:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:2684:9: warning: unused variable ‘pldt_eff’ [-Wunused-variable] int pldt_eff=0; ^ pmacct.c:657: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 ‘Recv’: util.c: In function ‘vlen_prims_debug’: pmacct.c:2766:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((u_int32_t)elem+num) > (u_int32_t)sbrk(0)) sbrk(LARGEBUFLEN); ^ util.c:2711:5: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘pm_cfgreg_t’ [-Wformat=] printf("LABEL #%u: type: %llx len: %u val: %s\n", x, label_ptr->type, label_ptr->len, ptr); ^ pmacct.c:2766:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((u_int32_t)elem+num) > (u_int32_t)sbrk(0)) sbrk(LARGEBUFLEN); ^ pmacct.c: In function ‘check_data_sizes’: pmacct.c:2782:5: 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); ^ pmacct.c:2789:5: 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)); ^ pmacct.c: In function ‘pmc_bgp_str2rd’: pmacct.c:2959:13: warning: unused variable ‘tmp16’ [-Wunused-variable] u_int16_t tmp16; ^ pmacct.c: In function ‘pmc_compose_json’: pmacct.c:3502:34: warning: unused parameter ‘wtc’ [-Wunused-parameter] char *pmc_compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacct.c:3502:49: warning: unused parameter ‘wtc_2’ [-Wunused-parameter] char *pmc_compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacct.c:3502:65: warning: unused parameter ‘flow_type’ [-Wunused-parameter] char *pmc_compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacct.c:3502:99: warning: unused parameter ‘pbase’ [-Wunused-parameter] char *pmc_compose_json(u_int64_t wtc, u_int64_t wtc_2, u_int8_t flow_type, struct pkt_primitives *pbase, ^ pmacct.c:3503:46: warning: unused parameter ‘pbgp’ [-Wunused-parameter] struct pkt_bgp_primitives *pbgp, struct pkt_nat_primitives *pnat, struct pkt_mpls_primitives *pmpls, ^ pmacct.c:3503:79: warning: unused parameter ‘pnat’ [-Wunused-parameter] struct pkt_bgp_primitives *pbgp, struct pkt_nat_primitives *pnat, struct pkt_mpls_primitives *pmpls, ^ pmacct.c:3503:113: warning: unused parameter ‘pmpls’ [-Wunused-parameter] struct pkt_bgp_primitives *pbgp, struct pkt_nat_primitives *pnat, struct pkt_mpls_primitives *pmpls, ^ pmacct.c:3504:11: warning: unused parameter ‘pcust’ [-Wunused-parameter] char *pcust, struct pkt_vlen_hdr_primitives *pvlen, pm_counter_t bytes_counter, ^ util.c: In function ‘timeval_cmp’: util.c:1071:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ pmacct.c:3504:50: warning: unused parameter ‘pvlen’ [-Wunused-parameter] char *pcust, struct pkt_vlen_hdr_primitives *pvlen, pm_counter_t bytes_counter, ^ pmacct.c:3504:70: warning: unused parameter ‘bytes_counter’ [-Wunused-parameter] char *pcust, struct pkt_vlen_hdr_primitives *pvlen, pm_counter_t bytes_counter, ^ pmacct.c:3505:18: warning: unused parameter ‘packet_counter’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime) ^ pmacct.c:3505:47: warning: unused parameter ‘flow_counter’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime) ^ pmacct.c:3505:71: warning: unused parameter ‘tcp_flags’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime) ^ pmacct.c:3505:98: warning: unused parameter ‘basetime’ [-Wunused-parameter] pm_counter_t packet_counter, pm_counter_t flow_counter, u_int32_t tcp_flags, struct timeval *basetime) ^ pmacct.c: In function ‘pmc_compose_timestamp’: pmacct.c:3521:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] if (usec) snprintf(buf, buflen, "%s.%u", tmpbuf, tv->tv_usec); ^ pmacct.c:3521:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__suseconds_t’ [-Wformat=] pmacct.c: In function ‘pmc_custom_primitive_header_print’: pmacct.c:3535:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3535:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name)); ^ pmacct.c:3535:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3535:114: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name)); ^ pmacct.c:3535:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name)); ^ pmacct.c:3535:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:3543:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3543:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3543:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", cp_entry->len > strlen(cp_entry->name) ? cp_entry->len : strlen(cp_entry->name)); ^ pmacct.c:3543:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:3557:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3557:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^ pmacct.c:3557:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3557:81: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^ pmacct.c:3557:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^ pmacct.c:3557:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:3566:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3566:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^ pmacct.c:3566:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3566:81: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^ pmacct.c:3566:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] snprintf(format, SRVBUFLEN, "%%-%u", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name)); ^ pmacct.c:3566:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c: In function ‘pmc_custom_primitive_value_print’: pmacct.c:3586:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3586:72: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name), ^ pmacct.c:3586:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c ll.c pmacct.c:3586:123: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", cps_flen[cp_entry->len] > strlen(cp_entry->name) ? cps_flen[cp_entry->len] : strlen(cp_entry->name), ^ pmacct.c:3587:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->semantics]); ^ pmacct.c:3587:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:3615:9: warning: implicit declaration of function ‘pm_ntohll’ [-Wimplicit-function-declaration] st64 = pm_ntohll(t64); ^ pmacct.c:3622:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3622:2: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3623:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->semantics]); ^ pmacct.c:3623:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:3655:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3655:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^ pmacct.c:3655:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3655:83: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^ pmacct.c:3656:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->semantics]); ^ pmacct.c:3656:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c:3670:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3670:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^ pmacct.c:3670:9: 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:398:15: note: expected ‘const char *’ but argument is of type ‘u_char *’ extern size_t strlen (const char *__s) ^ pmacct.c:3670:83: warning: signed and unsigned type in conditional expression [-Wsign-compare] snprintf(format, SRVBUFLEN, "%%-%u%s", len > strlen(cp_entry->name) ? len : strlen(cp_entry->name), ^ pmacct.c:3671:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] cps_type[cp_entry->semantics]); ^ pmacct.c:3671:25: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] pmacct.c: In function ‘pmc_bgp_rd2str’: pmacct.c:2952:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c cfg.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c imt_plugin.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c log.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c pkt_handlers.c x86_64-pc-linux-gnu-gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\ --prefix=/usr\ --build=x86_64-pc-linux-gnu\ --host=x86_64-pc-linux-gnu\ --mandir=/usr/share/man\ --infodir=/usr/share/info\ --datadir=/usr/share\ --sysconfdir=/etc\ --localstatedir=/var/lib\ --libdir=/usr/lib64\ --disable-64bit\ --disable-debug\ --disable-geoip\ --enable-ipv6\ --disable-mongodb\ --disable-mysql\ --disable-pgsql\ --disable-sqlite3\ --disable-threads\ --disable-ulog\ --disable-debug\" -DPROGNAME=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 -DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DRETSIGTYPE=void -DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1 -I. -I. -O0 -march=native -Wformat -Werror=format-security -g0 -O0 -g -W -Wall -c cfg_handlers.c 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 ‘ieee_802_11_handler’: ll.c:335:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (caplen < hdrlen) { ^ ll.c: In function ‘null_handler’: ll.c:390:11: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] u_char *p; ^ ll.c: In function ‘sll_handler’: ll.c:446: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:488:47: warning: unused parameter ‘h’ [-Wunused-parameter] u_char *llc_handler(const struct pcap_pkthdr *h, u_int caplen, register u_char *buf, register struct packet_ptrs *pptrs) ^ In file included from ll.c:27:0: ll.c: At top level: pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ imt_plugin.c: In function ‘imt_plugin’: imt_plugin.c:70:3: warning: implicit declaration of function ‘pm_setproctitle’ [-Wimplicit-function-declaration] pm_setproctitle("%s [%s]", "IMT Plugin", config.name); ^ imt_plugin.c:127:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (config.memory_pool_size < sizeof(struct acc)) { ^ imt_plugin.c:216:7: 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:52:0, from imt_plugin.c:25: /usr/include/sys/socket.h:243:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ imt_plugin.c:392:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pcust = ((u_char *)data + extras.off_custom_primitives); ^ imt_plugin.c:421:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dataptr = (unsigned char *) data; ^ imt_plugin.c:52:7: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^ imt_plugin.c: In function ‘exit_now’: imt_plugin.c:437:19: warning: unused parameter ‘signum’ [-Wunused-parameter] void exit_now(int signum) ^ imt_plugin.c: In function ‘free_extra_allocs’: imt_plugin.c:502:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (idx = 0; idx < config.buckets; idx++) { ^ imt_plugin.c:504:5: warning: implicit declaration of function ‘free_cache_bgp_primitives’ [-Wimplicit-function-declaration] if (acc_elem->cbgp) free_cache_bgp_primitives(&acc_elem->cbgp); ^ cfg.c: In function ‘sanitize_cfg’: cfg.c:176:24: warning: unused variable ‘got_first’ [-Wunused-variable] int rindex = 0, len, got_first; ^ In file included from cfg.c:27:0: cfg.c: At top level: pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ log.c: In function ‘Log’: log.c:46:5: error: format not a string literal and no format arguments [-Werror=format-security] if (config.syslog) syslog(level, syslog_string); ^ cc1: some warnings being treated as errors Makefile:222: recipe for target 'log.o' failed gmake[2]: *** [log.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... cfg_handlers.c: In function ‘cfg_key_debug’: cfg_handlers.c:44:25: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_debug(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_syslog’: cfg_handlers.c:66:26: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_syslog(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_aggregate’: cfg_handlers.c:148:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (count_token = extract_token(&value_ptr, ',')) { ^ cfg_handlers.c: In function ‘cfg_key_pre_tag2_filter’: cfg_handlers.c:333:12: warning: unused variable ‘neg’ [-Wunused-variable] u_int8_t neg; ^ cfg_handlers.c:332:20: warning: unused variable ‘endptr_r’ [-Wunused-variable] char *endptr_v, *endptr_r; ^ cfg_handlers.c:332:9: warning: unused variable ‘endptr_v’ [-Wunused-variable] char *endptr_v, *endptr_r; ^ cfg_handlers.c:330:22: warning: unused variable ‘range’ [-Wunused-variable] pm_id_t value = 0, range = 0; ^ cfg_handlers.c:330:11: warning: unused variable ‘value’ [-Wunused-variable] pm_id_t value = 0, range = 0; ^ cfg_handlers.c:329:23: warning: unused variable ‘range_ptr’ [-Wunused-variable] char *count_token, *range_ptr; ^ cfg_handlers.c:329:9: warning: unused variable ‘count_token’ [-Wunused-variable] char *count_token, *range_ptr; ^ cfg_handlers.c: In function ‘cfg_key_imt_path’: cfg_handlers.c:513:28: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_imt_path(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_imt_passwd’: cfg_handlers.c:532:30: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_imt_passwd(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_db’: cfg_handlers.c:630:26: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_db(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_table’: cfg_handlers.c:660:5: 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:730:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = strchr(ptr, '%')) { ^ cfg_handlers.c: In function ‘cfg_key_print_output_file_append’: cfg_handlers.c:809:44: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_print_output_file_append(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_table_schema’: cfg_handlers.c:831:36: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_table_schema(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_data’: cfg_handlers.c:902:28: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_data(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_host’: cfg_handlers.c:921:28: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_host(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_recovery_backup_host’: cfg_handlers.c:940:44: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_recovery_backup_host(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_trigger_exec’: cfg_handlers.c:984:36: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_trigger_exec(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_user’: cfg_handlers.c:1030:28: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_user(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_passwd’: cfg_handlers.c:1049:30: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_passwd(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_optimize_clauses’: cfg_handlers.c:1125:40: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_optimize_clauses(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_recovery_logfile’: cfg_handlers.c:1178:40: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_recovery_logfile(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_history_since_epoch’: cfg_handlers.c:1250:43: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_history_since_epoch(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_dont_try_update’: cfg_handlers.c:1297:39: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_dont_try_update(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_preprocess’: cfg_handlers.c:1319:34: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_preprocess(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_preprocess_type’: cfg_handlers.c:1338:39: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_preprocess_type(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_amqp_exchange_type’: cfg_handlers.c:1411:38: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_amqp_exchange_type(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_amqp_persistent_msg’: cfg_handlers.c:1430:39: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_amqp_persistent_msg(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_amqp_heartbeat_interval’: cfg_handlers.c:1478:43: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_amqp_heartbeat_interval(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_amqp_vhost’: cfg_handlers.c:1500:30: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_amqp_vhost(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_aggressive_classification’: cfg_handlers.c:1544:49: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_aggressive_classification(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_locking_style’: cfg_handlers.c:1566:37: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_locking_style(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_sql_use_copy’: cfg_handlers.c:1585:32: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sql_use_copy(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_timestamps_secs’: cfg_handlers.c:1632:35: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_timestamps_secs(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_pro_rating’: cfg_handlers.c:1727:38: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfacctd_pro_rating(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_stitching’: cfg_handlers.c:1749:37: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfacctd_stitching(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_networks_file’: cfg_handlers.c:1858:33: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_networks_file(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_networks_file_filter’: cfg_handlers.c:1877:40: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_networks_file_filter(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_networks_cache_entries’: cfg_handlers.c:1899:70: warning: unused parameter ‘value_ptr’ [-Wunused-parameter] int cfg_key_networks_cache_entries(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_ports_file’: cfg_handlers.c:1923:30: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_ports_file(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_print_markers’: cfg_handlers.c:1981:33: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_print_markers(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_num_protos’: cfg_handlers.c:2072:30: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_num_protos(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_num_hosts’: cfg_handlers.c:2094:29: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_num_hosts(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_pre_tag_map’: cfg_handlers.c:2265:31: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_pre_tag_map(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c: In function ‘src_mac_handler’: cfg_handlers.c: In function ‘cfg_key_nfacctd_mcast_groups’: pkt_handlers.c:784:50: warning: unused parameter ‘chptr’ [-Wunused-parameter] void src_mac_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘dst_mac_handler’: cfg_handlers.c:2397:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (count_token = extract_token(&value_ptr, ',')) { ^ pkt_handlers.c:791:50: warning: unused parameter ‘chptr’ [-Wunused-parameter] void dst_mac_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘vlan_handler’: cfg_handlers.c:2399:5: warning: implicit declaration of function ‘str_to_addr’ [-Wimplicit-function-declaration] str_to_addr(count_token, &tmp_addr); ^ pkt_handlers.c:798:47: warning: unused parameter ‘chptr’ [-Wunused-parameter] void vlan_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘cos_handler’: pkt_handlers.c:810:46: warning: unused parameter ‘chptr’ [-Wunused-parameter] void cos_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:2400:5: warning: implicit declaration of function ‘is_multicast’ [-Wimplicit-function-declaration] if (is_multicast(&tmp_addr)) { ^ pkt_handlers.c: In function ‘etype_handler’: pkt_handlers.c:822:48: warning: unused parameter ‘chptr’ [-Wunused-parameter] void etype_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘mpls_label_top_handler’: pkt_handlers.c:832:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ cfg_handlers.c:2392:31: warning: unused variable ‘mcast_family’ [-Wunused-variable] u_int8_t idx = 0, more = 0, mcast_family; ^ pkt_handlers.c: In function ‘mpls_label_bottom_handler’: cfg_handlers.c:2391:13: warning: unused variable ‘value’ [-Wunused-variable] u_int32_t value = 0, changes = 0; ^ pkt_handlers.c:841: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:857: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:895:20: warning: unused variable ‘ret’ [-Wunused-variable] struct bgp_node *ret = (struct bgp_node *) pptrs->bgp_dst; ^ pkt_handlers.c:894: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:949:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘src_host_handler’: pkt_handlers.c:962:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void src_host_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘dst_host_handler’: pkt_handlers.c:978:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void dst_host_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘src_port_handler’: pkt_handlers.c:994:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void src_port_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘dst_port_handler’: pkt_handlers.c:1003:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void dst_port_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘ip_tos_handler’: pkt_handlers.c:1012:49: warning: unused parameter ‘chptr’ [-Wunused-parameter] void ip_tos_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘ip_proto_handler’: pkt_handlers.c:1029:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void ip_proto_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘tcp_flags_handler’: pkt_handlers.c:1036:52: warning: unused parameter ‘chptr’ [-Wunused-parameter] void tcp_flags_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘counters_handler’: pkt_handlers.c:1043:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void counters_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘counters_renormalize_handler’: cfg_handlers.c: In function ‘cfg_key_nfacctd_bmp_msglog_file’: pkt_handlers.c:1064:63: warning: unused parameter ‘chptr’ [-Wunused-parameter] void counters_renormalize_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘post_tag_handler’: pkt_handlers.c:1076:78: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void post_tag_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:3091:7: warning: unused variable ‘value’ [-Wunused-variable] int value, changes = 0; ^ pkt_handlers.c: In function ‘post_tag2_handler’: pkt_handlers.c:1083:79: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void post_tag2_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘flows_handler’: pkt_handlers.c:1090:48: warning: unused parameter ‘chptr’ [-Wunused-parameter] void flows_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bmp_msglog_amqp_frame_max’: pkt_handlers.c: In function ‘tee_payload_handler’: cfg_handlers.c:3246:9: warning: operation on ‘value’ may be undefined [-Wsequence-point] value = value = strtoul(value_ptr, &endptr, 10); ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bmp_msglog_amqp_heartbeat_interval’: pkt_handlers.c:1185:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void tee_payload_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘nfprobe_extras_handler’: pkt_handlers.c:1197:57: warning: unused parameter ‘chptr’ [-Wunused-parameter] void nfprobe_extras_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:3264:9: warning: operation on ‘value’ may be undefined [-Wsequence-point] value = value = strtoul(value_ptr, &endptr, 10); ^ pkt_handlers.c: In function ‘in_iface_handler’: pkt_handlers.c:1208:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void in_iface_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bmp_dump_file’: pkt_handlers.c: In function ‘out_iface_handler’: pkt_handlers.c:1215:52: warning: unused parameter ‘chptr’ [-Wunused-parameter] void out_iface_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘sampling_rate_handler’: cfg_handlers.c:3292:7: warning: unused variable ‘value’ [-Wunused-variable] int value, changes = 0; ^ pkt_handlers.c:1222:56: warning: unused parameter ‘chptr’ [-Wunused-parameter] void sampling_rate_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c:1222:83: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void sampling_rate_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘mpls_vpn_rd_frommap_handler’: pkt_handlers.c:1236: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:1244: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:1278:15: 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:184:0, from pkt_handlers.c:25: util.h:116:9: note: expected ‘const u_char *’ but argument is of type ‘char *’ EXT int print_hex(const u_char *, u_char *, int); ^ pkt_handlers.c:1278:15: 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:184:0, from pkt_handlers.c:25: util.h:116:9: note: expected ‘u_char *’ but argument is of type ‘char *’ EXT int print_hex(const u_char *, u_char *, int); ^ cfg_handlers.c: In function ‘cfg_key_igp_daemon_map_msglog’: cfg_handlers.c:3589:7: warning: unused variable ‘value’ [-Wunused-variable] int value, changes = 0; ^ pkt_handlers.c:1255:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘NF_src_mac_handler’: pkt_handlers.c:1319:53: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_src_mac_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_dst_mac_handler’: pkt_handlers.c:1338:53: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_dst_mac_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_vlan_handler’: pkt_handlers.c:1357:50: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_vlan_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_cos_handler’: pkt_handlers.c:1380:49: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_cos_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_nfprobe_timeouts’: pkt_handlers.c: In function ‘NF_etype_handler’: pkt_handlers.c:1398:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_etype_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:3895:36: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfprobe_timeouts(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfprobe_receiver’: pkt_handlers.c: In function ‘NF_src_host_handler’: pkt_handlers.c:1420:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_src_host_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:3964:36: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfprobe_receiver(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfprobe_source_ip’: cfg_handlers.c:3983:37: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfprobe_source_ip(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c: In function ‘NF_dst_host_handler’: cfg_handlers.c: In function ‘cfg_key_nfprobe_engine’: pkt_handlers.c:1495:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_dst_host_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:4027:34: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfprobe_engine(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfprobe_peer_as’: cfg_handlers.c:4046:35: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_nfprobe_peer_as(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfprobe_ifindex’: pkt_handlers.c: In function ‘NF_peer_src_as_handler’: cfg_handlers.c:4140:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (value = strtol(value_ptr, NULL, 0)) ^ pkt_handlers.c:1798:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ cfg_handlers.c: In function ‘cfg_key_sfprobe_receiver’: pkt_handlers.c: In function ‘NF_peer_dst_as_handler’: pkt_handlers.c:1828:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ cfg_handlers.c:4165:36: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sfprobe_receiver(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c: In function ‘NF_peer_src_ip_handler’: cfg_handlers.c: In function ‘cfg_key_sfprobe_agentip’: pkt_handlers.c:1860:32: warning: unused variable ‘tpl’ [-Wunused-variable] struct template_cache_entry *tpl = (struct template_cache_entry *) pptrs->f_tpl; ^ cfg_handlers.c:4184:35: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sfprobe_agentip(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c:1859:28: warning: unused variable ‘hdr’ [-Wunused-variable] struct struct_header_v8 *hdr = (struct struct_header_v8 *) pptrs->f_header; ^ cfg_handlers.c: In function ‘cfg_key_sfprobe_ifspeed’: pkt_handlers.c:1858:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ cfg_handlers.c:4228:35: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_sfprobe_ifspeed(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_tee_transparent’: pkt_handlers.c: In function ‘NF_peer_dst_ip_handler’: cfg_handlers.c:4250:35: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_tee_transparent(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c:1878:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ cfg_handlers.c: In function ‘cfg_key_tee_receivers’: pkt_handlers.c: In function ‘NF_src_port_handler’: cfg_handlers.c:4322:33: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_tee_receivers(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c:1952:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_src_port_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_uacctd_group’: pkt_handlers.c: In function ‘NF_dst_port_handler’: pkt_handlers.c:2014:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_dst_port_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:4425:32: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_uacctd_group(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c: In function ‘NF_ip_tos_handler’: cfg_handlers.c:4425:48: warning: unused parameter ‘name’ [-Wunused-parameter] int cfg_key_uacctd_group(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c:2075:52: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_ip_tos_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_uacctd_nl_size’: pkt_handlers.c: In function ‘NF_ip_proto_handler’: cfg_handlers.c:4437:34: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_uacctd_nl_size(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c:2132:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_ip_proto_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_tcp_flags_handler’: cfg_handlers.c:4437:50: warning: unused parameter ‘name’ [-Wunused-parameter] int cfg_key_uacctd_nl_size(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c:2168:55: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_tcp_flags_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_pkt_len_distrib_bins’: cfg_handlers.c:4485:40: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_pkt_len_distrib_bins(char *filename, char *name, char *value_ptr) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bgp_msglog_file’: cfg_handlers.c:4519:7: warning: unused variable ‘value’ [-Wunused-variable] int value, changes = 0; ^ pkt_handlers.c: In function ‘NF_counters_msecs_handler’: pkt_handlers.c:2191:60: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_counters_msecs_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bgp_msglog_amqp_frame_max’: cfg_handlers.c:4674:9: warning: operation on ‘value’ may be undefined [-Wsequence-point] value = value = strtoul(value_ptr, &endptr, 10); ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bgp_msglog_amqp_heartbeat_interval’: pkt_handlers.c: In function ‘NF_counters_secs_handler’: cfg_handlers.c:4692:9: warning: operation on ‘value’ may be undefined [-Wsequence-point] value = value = strtoul(value_ptr, &endptr, 10); ^ pkt_handlers.c:2362:59: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_counters_secs_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_nfacctd_bgp_table_dump_file’: cfg_handlers.c:4720:7: warning: unused variable ‘value’ [-Wunused-variable] int value, changes = 0; ^ pkt_handlers.c: In function ‘NF_counters_new_handler’: pkt_handlers.c:2464:58: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_counters_new_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘pre_tag_handler’: pkt_handlers.c:2551:50: warning: unused parameter ‘chptr’ [-Wunused-parameter] void pre_tag_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘pre_tag2_handler’: pkt_handlers.c:2558:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void pre_tag2_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c: In function ‘cfg_key_tmp_net_own_field’: pkt_handlers.c: In function ‘NF_flows_handler’: pkt_handlers.c:2576:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_flows_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ cfg_handlers.c:4925:37: warning: unused parameter ‘filename’ [-Wunused-parameter] int cfg_key_tmp_net_own_field(char *filename, char *name, char *value_ptr) ^ pkt_handlers.c: In function ‘NF_in_iface_handler’: pkt_handlers.c:2614:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_in_iface_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ In file included from cfg_handlers.c:26:0: cfg_handlers.c: At top level: nfacctd.h:588:14: warning: ‘tpl_desc_list’ defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^ pkt_handlers.c: In function ‘NF_out_iface_handler’: nfacctd.h:657:14: warning: ‘opt_tpl_desc_list’ defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^ In file included from cfg_handlers.c:27:0: pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ pkt_handlers.c:2692:55: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_out_iface_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_sampling_rate_handler’: pkt_handlers.c:2783:24: warning: variable ‘is_sampled’ set but not used [-Wunused-but-set-variable] u_int16_t srate = 0, is_sampled = 0; ^ pkt_handlers.c:2774:59: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_sampling_rate_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_timestamp_start_handler’: pkt_handlers.c:2882: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:2962:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘NF_custom_primitives_handler’: pkt_handlers.c:3045:13: 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:184:0, from pkt_handlers.c:25: util.h:116:9: note: expected ‘u_char *’ but argument is of type ‘char *’ EXT int print_hex(const u_char *, u_char *, int); ^ pkt_handlers.c:3057:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, cpe->pen, cpe->field_type)) { ^ pkt_handlers.c:3062:15: 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:184:0, from pkt_handlers.c:25: util.h:116:9: note: expected ‘u_char *’ but argument is of type ‘char *’ EXT int print_hex(const u_char *, u_char *, int); ^ pkt_handlers.c:3085:5: 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); ^ In file included from pmacct.h:184:0, from pkt_handlers.c:25: util.h:138:10: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT void vlen_prims_insert(struct pkt_vlen_hdr_primitives *, pm_cfgreg_t, int, char *); ^ pkt_handlers.c:3025: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:3115:7: 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)) { ^ pkt_handlers.c:3101: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:3142:7: 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)) { ^ pkt_handlers.c:3128: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:3171:7: 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)) ^ pkt_handlers.c:3155: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:3200:7: 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)) ^ pkt_handlers.c:3184: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:3224:5: 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)) ^ pkt_handlers.c:3213: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:3243:7: 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:184:0, from pkt_handlers.c:25: util.h:64:15: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT u_int32_t decode_mpls_label(char *); ^ pkt_handlers.c:3234: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:3263:9: 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:184:0, from pkt_handlers.c:25: util.h:64:15: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT u_int32_t decode_mpls_label(char *); ^ pkt_handlers.c:3252: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:3287:2: 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:184:0, from pkt_handlers.c:25: util.h:64:15: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT u_int32_t decode_mpls_label(char *); ^ pkt_handlers.c:3275:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘NF_mpls_vpn_rd_handler’: pkt_handlers.c:3305:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘NF_class_handler’: pkt_handlers.c:3334:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_class_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_cust_tag_handler’: pkt_handlers.c:3373:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, PMACCT_PEN, NF9_CUST_TAG)) { ^ pkt_handlers.c:3364:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_cust_tag_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_cust_tag2_handler’: pkt_handlers.c:3392:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, PMACCT_PEN, NF9_CUST_TAG2)) { ^ pkt_handlers.c:3383:55: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_cust_tag2_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_cust_label_handler’: pkt_handlers.c:3412:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (utpl = (*get_ext_db_ie_by_type)(tpl, PMACCT_PEN, NF9_CUST_LABEL)) { ^ pkt_handlers.c:3418:7: 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); ^ In file included from pmacct.h:184:0, from pkt_handlers.c:25: util.h:138:10: note: expected ‘char *’ but argument is of type ‘u_char *’ EXT void vlen_prims_insert(struct pkt_vlen_hdr_primitives *, pm_cfgreg_t, int, char *); ^ pkt_handlers.c: In function ‘NF_counters_renormalize_handler’: pkt_handlers.c:3434:24: warning: variable ‘is_sampled’ set but not used [-Wunused-but-set-variable] u_int16_t srate = 0, is_sampled = 0; ^ pkt_handlers.c:3426:66: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_counters_renormalize_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘NF_counters_map_renormalize_handler’: pkt_handlers.c:3538:70: warning: unused parameter ‘chptr’ [-Wunused-parameter] void NF_counters_map_renormalize_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘bgp_ext_handler’: pkt_handlers.c:3571: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:3722: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:3760:20: warning: unused variable ‘peer’ [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^ pkt_handlers.c:3757: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:3799:20: warning: unused variable ‘peer’ [-Wunused-variable] struct bgp_peer *peer = (struct bgp_peer *) pptrs->bgp_peer; ^ pkt_handlers.c:3796: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:3824:20: warning: unused variable ‘src_ret’ [-Wunused-variable] struct bgp_node *src_ret = (struct bgp_node *) pptrs->bgp_src; ^ pkt_handlers.c:3822: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:3833:20: warning: unused variable ‘src_ret’ [-Wunused-variable] struct bgp_node *src_ret = (struct bgp_node *) pptrs->bgp_src; ^ pkt_handlers.c:3831:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘SF_src_mac_handler’: pkt_handlers.c:3839:53: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_src_mac_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_dst_mac_handler’: pkt_handlers.c:3847:53: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_dst_mac_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_vlan_handler’: pkt_handlers.c:3855:50: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_vlan_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_cos_handler’: pkt_handlers.c:3864:49: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_cos_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_etype_handler’: pkt_handlers.c:3873:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_etype_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_src_host_handler’: pkt_handlers.c:3882:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_src_host_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_dst_host_handler’: pkt_handlers.c:3900:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_dst_host_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_src_port_handler’: pkt_handlers.c:3940:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_src_port_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_dst_port_handler’: pkt_handlers.c:3950:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_dst_port_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_ip_tos_handler’: pkt_handlers.c:3960:52: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_ip_tos_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_ip_proto_handler’: pkt_handlers.c:3968:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_ip_proto_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_tcp_flags_handler’: pkt_handlers.c:3976:55: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_tcp_flags_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_counters_new_handler’: pkt_handlers.c:3984:58: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_counters_new_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_counters_renormalize_handler’: pkt_handlers.c:4001:66: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_counters_renormalize_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_counters_map_renormalize_handler’: pkt_handlers.c:4048:70: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_counters_map_renormalize_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_as_path_handler’: pkt_handlers.c:4111: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:4128: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:4140: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:4152: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:4164: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:4176: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:4194:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘SF_in_iface_handler’: pkt_handlers.c:4236:54: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_in_iface_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_out_iface_handler’: pkt_handlers.c:4244:55: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_out_iface_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_sampling_rate_handler’: pkt_handlers.c:4252:59: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_sampling_rate_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_timestamp_start_handler’: pkt_handlers.c:4288:13: warning: unused variable ‘sample’ [-Wunused-variable] SFSample *sample = (SFSample *) pptrs->f_data; ^ pkt_handlers.c:4286:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c: In function ‘SF_class_handler’: pkt_handlers.c:4294:51: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_class_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_tag_handler’: pkt_handlers.c:4308:49: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_tag_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_tag2_handler’: pkt_handlers.c:4316:50: warning: unused parameter ‘chptr’ [-Wunused-parameter] void SF_tag2_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘sampling_handler’: pkt_handlers.c:4324:78: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void sampling_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘sfprobe_sampling_handler’: pkt_handlers.c:4332:86: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void sfprobe_sampling_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_bgp_peer_src_as_fromstd_handler’: pkt_handlers.c:4341:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ pkt_handlers.c:4339:96: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void SF_bgp_peer_src_as_fromstd_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ pkt_handlers.c: In function ‘SF_bgp_peer_src_as_fromext_handler’: cfg_handlers.c: In function ‘cfg_key_networks_cache_entries’: pkt_handlers.c:4351:20: warning: unused variable ‘pdata’ [-Wunused-variable] struct pkt_data *pdata = (struct pkt_data *) *data; ^ cfg_handlers.c:1904:6: warning: ‘value’ is used uninitialized in this function [-Wuninitialized] if (value <= 0) { ^ pkt_handlers.c:4349:96: warning: unused parameter ‘pptrs’ [-Wunused-parameter] void SF_bgp_peer_src_as_fromext_handler(struct channels_list_entry *chptr, struct packet_ptrs *pptrs, char **data) ^ In file included from pkt_handlers.c:26:0: pkt_handlers.c: At top level: pmacct-data.h:247:20: warning: ‘cps_type’ defined but not used [-Wunused-variable] static const char *cps_type[] = { ^ In file included from pkt_handlers.c:27:0: nfacctd.h:588:14: warning: ‘tpl_desc_list’ defined but not used [-Wunused-variable] static char *tpl_desc_list[] = { ^ nfacctd.h:657:14: warning: ‘opt_tpl_desc_list’ defined but not used [-Wunused-variable] static char *opt_tpl_desc_list[] = { ^ pkt_handlers.c: In function ‘evaluate_lm_method’: pkt_handlers.c:4439:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gmake[2]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src' Makefile:280: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1/src' Makefile:113: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 * ERROR: net-analyzer/pmacct-1.5.1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/pmacct-1.5.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/pmacct-1.5.1::gentoo'`. * The complete build log is located at '/var/log/log/build/net-analyzer/pmacct-1.5.1:20150521-130415.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/pmacct-1.5.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/pmacct-1.5.1/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1' * S: '/var/tmp/portage/net-analyzer/pmacct-1.5.1/work/pmacct-1.5.1'