Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/justniffer.spec'], printOutput=Falseshell=FalsechrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-6155/root'logger=nspawn_args=[]user='mockbuild'gid=135env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock'}uid=1001timeout=0) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/justniffer.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock'} and shell False warning: Could not canonicalize hostname: copr-builder-964659904.novalocal Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/justniffer-0.5.15-1.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/justniffer.spec'], printOutput=Falseshell=FalsechrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-6155/root'logger=nspawn_args=[]user='mockbuild'gid=135env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock'}uid=1001timeout=0) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/justniffer.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UfXsIW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf justniffer-0.5.15 + /usr/bin/tar -xf - + /usr/bin/gzip -dc /builddir/build/SOURCES/justniffer-0.5.15.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd justniffer-0.5.15 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xJVwF8 + umask 022 + cd /builddir/build/BUILD + cd justniffer-0.5.15 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./lib/libnids-1.21_patched/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./lib/libnids-1.21_patched/config.sub ++ basename ./lib/libnids-1.21_patched/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./lib/libnids-1.21_patched/config.sub '/usr/lib/rpm/redhat/config.sub' -> './lib/libnids-1.21_patched/config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./lib/libnids-1.21_patched/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./lib/libnids-1.21_patched/config.guess ++ basename ./lib/libnids-1.21_patched/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./lib/libnids-1.21_patched/config.guess '/usr/lib/rpm/redhat/config.guess' -> './lib/libnids-1.21_patched/config.guess' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for bash... yes BASH_F= yes checking for x86_64-redhat-linux-gnu-g++... no checking for x86_64-redhat-linux-gnu-c++... no checking for x86_64-redhat-linux-gnu-gpp... no checking for x86_64-redhat-linux-gnu-aCC... no checking for x86_64-redhat-linux-gnu-CC... no checking for x86_64-redhat-linux-gnu-cxx... no checking for x86_64-redhat-linux-gnu-cc++... no checking for x86_64-redhat-linux-gnu-cl.exe... no checking for x86_64-redhat-linux-gnu-FCC... no checking for x86_64-redhat-linux-gnu-KCC... no checking for x86_64-redhat-linux-gnu-RCC... no checking for x86_64-redhat-linux-gnu-xlC_r... no checking for x86_64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... none checking dependency style of g++... (cached) none gcc: fatal error: no input files compilation terminated. checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for strftime... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for x86_64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for pcap_open_live in -lpcap... yes checking for boostlib >= 1.46... yes checking whether the Boost::Regex library is available... yes checking for exit in -lboost_regex-mt... yes checking whether the Boost::Program_Options library is available... yes checking for exit in -lboost_program_options-mt... yes checking whether the Boost::IOStreams library is available... yes checking for exit in -lboost_iostreams-mt... yes checking for lib/libnids-1.21_patched/README.original... yes ./configure: line 17253: AX_PYTHON: command not found checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating python/Makefile config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands === configuring in lib/libnids-1.21_patched (/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched) configure: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/usr' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --cache-file=/dev/null --srcdir=. checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking whether byte ordering is bigendian... no checking for gettimeofday... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for libpcap... yes skipping glib2 support checking for libnet... no skipping libnet checking whether to build shared library... no checking the name of struct icmp... struct icmphdr checking if tcp states are defined... yes checking for bsd-ish struct udphdr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting config.status: creating samples/Makefile config.status: creating src/config.h config.status: src/config.h is unchanged + make -j2 Making all in lib/libnids-1.21_patched make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched' cd src ; make static make[2]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched/src' gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include checksum.c gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include ip_fragment.c ip_fragment.c: In function 'ip_find': ip_fragment.c:303:15: warning: variable 'qplast' set but not used [-Wunused-but-set-variable] struct ipq *qplast; ^ ip_fragment.c: In function 'ip_glue': ip_fragment.c:496:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = skb; ^ ip_fragment.c: In function 'ip_defrag': ip_fragment.c:604:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = skb->data + ihl; ^ gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include ip_options.c ip_options.c: In function 'ip_options_compile': ip_options.c:293:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (!((struct options *) optholder)->srr) ^ gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include killtcp.c gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include libnids.c libnids.c: In function 'gen_ip_frag_proc': libnids.c:365:5: warning: pointer targets in passing argument 1 of 'ip_options_compile' differ in signedness [-Wpointer-sign] if (iph->ip_hl > 5 && ip_options_compile(data)) { ^ libnids.c:39:12: note: expected 'char *' but argument is of type 'u_char *' extern int ip_options_compile(char *); ^ libnids.c: In function 'process_udp': libnids.c:404:53: warning: unused parameter 'ts' [-Wunused-parameter] static void process_udp(char *data, struct timeval* ts) ^ gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include scan.c libnids.c: In function 'gen_ip_proc': libnids.c:441:2: warning: pointer targets in passing argument 1 of 'process_udp' differ in signedness [-Wpointer-sign] process_udp(data, ts); ^ libnids.c:404:13: note: expected 'char *' but argument is of type 'u_char *' static void process_udp(char *data, struct timeval* ts) ^ libnids.c: In function 'nids_next': libnids.c:731:5: warning: pointer targets in passing argument 3 of 'nids_pcap_handler' differ in signedness [-Wpointer-sign] nids_pcap_handler(0, &h, data); ^ libnids.c:219:6: note: expected 'u_char *' but argument is of type 'char *' void nids_pcap_handler(u_char * par, struct pcap_pkthdr *hdr, u_char * data) ^ gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include tcp.c tcp.c: In function 'get_ts': tcp.c:196:29: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char * options = (char*)(this_tcphdr + 1); ^ tcp.c: In function 'get_wscale': tcp.c:223:29: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char * options = (char*)(this_tcphdr + 1); ^ tcp.c: At top level: tcp.c:373:68: warning: 'struct time' declared inside parameter list [enabled by default] notify(struct tcp_stream * a_tcp, struct half_stream * rcv, struct time* t) ^ tcp.c:373:68: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] tcp.c: In function 'notify': tcp.c:385:5: warning: passing argument 3 of 'ride_lurkers' from incompatible pointer type [enabled by default] ride_lurkers(a_tcp, mask, t); ^ tcp.c:340:1: note: expected 'struct timeval *' but argument is of type 'struct time *' ride_lurkers(struct tcp_stream * a_tcp, char mask, struct timeval * t) ^ tcp.c:398:6: warning: passing argument 3 of 'ride_lurkers' from incompatible pointer type [enabled by default] ride_lurkers(a_tcp, mask, t); ^ tcp.c:340:1: note: expected 'struct timeval *' but argument is of type 'struct time *' ride_lurkers(struct tcp_stream * a_tcp, char mask, struct timeval * t) ^ tcp.c: In function 'add_from_skb': tcp.c:444:2: warning: pointer targets in passing argument 2 of 'add2buf' differ in signedness [-Wpointer-sign] add2buf(rcv, data + lost, to_copy); ^ tcp.c:310:1: note: expected 'char *' but argument is of type 'u_char *' add2buf(struct half_stream * rcv, char *data, int datalen) ^ tcp.c:445:2: warning: passing argument 3 of 'notify' from incompatible pointer type [enabled by default] notify(a_tcp, rcv, t); ^ tcp.c:373:1: note: expected 'struct time *' but argument is of type 'struct timeval *' notify(struct tcp_stream * a_tcp, struct half_stream * rcv, struct time* t) ^ tcp.c:454:5: warning: passing argument 3 of 'notify' from incompatible pointer type [enabled by default] notify(a_tcp, rcv, t); ^ tcp.c:373:1: note: expected 'struct time *' but argument is of type 'struct timeval *' notify(struct tcp_stream * a_tcp, struct half_stream * rcv, struct time* t) ^ tcp.c:460:2: warning: pointer targets in passing argument 2 of 'add2buf' differ in signedness [-Wpointer-sign] add2buf(rcv, data + lost + to_copy + 1, to_copy2); ^ tcp.c:310:1: note: expected 'char *' but argument is of type 'u_char *' add2buf(struct half_stream * rcv, char *data, int datalen) ^ tcp.c:461:2: warning: passing argument 3 of 'notify' from incompatible pointer type [enabled by default] notify(a_tcp, rcv, t); ^ tcp.c:373:1: note: expected 'struct time *' but argument is of type 'struct timeval *' notify(struct tcp_stream * a_tcp, struct half_stream * rcv, struct time* t) ^ tcp.c:472:2: warning: pointer targets in passing argument 2 of 'add2buf' differ in signedness [-Wpointer-sign] add2buf(rcv, data + lost, datalen - lost); ^ tcp.c:310:1: note: expected 'char *' but argument is of type 'u_char *' add2buf(struct half_stream * rcv, char *data, int datalen) ^ tcp.c:473:2: warning: passing argument 3 of 'notify' from incompatible pointer type [enabled by default] notify(a_tcp, rcv, t); ^ tcp.c:373:1: note: expected 'struct time *' but argument is of type 'struct timeval *' notify(struct tcp_stream * a_tcp, struct half_stream * rcv, struct time* t) ^ tcp.c: In function 'tcp_queue': tcp.c:508:6: warning: pointer targets in passing argument 4 of 'add_from_skb' differ in signedness [-Wpointer-sign] ntohs(this_tcphdr->th_urp) + this_seq - 1, t); ^ tcp.c:426:1: note: expected 'u_char *' but argument is of type 'char *' add_from_skb(struct tcp_stream * a_tcp, struct half_stream * rcv, ^ gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include util.c util.c:78:8: warning: extra tokens at end of #endif directive [enabled by default] #endif __GNUC__<5 ^ gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include allpromisc.c gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include hash.c hash.c: In function 'mkhash': hash.c:60:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(u_int *) (data) = src; ^ hash.c: In function 'getrnd': hash.c:18:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd, xor, 12); ^ hash.c:19:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd, perm, 12); ^ tcp.c: In function 'process_tcp': tcp.c:762:16: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized] (i->item) (a_tcp, NULL, ts, data); ^ ar -cr libnids2.a checksum.o ip_fragment.o ip_options.o killtcp.o libnids.o scan.o tcp.o util.o allpromisc.o hash.o ranlib libnids2.a make[2]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched/src' make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched' Making all in src make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/src' g++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/include -I ../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o main.o main.cpp g++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/include -I ../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o formatter.o formatter.cpp In file included from formatter.cpp:11:0: formatter.h: In constructor 'stream::stream(std::vector >::iterator, std::vector >::iterator, printer*, connections_container*)': formatter.h:362:11: warning: 'stream::_printer' will be initialized after [-Wreorder] printer* _printer; ^ formatter.h:338:14: warning: 'unsigned int stream::tot_requests' [-Wreorder] unsigned tot_requests; ^ formatter.cpp:519:1: warning: when initialized here [-Wreorder] stream::stream(handler_factories::iterator _begin, handler_factories::iterator _end, printer* printer, connections_container* pconnection_container): ^ formatter.cpp: In member function 'virtual void close_originator::onClose(tcp_stream*, const timeval*, unsigned char*)': formatter.cpp:666:18: warning: unused variable 'this_tcphdr' [-Wunused-variable] struct tcphdr *this_tcphdr = (struct tcphdr *)(packet + 4 * this_iphdr->ip_hl); ^ g++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/include -I ../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o utilities.o utilities.cpp utilities.cpp: In function 'std::string timestamp(const timeval*, const string&)': utilities.cpp:174:19: warning: variable 'tz' set but not used [-Wunused-but-set-variable] int days, hours, tz, len; ^ utilities.cpp: In function 'void change_current_user(const char*)': utilities.cpp:199:17: warning: ignoring return value of 'int seteuid(__uid_t)', declared with attribute warn_unused_result [-Wunused-result] seteuid(userid); ^ utilities.cpp: In constructor 'run_as::run_as(const string&)': utilities.cpp:209:22: warning: ignoring return value of 'int setuid(__uid_t)', declared with attribute warn_unused_result [-Wunused-result] setuid( pwd->pw_uid); ^ utilities.cpp: In destructor 'run_as::~run_as()': utilities.cpp:214:26: warning: ignoring return value of 'int setuid(__uid_t)', declared with attribute warn_unused_result [-Wunused-result] setuid( previous_uid); ^ g++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/include -I ../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o regex.o regex.cpp /bin/sh ../libtool --tag=CXX --mode=link g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o justniffer main.o formatter.o utilities.o regex.o -L../lib/libnids-1.21_patched/src -lnids2 -lpcap -L/usr/lib64 -lboost_regex-mt -lboost_iostreams-mt -lboost_program_options-mt libtool: link: g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z -Wl,relro -o justniffer main.o formatter.o utilities.o regex.o -L../lib/libnids-1.21_patched/src -lnids2 -lpcap -L/usr/lib64 -lboost_regex-mt -lboost_iostreams-mt -lboost_program_options-mt make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/src' make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KwjQed + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 + cd justniffer-0.5.15 + rm -rf /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 Making install in lib/libnids-1.21_patched make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched' cd src ; /usr/bin/make _install make[2]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched/src' ../mkinstalldirs /usr/lib64 ../mkinstalldirs /usr/include ../mkinstalldirs /usr/share/man/man3 # we don't want to distribute the patched version of libnids. It is usefull just for justniffer #/usr/bin/install -c -c -m 644 libnids2.a /usr/lib64 #/usr/bin/install -c -c -m 644 nids2.h /usr/include make[2]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched/src' make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/lib/libnids-1.21_patched' Making install in src make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/src' make[2]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/bin' /bin/sh ../libtool --mode=install /usr/bin/install -c justniffer '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/bin' libtool: install: /usr/bin/install -c justniffer /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/bin/justniffer make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/src' make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/src' make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15' make[2]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/man/man8' /usr/bin/install -c -m 644 justniffer.8 '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/man/man8' make[2]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15' make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15' + mkdir -p /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/doc/justniffer + gzip -c ChangeLog + gzip -c debian/copyright + install README /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/doc/justniffer/README + mkdir -p /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/justniffer + cd python + make install DESTDIR=/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 python create_scripts justniffer-grab-http-traffic.in justniffer-grab-http-traffic /usr/share/justniffer/scripts; chmod a+x justniffer-grab-http-traffic; chmod a+x http_parser.py ******** justniffer-grab-http-traffic created ******** make[1]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/python' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/bin' /usr/bin/install -c justniffer-grab-http-traffic '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/bin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/justniffer/scripts' /usr/bin/install -c -m 644 http_parser.py common.py '/builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/justniffer/scripts' make install-data-hook make[2]: Entering directory `/builddir/build/BUILD/justniffer-0.5.15/python' chmod a+x /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/share/justniffer/scripts/http_parser.py make[2]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/python' make[1]: Leaving directory `/builddir/build/BUILD/justniffer-0.5.15/python' + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/justniffer-0.5.15 extracting debug info from /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64/usr/bin/justniffer dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 340 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: justniffer-0.5.15-1.el7.centos.x86_64 Provides: justniffer = 0.5.15-1.el7.centos justniffer(x86-64) = 0.5.15-1.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python libboost_iostreams-mt.so.1.53.0()(64bit) libboost_program_options-mt.so.1.53.0()(64bit) libboost_regex-mt.so.1.53.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libpcap.so.1()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: justniffer-debuginfo-0.5.15-1.el7.centos.x86_64 Provides: justniffer-debuginfo = 0.5.15-1.el7.centos justniffer-debuginfo(x86-64) = 0.5.15-1.el7.centos Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-964659904.novalocal Wrote: /builddir/build/RPMS/justniffer-0.5.15-1.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/justniffer-debuginfo-0.5.15-1.el7.centos.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.7ORyyA + umask 022 + cd /builddir/build/BUILD + cd justniffer-0.5.15 + /usr/bin/rm -rf /builddir/build/BUILDROOT/justniffer-0.5.15-1.el7.centos.x86_64 + exit 0 Child return code was: 0