+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/tcpick.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ESrYKg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tcpick-0.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/tcpick-0.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tcpick-0.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (tcpick-0.2.1-CVE-2006-0048.patch):' Patch #0 (tcpick-0.2.1-CVE-2006-0048.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .CVE-2006-0048 --fuzz=0 patching file src/write.c + echo 'Patch #1 (tcpick-0.2.1-ppc.patch):' Patch #1 (tcpick-0.2.1-ppc.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ppc --fuzz=0 patching file src/args.c + echo 'Patch #2 (tcpick-0.2.1-pointers.patch):' Patch #2 (tcpick-0.2.1-pointers.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pointers --fuzz=0 patching file src/display.c patching file src/tcpick.c patching file src/write.c patching file src/lookup.h patching file src/datalink.h + echo 'Patch #3 (tcpick-0.2.1-cpu-loop.patch):' Patch #3 (tcpick-0.2.1-cpu-loop.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cpu-loop --fuzz=0 patching file src/tracker.c + echo 'Patch #4 (tcpick-0.2.1-timezone.patch):' Patch #4 (tcpick-0.2.1-timezone.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .timezone --fuzz=0 patching file src/time.c + echo 'Patch #5 (tcpick-0.2.1-gcc5.patch):' Patch #5 (tcpick-0.2.1-gcc5.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc5 --fuzz=0 patching file src/verify.c patching file src/fragments.c patching file src/write.c Hunk #1 succeeded at 184 (offset 3 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gQ1da2 + umask 022 + cd /builddir/build/BUILD + cd tcpick-0.2.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-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 --bindir=/usr/sbin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for pcap_loop in -lpcap... yes checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for egrep... 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 for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for ANSI C header files... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/udp.h usability... yes checking netinet/udp.h presence... yes checking for netinet/udp.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking pcap/pcap.h usability... yes checking pcap/pcap.h presence... yes checking for pcap/pcap.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for netinet/ip.h... yes checking for net/if.h... yes checking for netinet/if_ether.h... yes checking for gethostbyaddr... yes checking for getservbyport... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for strdup... yes checking for strndup... yes checking for strtol... yes checking for getopt... yes checking for getopt_long... yes checking for asctime... yes checking for atoi... yes checking for getuid... yes checking for isascii... yes checking for isgraph... yes checking for iscntrl... yes checking for vfprintf... yes checking for localtime... yes checking for vprintf... yes checking for setuid... yes checking for perror... yes checking for signal... yes checking for setitimer... yes checking for strftime... yes checking for time... yes checking for unlink... yes checking for mkdir... yes checking for atexit... yes checking for _exit... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/config.h config.status: executing depfiles commands + make -j4 Making all in src make[1]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1/src' make all-am make[2]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1/src' gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c args.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c display.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c lookup_tree.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c lookup_query.c display.c: In function 'display_status': display.c:96:6: warning: implicit declaration of function 'time_ascii'; did you mean 'timelocal'? [-Wimplicit-function-declaration] if( time_ascii( s_time ) ) ^~~~~~~~~~ timelocal display.c:97:3: warning: implicit declaration of function 'color' [-Wimplicit-function-declaration] color( c_TIME, out,"%-16s ",s_time ); /* FIXME: check */ ^~~~~ display.c:111:8: warning: implicit declaration of function 'getportname'; did you mean 'gethostname'? [-Wimplicit-function-declaration] getportname(conn->client.port) ); ^~~~~~~~~~~ gethostname display.c: In function 'out_hn': display.c:198:9: warning: implicit declaration of function 'isascii' [-Wimplicit-function-declaration] if( ( isascii( CHAR ) && !iscntrl( CHAR ) ) || ^~~~~~~ display.c:198:29: warning: implicit declaration of function 'iscntrl' [-Wimplicit-function-declaration] if( ( isascii( CHAR ) && !iscntrl( CHAR ) ) || ^~~~~~~ lookup_query.c: In function 'lookup_new': lookup_query.c:42:2: warning: implicit declaration of function '_l_insert'; did you mean '_l_get'? [-Wimplicit-function-declaration] _l_insert( node ); ^~~~~~~~~ _l_get lookup_query.c: In function 'getportname': lookup_query.c:83:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(ptr=(struct servent *)getservbyport(port, "tcp")) ^~~ display.c: In function 'out_xa': display.c:248:10: warning: implicit declaration of function 'isgraph' [-Wimplicit-function-declaration] if ( isgraph( *( buf + pos ) ) ) ^~~~~~~ display.c: In function 'out_x': display.c:301:36: warning: too many arguments for format [-Wformat-extra-args] fprintf(out, pos % 2 ? " " : " ", *( buf + pos ) ); ^~~~ display.c: In function 'display_status': display.c:127:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display.c: In function 'display_header': display.c:176:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display.c: In function 'out_h': display.c:190:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display.c: In function 'out_hn': display.c:209:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display.c: In function 'out_p': display.c:228:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display.c: In function 'out_xa': display.c:281:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display.c: In function 'out_x': display.c:312:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ args.c: In function 'usage': args.c:54:2: warning: implicit declaration of function 'color' [-Wimplicit-function-declaration] color(c_USAGE, stderr, USAGE); ^~~~~ In file included from tcpick.h:108:0, from args.c:45: args.c: In function 'parse_write': def.h:48:2: warning: implicit declaration of function 'err' [-Wimplicit-function-declaration] err( "Unrecognized option: %c\n", c ); ^ args.c:105:5: note: in expansion of macro 'ERR_FLAV' ERR_FLAV( c ); ^~~~~~~~ args.c: In function 'parse_args': args.c:216:5: warning: implicit declaration of function 'suicide' [-Wimplicit-function-declaration] suicide( "parse_args", "%s: invalid number of maximum connections",optarg ); ^~~~~~~ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c loop.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c tracker.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c tcpick.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c write.c loop.c: In function 'got_packet': loop.c:45:3: warning: implicit declaration of function 'check_expired' [-Wimplicit-function-declaration] check_expired(); ^~~~~~~~~~~~~ loop.c:50:3: warning: implicit declaration of function 'fault' [-Wimplicit-function-declaration] fault( "got_packet", "didn't grab packet" ); ^~~~~ loop.c:98:4: warning: implicit declaration of function 'display_header' [-Wimplicit-function-declaration] display_header( stdout, ippacket, tcppacket, ^~~~~~~~~~~~~~ loop.c:101:3: warning: implicit declaration of function 'verify' [-Wimplicit-function-declaration] verify(); /* call the core to manage the packet */ ^~~~~~ loop.c:106:3: warning: implicit declaration of function 'out_flavour' [-Wimplicit-function-declaration] out_flavour( flags.display_payload, ^~~~~~~~~~~ loop.c:140:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ tracker.c: In function 'status_switch': tracker.c:38:2: warning: implicit declaration of function 'display_status'; did you mean 'pcap_stats'? [-Wimplicit-function-declaration] display_status( stdout, CURR, status ); ^~~~~~~~~~~~~~ pcap_stats tracker.c:42:3: warning: implicit declaration of function 'rmconn' [-Wimplicit-function-declaration] rmconn( prev ); ^~~~~~ tracker.c: In function 'rmconn': tracker.c:102:2: warning: implicit declaration of function 'free_desc' [-Wimplicit-function-declaration] free_desc( &(curr->client), 1); ^~~~~~~~~ tracker.c: In function 'status_switch': tracker.c:45:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c datalink.c tracker.c: In function 'newconn': tracker.c:88:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ tracker.c: In function 'rmconn': tracker.c:128:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ tracker.c: In function 'free_desc': tracker.c:159:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c verify.c tcpick.c: In function 'signal_setup': tcpick.c:82:3: warning: implicit declaration of function 'sorry'; did you mean 'strcpy'? [-Wimplicit-function-declaration] sorry("signal_setup", "signal(%d,%p) returned SIG_ERR"); ^~~~~ strcpy tcpick.c: In function 'main': tcpick.c:93:2: warning: implicit declaration of function 'parse_args'; did you mean 'va_arg'? [-Wimplicit-function-declaration] parse_args(argc, argv); ^~~~~~~~~~ va_arg tcpick.c:96:2: warning: implicit declaration of function 'set_timer'; did you mean 'setitimer'? [-Wimplicit-function-declaration] set_timer(); ^~~~~~~~~ setitimer tcpick.c:126:3: warning: implicit declaration of function 'fault' [-Wimplicit-function-declaration] fault("main", "Unable to get current localtime()"); ^~~~~ tcpick.c:130:2: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg( 1, c_WELCOME, ^~~ tcpick.c:169:3: warning: implicit declaration of function 'suicide' [-Wimplicit-function-declaration] suicide( "main", ^~~~~~~ tcpick.c:206:4: warning: implicit declaration of function 'err' [-Wimplicit-function-declaration] err( "%s", errbuf ); ^~~ tcpick.c:242:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)net ^ tcpick.c:252:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] datalink_str = (char *)datalink2str( datalink_id ); ^ tcpick.c:254:18: warning: implicit declaration of function 'datalink2off'; did you mean 'datalink2str'? [-Wimplicit-function-declaration] datalink_size = datalink2off( datalink_id ); ^~~~~~~~~~~~ datalink2str tcpick.c:184:3: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] setuid(getuid()); ^~~~~~~~~~~~~~~~ write.c: In function 'avail_filename': write.c:68:6: warning: implicit declaration of function 'fault' [-Wimplicit-function-declaration] fault("avail_filename", "mkdir"); ^~~~~ write.c:86:3: warning: implicit declaration of function 'getportname'; did you mean 'gethostname'? [-Wimplicit-function-declaration] getportname(server_port) ^~~~~~~~~~~ gethostname write.c:83:32: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] sprintf(client_server,"%s_%s_%s", ~^ %d write.c:86:3: getportname(server_port) ~~~~~~~~~~~~~~~~~~~~~~~~ write.c:106:4: warning: enumeration value 'NOTHING' not handled in switch [-Wswitch] switch( side ) { ^~~~~~ write.c:106:4: warning: enumeration value 'BOTH' not handled in switch [-Wswitch] write.c:120:4: warning: enumeration value 'NOTHING' not handled in switch [-Wswitch] switch( side ) { ^~~~~~ write.c:120:4: warning: enumeration value 'BOTH' not handled in switch [-Wswitch] write.c: In function 'flowflush': write.c:198:3: warning: implicit declaration of function 'out_flavour' [-Wimplicit-function-declaration] out_flavour ( flags.display_rebuild.flavour, ^~~~~~~~~~~ write.c: In function 'out_flavour': write.c:245:3: warning: implicit declaration of function 'color' [-Wimplicit-function-declaration] color( c_SEPARATOR, stdout, SEPARATOR "\n" ); ^~~~~ write.c:252:3: warning: implicit declaration of function 'out_xa' [-Wimplicit-function-declaration] out_xa( out, buf, buflen ); ^~~~~~ write.c:255:3: warning: implicit declaration of function 'out_x' [-Wimplicit-function-declaration] out_x( out, buf, buflen ); ^~~~~ write.c:263:3: warning: implicit declaration of function 'out_p' [-Wimplicit-function-declaration] out_p( out, buf, buflen ); ^~~~~ write.c:266:3: warning: implicit declaration of function 'out_h' [-Wimplicit-function-declaration] out_h( out, buf, buflen ); ^~~~~ write.c:269:3: warning: implicit declaration of function 'out_hn' [-Wimplicit-function-declaration] out_hn( out, buf, buflen ); ^~~~~~ write.c: In function 'flowflush': write.c:235:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ write.c: In function 'out_flavour': write.c:274:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ datalink.c: In function 'datalink2off': datalink.c:221:3: warning: implicit declaration of function 'suicide' [-Wimplicit-function-declaration] suicide("datalink2off", ^~~~~~~ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c colors.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c time.c verify.c: In function 'established_packet': verify.c:106:3: warning: implicit declaration of function 'addfr' [-Wimplicit-function-declaration] addfr( & (Desc->unack), ^~~~~ verify.c:115:3: warning: implicit declaration of function 'flush_ack' [-Wimplicit-function-declaration] flush_ack ( Desc->oth, conn_ptr, ACK_OFF ); ^~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c timer.c verify.c: In function 'verify': verify.c:139:3: warning: implicit declaration of function 'newconn' [-Wimplicit-function-declaration] newconn( last_conn ); ^~~~~~~ verify.c:170:3: warning: implicit declaration of function 'status_switch' [-Wimplicit-function-declaration] status_switch( prev_conn, SYN_RECEIVED ); ^~~~~~~~~~~~~ verify.c:220:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ verify.c: In function 'established_packet': verify.c:122:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c debug.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c fragments.c time.c: In function 'time_ascii': time.c:57:40: warning: format '%d' expects argument of type 'int', but argument 6 has type '__suseconds_t {aka long int}' [-Wformat=] sprintf(ret,"%2.2d:%2.2d:%2.2d.%6.6d", ~~~~^ %6.6ld time.c:61:6: tp->tv_usec ~~~~~~~~~~~ time.c:67:6: warning: format '%d' expects argument of type 'int', but argument 9 has type '__suseconds_t {aka long int}' [-Wformat=] "%2.2d-%2.2d-%2.2d " /* date */ ^~~~~~~~~~~~~~~~~~~~ time.c:82:6: tp->tv_usec ~~~~~~~~~~~ time.c:68:29: note: format string is defined here "%2.2d:%2.2d:%2.2d.%6.6d", /* time */ ~~~~^ %6.6ld time.c:102:15: warning: zero-length gnu_printf format string [-Wformat-zero-length] sprintf(ret,""); ^~ timer.c: In function 'set_timer': timer.c:81:4: warning: implicit declaration of function 'sorry'; did you mean 'strcpy'? [-Wimplicit-function-declaration] sorry("main", "setitimer"); ^~~~~ strcpy gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c quit.c timer.c:38:23: warning: implicit declaration of function 'err' [-Wimplicit-function-declaration] #define TIMER_ERR_MSG err( "unable to set timer properly.\n" \ ^ timer.c:82:4: note: in expansion of macro 'TIMER_ERR_MSG' TIMER_ERR_MSG ; ^~~~~~~~~~~~~ timer.c:90:2: warning: implicit declaration of function 'signal_setup'; did you mean 'sigdelset'? [-Wimplicit-function-declaration] signal_setup (SIGALRM, sigalrm_callback); ^~~~~~~~~~~~ sigdelset timer.c: In function 'check_expired': timer.c:111:4: warning: implicit declaration of function 'status_switch' [-Wimplicit-function-declaration] status_switch( prev_conn, EXPIRED ); ^~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c msg.c debug.c: In function 'print_conn_chain': debug.c:35:13: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct CONN *' [-Wformat=] printf ("%x->",f); ~^ debug.c: In function 'print_fragment_chain': debug.c:51:13: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct FRAGMENT *' [-Wformat=] printf ("%x(%i,%i)->",f,f->off,f->len); ~^ fragments.c: In function 'flush_ack': fragments.c:174:3: warning: implicit declaration of function 'flowflush'; did you mean 'fflush'? [-Wimplicit-function-declaration] flowflush( conn_ptr, desc->oth, LIST->payload, LIST->len ); ^~~~~~~~~ fflush fragments.c: In function 'addfr': fragments.c:157:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ fragments.c: In function 'flush_ack': fragments.c:182:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ quit.c: In function 'fault': quit.c:39:2: warning: implicit declaration of function 'err' [-Wimplicit-function-declaration] err( BUGREPORT ); ^~~ quit.c:41:2: warning: implicit declaration of function 'color' [-Wimplicit-function-declaration] color( c_ERR, stderr, "FAULT:\t" ); ^~~~~ quit.c: In function 'print_statistics': quit.c:74:2: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg( 1, c_STATISTICS, "\n%d packets captured", count_packets); ^~~ msg.c: In function 'err': msg.c:52:2: warning: implicit declaration of function 'color' [-Wimplicit-function-declaration] color( c_ERR, stderr, "ERROR: " ); ^~~~~ msg.c: In function 'msg': msg.c:68:3: warning: implicit declaration of function 'textcolor' [-Wimplicit-function-declaration] textcolor ( stdout, attr, fg, GREEN ); ^~~~~~~~~ msg.c:75:3: warning: implicit declaration of function 'resetcolor' [-Wimplicit-function-declaration] resetcolor( stdout ); ^~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o tcpick args.o display.o lookup_tree.o lookup_query.o loop.o tracker.o tcpick.o write.o datalink.o verify.o colors.o time.o timer.o debug.o fragments.o quit.o msg.o -lpcap make[2]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1/src' make[1]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1/src' make[1]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.u6MKR1 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 + cd tcpick-0.2.1 + rm -rf /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 + make DESTDIR=/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 'INSTALL=install -p' install Making install in src make[1]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1/src' make[2]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1/src' test -z "/usr/sbin" || mkdir -p -- "/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/sbin" install -p 'tcpick' '/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/sbin/tcpick' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1/src' make[1]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1/src' make[1]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1' make[2]: Entering directory '/builddir/build/BUILD/tcpick-0.2.1' make[2]: Nothing to be done for 'install-exec-am'. test -z "/usr/share/man/man8" || mkdir -p -- "/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/man/man8" install -p -m 644 './tcpick.8' '/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/man/man8/tcpick.8' install -p -m 644 './tcpick_italian.8' '/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/man/man8/tcpick_italian.8' make[2]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1' make[1]: Leaving directory '/builddir/build/BUILD/tcpick-0.2.1' + mkdir -p /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/man/it/man8 + mv -f /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/man/man8/tcpick_italian.8 /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/man/it/man8/tcpick.8 + iconv -f iso-8859-1 -t utf-8 -o AUTHORS.utf8 AUTHORS + touch -c -r AUTHORS AUTHORS.utf8 + mv -f AUTHORS.utf8 AUTHORS + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: tcpick-0.2.1-30.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ieR1VF + umask 022 + cd /builddir/build/BUILD + cd tcpick-0.2.1 + DOCDIR=/builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr AUTHORS /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr ChangeLog /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr COPYING /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr EXAMPLES /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr KNOWN-BUGS /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr README /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr THANKS /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + cp -pr TODO /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64/usr/share/doc/tcpick + exit 0 Provides: tcpick = 0.2.1-30.fc28 tcpick(riscv-64) = 0.2.1-30.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libpcap.so.1()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 Wrote: /builddir/build/SRPMS/tcpick-0.2.1-30.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/tcpick-0.2.1-30.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.F88Nah + umask 022 + cd /builddir/build/BUILD + cd tcpick-0.2.1 + rm -rf /builddir/build/BUILDROOT/tcpick-0.2.1-30.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff