+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/labrea.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.HY401h + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf labrea-2.5-stable-1 + /usr/bin/gzip -dc /builddir/build/SOURCES/labrea-2.5-stable-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd labrea-2.5-stable-1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i -e 's/-I- @DNETINC@ @PCAPINC@//g' src/Makefile.am + sed -i -e 's/-I- @DNETINC@ @PCAPINC@//g' src/Makefile.in + rm -f inc/syslog.h + sed -i -e s/syslog.h//g inc/Makefile.am + sed -i -e s/syslog.h//g inc/Makefile.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JeUtqP + umask 022 + cd /builddir/build/BUILD + cd labrea-2.5-stable-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 + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./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 checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu 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 target os... linux-gnu checking whether make sets $(MAKE)... (cached) yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output... 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 a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for libpcap... yes checking for libdnet... 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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking err.h usability... yes checking err.h presence... yes checking for err.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking for an ANSI C-conforming const... yes checking for off_t... yes checking for pid_t... yes checking for size_t... 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 whether gcc needs -traditional... no checking for working memcmp... yes checking return type of signal handlers... void checking for strstr... yes checking for strtol... yes checking for strlcpy... no checking for gnu getopt support... yes checking if debug should be enabled... no configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating inc/Makefile config.status: creating misc/Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/labrea-2.5-stable-1' Making all in misc make[2]: Entering directory '/builddir/build/BUILD/labrea-2.5-stable-1/misc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/labrea-2.5-stable-1/misc' Making all in inc make[2]: Entering directory '/builddir/build/BUILD/labrea-2.5-stable-1/inc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/labrea-2.5-stable-1/inc' Making all in src make[2]: Entering directory '/builddir/build/BUILD/labrea-2.5-stable-1/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'labrea.c' || echo './'`labrea.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'labrea_init.c' || echo './'`labrea_init.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'pkt_handler.c' || echo './'`pkt_handler.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'lbio.c' || echo './'`lbio.c labrea.c: In function 'main': labrea.c:70:3: warning: implicit declaration of function 'util_alarm'; did you mean 'util_timer'? [-Wimplicit-function-declaration] util_alarm(); /* Set an alarm to cause timer pop */ ^~~~~~~~~~ util_timer pkt_handler.c: In function 'throttle_data': pkt_handler.c:144:10: warning: pointer targets in passing argument 4 of 'lbio_send_ip_pkt' differ in signedness [-Wpointer-sign] "Persist Trapping"); ^~~~~~~~~~~~~~~~~~ In file included from pkt_handler.c:44:0: ../inc/lbio.h:68:6: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' int lbio_send_ip_pkt (struct pkt *new, const struct pkt *pkt, ^~~~~~~~~~~~~~~~ pkt_handler.c:190:55: warning: pointer targets in passing argument 4 of 'lbio_send_ip_pkt' differ in signedness [-Wpointer-sign] lbio_send_ip_pkt(new, pkt, IP_HDR_LEN + TCP_HDR_LEN, msgptr); ^~~~~~ In file included from pkt_handler.c:44:0: ../inc/lbio.h:68:6: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' int lbio_send_ip_pkt (struct pkt *new, const struct pkt *pkt, ^~~~~~~~~~~~~~~~ pkt_handler.c: In function 'ip_handler': pkt_handler.c:429:10: warning: pointer targets in passing argument 4 of 'lbio_send_ip_pkt' differ in signedness [-Wpointer-sign] "Initial Connect - tarpitting"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pkt_handler.c:44:0: ../inc/lbio.h:68:6: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' int lbio_send_ip_pkt (struct pkt *new, const struct pkt *pkt, ^~~~~~~~~~~~~~~~ pkt_handler.c:462:10: warning: pointer targets in passing argument 4 of 'lbio_send_ip_pkt' differ in signedness [-Wpointer-sign] "Inbound SYN/ACK"); ^~~~~~~~~~~~~~~~~ In file included from pkt_handler.c:44:0: ../inc/lbio.h:68:6: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' int lbio_send_ip_pkt (struct pkt *new, const struct pkt *pkt, ^~~~~~~~~~~~~~~~ pkt_handler.c:496:10: warning: pointer targets in passing argument 4 of 'lbio_send_ip_pkt' differ in signedness [-Wpointer-sign] "Responded to a Ping"); ^~~~~~~~~~~~~~~~~~~~~ In file included from pkt_handler.c:44:0: ../inc/lbio.h:68:6: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' int lbio_send_ip_pkt (struct pkt *new, const struct pkt *pkt, ^~~~~~~~~~~~~~~~ lbio.c: In function 'lbio_init': lbio.c:254:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(dev) > 0) { ^~~ In file included from lbio.c:30:0: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ lbio.c:260:34: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(io.ifent->intf_name, dev, sizeof(io.ifent->intf_name)); ^~~ In file included from lbio.c:26:0: ../config.h:123:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ lbio.c:339:28: warning: pointer targets in passing argument 2 of 'pcap_filter' differ in signedness [-Wpointer-sign] if (pcap_filter(io.pcap, texpr) < 0) { ^~~~~ In file included from lbio.c:48:0: ../inc/pcaputil.h:20:5: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int pcap_filter(pcap_t *pcap, const char *fmt, ...); ^~~~~~~~~~~ lbio.c: In function 'lbio_send_ip_pkt': lbio.c:460:13: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(c, " ", sizeof(c)); ^ In file included from /usr/include/features.h:428:0, from /usr/include/sys/types.h:25, from ../config.h:119, from lbio.c:26: /usr/include/bits/string_fortified.h:103:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'ctl.c' || echo './'`ctl.c labrea_init.c: In function 'build_bpf_filter': labrea_init.c:126:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] int len = strlen(texpr); ^~~~~ In file included from labrea_init.c:29:0: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ labrea_init.c:130:15: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness [-Wpointer-sign] if (strlcpy(p, chunk, len) >= len) { ^ In file included from labrea_init.c:26:0: ../config.h:123:9: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ labrea_init.c:130:18: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] if (strlcpy(p, chunk, len) >= len) { ^~~~~ In file included from labrea_init.c:26:0: ../config.h:123:9: note: expected 'const char *' but argument is of type 'const u_char * {aka const unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ labrea_init.c: In function 'read_number': labrea_init.c:165:16: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(buf, p, sizeof(buf)); /* Copy, watching for buffer overflow */ ^ In file included from labrea_init.c:26:0: ../config.h:123:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^~~~~~~ labrea_init.c: In function 'labrea_init': labrea_init.c:375:28: warning: pointer targets in passing argument 1 of 'read_number' differ in signedness [-Wpointer-sign] io.intf_num = read_number(optarg); ^~~~~~ labrea_init.c:159:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' read_number (u_char *p) ^~~~~~~~~~~ labrea_init.c:423:38: warning: pointer targets in passing argument 1 of 'read_number' differ in signedness [-Wpointer-sign] ctl.throttlesize = read_number(optarg); ^~~~~~ labrea_init.c:159:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' read_number (u_char *p) ^~~~~~~~~~~ labrea_init.c:426:30: warning: pointer targets in passing argument 1 of 'read_number' differ in signedness [-Wpointer-sign] ctl.rate = read_number(optarg); ^~~~~~ labrea_init.c:159:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' read_number (u_char *p) ^~~~~~~~~~~ labrea_init.c:441:31: warning: pointer targets in passing argument 1 of 'read_number' differ in signedness [-Wpointer-sign] ctl.maxbw = read_number(optarg); ^~~~~~ labrea_init.c:159:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' read_number (u_char *p) ^~~~~~~~~~~ labrea_init.c:462:32: warning: pointer targets in passing argument 1 of 'read_number' differ in signedness [-Wpointer-sign] ctl.syslog_port = read_number(optarg); ^~~~~~ labrea_init.c:159:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' read_number (u_char *p) ^~~~~~~~~~~ labrea_init.c:475:36: warning: pointer targets in passing argument 1 of 'read_number' differ in signedness [-Wpointer-sign] ctl.debuglevel = read_number(optarg); ^~~~~~ labrea_init.c:159:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' read_number (u_char *p) ^~~~~~~~~~~ labrea_init.c:543:22: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, bpf, BPFSIZE); ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:543:29: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, bpf, BPFSIZE); ^~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:553:24: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, " or (", BPFSIZE); ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:553:31: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, " or (", BPFSIZE); ^~~~~~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:556:19: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, argv[c], BPFSIZE); /* tack on another argument */ ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:556:26: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, argv[c], BPFSIZE); /* tack on another argument */ ^~~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:558:24: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, ")", BPFSIZE); ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:558:31: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, ")", BPFSIZE); ^~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:568:21: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, " or (", BPFSIZE); ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:568:28: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, " or (", BPFSIZE); ^~~~~~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:573:25: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, mybuffer, BPFSIZE); ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:573:32: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, mybuffer, BPFSIZE); ^~~~~~~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:576:23: warning: pointer targets in passing argument 1 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, ")", BPFSIZE); ^~~~~ labrea_init.c:123:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:576:30: warning: pointer targets in passing argument 2 of 'build_bpf_filter' differ in signedness [-Wpointer-sign] build_bpf_filter(texpr, ")", BPFSIZE); ^~~ labrea_init.c:123:1: note: expected 'const u_char * {aka const unsigned char *}' but argument is of type 'char *' build_bpf_filter(u_char *texpr, const u_char *chunk, const size_t siz) ^~~~~~~~~~~~~~~~ labrea_init.c:670:13: warning: pointer targets in passing argument 1 of 'lbio_init' differ in signedness [-Wpointer-sign] lbio_init(dev, texpr); ^~~ In file included from labrea_init.c:54:0: ../inc/lbio.h:66:7: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' void lbio_init(u_char *dev, u_char *texpr); ^~~~~~~~~ labrea_init.c:670:18: warning: pointer targets in passing argument 2 of 'lbio_init' differ in signedness [-Wpointer-sign] lbio_init(dev, texpr); ^~~~~ In file included from labrea_init.c:54:0: ../inc/lbio.h:66:7: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' void lbio_init(u_char *dev, u_char *texpr); ^~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'utils.c' || echo './'`utils.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'pcaputil.c' || echo './'`pcaputil.c In file included from ctl.c:49:0: ctl.c: In function 'ctl_init_arrays': ../inc/labrea.h:100:24: warning: pointer targets in passing argument 3 of 'util_nk_new' differ in signedness [-Wpointer-sign] #define ETH_ADDR_BOGUS "\x00\x00\x0f\xff\xff\xff" ^ ctl.c:479:53: note: in expansion of macro 'ETH_ADDR_BOGUS' util_nk_new(ip , current - CULLTIME + arp_delay, ETH_ADDR_BOGUS); ^~~~~~~~~~~~~~ In file included from ctl.c:52:0: ../inc/utils.h:57:6: note: expected 'const uint8_t * {aka const unsigned char *}' but argument is of type 'char *' int util_nk_new (const ip_addr_t offset, const time_t culltime, ^~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'bget.c' || echo './'`bget.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'pkt.c' || echo './'`pkt.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -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 -Wall -c `test -f 'strlcpy.c' || echo './'`strlcpy.c utils.c: In function 'util_print': utils.c:131:22: error: format not a string literal and no format arguments [-Werror=format-security] syslog(INFOTYPE, buf); ^~~ utils.c: In function 'util_detach': utils.c:219:3: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup(0); ^~~~~~ utils.c:220:3: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup(0); ^~~~~~ cc1: some warnings being treated as errors make[2]: *** [Makefile:243: utils.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/labrea-2.5-stable-1/src' make[1]: *** [Makefile:188: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/labrea-2.5-stable-1' make: *** [Makefile:143: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.JeUtqP (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.JeUtqP (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff