+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/tcpcrypt.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.RbMz0t + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tcpcrypt-0.4 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/tcpcrypt-0.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd tcpcrypt-0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eGKGka + umask 022 + cd /builddir/build/BUILD + cd tcpcrypt-0.4 + 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/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub '/usr/lib/rpm/redhat/config.sub' -> './config/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess '/usr/lib/rpm/redhat/config.guess' -> './config/config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./config/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 --disable-static --disable-rpath configure: WARNING: unrecognized options: --disable-rpath 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 riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking whether ln -s works... yes checking for riscv64-redhat-linux-gnu-ar... no checking for riscv64-redhat-linux-gnu-lib... no checking for riscv64-redhat-linux-gnu-link... no checking for ar... ar checking the archiver (ar) interface... ar checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking 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 riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking how to convert riscv64-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 riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-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 riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) 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... no checking dependency style of gcc... none checking OS... linux-gnu checking whether to use asm checksum routine... no checking for cap_set_flag in -lcap... yes checking for EVP_OpenInit in -lcrypto... yes checking for nfq_open in -lnetfilter_queue... yes checking for nfct_open in -lnetfilter_conntrack... yes checking for nfnl_rcvbufsiz in -lnfnetlink... yes checking for pcap_open_live in -lpcap... yes checking for pthread_create in -lpthread... yes checking for bind in -lwsock32... no checking for GetAdaptersInfo in -liphlpapi... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for inline... inline checking for mode_t... yes checking for size_t... yes checking for ssize_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for working alloca.h... yes checking for alloca... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for bzero... yes checking for clock_gettime... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for memmove... yes checking for memset... yes checking for select... yes checking for socket... yes checking for strchr... yes checking for strdup... yes checking for strtoul... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating tests/atlocal config.status: creating Makefile config.status: creating src/tcpcrypt_version.h config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing tests/atconfig commands configure: WARNING: unrecognized options: --disable-rpath + make -j4 make all-am make[1]: Entering directory '/builddir/build/BUILD/tcpcrypt-0.4' gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-linux.o `test -f 'src/linux.c' || echo './'`src/linux.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-unix.o `test -f 'src/unix.c' || echo './'`src/unix.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o shared/util_tcnetstat-socket_address.o `test -f 'shared/socket_address.c' || echo './'`shared/socket_address.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o shared/util_tcs-socket_address.o `test -f 'shared/socket_address.c' || echo './'`shared/socket_address.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o unix/util_tcs-priv.o `test -f 'unix/priv.c' || echo './'`unix/priv.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o unix/linux/util_tcs-priv.o `test -f 'unix/linux/priv.c' || echo './'`unix/linux/priv.c In file included from src/unix.c:27:0: src/tcpcrypt.h:41:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes] } __attribute__ ((gcc_struct, __packed__)); ^ /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o lib/sockopt.lo lib/sockopt.c /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o shared/socket_address.lo shared/socket_address.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-tcpcryptd.o `test -f 'src/tcpcryptd.c' || echo './'`src/tcpcryptd.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-tcpcrypt.o `test -f 'src/tcpcrypt.c' || echo './'`src/tcpcrypt.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c lib/sockopt.c -fPIC -DPIC -o lib/.libs/sockopt.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c shared/socket_address.c -fPIC -DPIC -o shared/.libs/socket_address.o In file included from src/tcpcrypt.c:13:0: src/tcpcrypt.h:41:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes] } __attribute__ ((gcc_struct, __packed__)); ^ In file included from src/tcpcrypt.c:5:0: src/tcpcrypt.c: In function 'kill_rdr': src/tcpcrypt.c:212:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] assert(peer->tc_rdr_peer = tc); ^ In file included from src/tcpcryptd.c:21:0: src/tcpcrypt.h:41:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes] } __attribute__ ((gcc_struct, __packed__)); ^ gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-crypto.o `test -f 'src/crypto.c' || echo './'`src/crypto.c In file included from src/crypto.c:12:0: src/tcpcrypt.h:41:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes] } __attribute__ ((gcc_struct, __packed__)); ^ gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-crypto_rsa.o `test -f 'src/crypto_rsa.c' || echo './'`src/crypto_rsa.c gcc -DHAVE_CONFIG_H -I. -I./src -I./include -I./src -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 -Wno-deprecated-declarations -c -o src/src_tcpcryptd-crypto_aes.o `test -f 'src/crypto_aes.c' || echo './'`src/crypto_aes.c In file included from src/crypto_rsa.c:14:0: src/tcpcrypt.h:41:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes] } __attribute__ ((gcc_struct, __packed__)); ^ In file included from /usr/include/openssl/asn1.h:24:0, from /usr/include/openssl/rsa.h:16, from src/crypto_rsa.c:8: src/crypto_rsa.c: In function 'generate_keys': src/crypto_rsa.c:64:35: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' k->k_blen = BN_num_bytes(k->k_rsa->n); ^ In file included from src/crypto_aes.c:12:0: src/tcpcrypt.h:41:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes] } __attribute__ ((gcc_struct, __packed__)); ^ make[1]: *** [Makefile:1002: src/src_tcpcryptd-crypto_rsa.o] Error 1 make[1]: *** Waiting for unfinished jobs.... src/crypto_aes.c:20:18: error: field 'ap_ctx' has incomplete type EVP_CIPHER_CTX ap_ctx; ^~~~~~ make[1]: *** [Makefile:1016: src/src_tcpcryptd-crypto_aes.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/tcpcrypt-0.4' make: *** [Makefile:560: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.eGKGka (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.eGKGka (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff