+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/libnasl.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.vkXywH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libnasl + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/libnasl-2.2.11.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libnasl + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libnasl-config.patch):' Patch #0 (libnasl-config.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file nasl-config.in + echo 'Patch #1 (libnasl-2.2.4.pki.patch):' Patch #1 (libnasl-2.2.4.pki.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile patching file nasl/Makefile patching file nasl/nasl_crypto2.c + echo 'Patch #2 (libnasl-nasl-config-multi.patch):' Patch #2 (libnasl-nasl-config-multi.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file nasl-config.in + echo 'Patch #3 (libnasl-openssl.patch):' Patch #3 (libnasl-openssl.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file nasl/nasl_crypto2.c + echo 'Patch #4 (libnasl-bison3.patch):' Patch #4 (libnasl-bison3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file nasl/nasl_grammar.y + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ovdPBe + umask 022 + cd /builddir/build/BUILD + cd libnasl + 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 + 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"~' ./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 --enable-shared --disable-static --with-pic creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (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) works... yes checking whether the C compiler (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) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... gcc -E checking host system type... riscv64-redhat-linux-gnu checking build system type... riscv64-redhat-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib ) checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for file... /usr/bin/file checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC 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.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether -lc should be explicitly linked in... no creating libtool checking whether make sets ${MAKE}... yes checking for a BSD compatible install... /usr/bin/install -c checking if the compiler understands -pipe... yes checking for nessus-config... /usr/bin/nessus-config checking for openssl/md2.h... yes checking for openssl/md4.h... yes checking for openssl/md5.h... yes checking for bison... /usr/bin/bison checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for -lrpcsvc... no checking for /usr/ucbinclude/fcntl.h... no checking for unistd.h... yes checking for getopt.h... yes checking for string.h... yes checking for strings.h... yes checking for sys/sockio.h... no checking for sys/socketio.h... no checking for netinet/in.h... yes checking for netinet/in_systm.h... yes checking for netinet/ip.h... yes checking for netinet/ip_icmp.h... yes checking for netinet/ip.h... (cached) yes checking for netinet/udp.h... yes checking for netinet/protocols.h... no checking for netinet/ip_udp.h... no checking for netinet/ip_tcp.h... no checking for netinet/tcpip.h... no checking for sys/param.h... yes checking for sys/ioctl.h... yes checking for rpc/rpc.h... no checking for dlfcn.h... (cached) yes checking for sys/un.h... yes checking for memory.h... yes checking for ctype.h... yes checking for errno.h... yes checking for sys/types.h... yes checking for stdlib.h... yes checking for stdio.h... yes checking for pthread.h... yes checking for sys/filio.h... no checking for pwd.h... yes checking for assert.h... yes checking for netdb.h... yes checking for netinet/in.h... (cached) yes checking for arpa/inet.h... yes checking for poll.h... yes checking for sys/poll.h... yes checking for netinet/ip_tcp.h... (cached) no checking for sys/stat.h... yes checking for stat.h... no checking for net/if.h... yes checking for sys/mman.h... yes checking for search.h... yes checking for locale.h... yes checking for sys/socket.h... yes checking for netinet/ip.h... (cached) yes checking for netinet/tcp.h... yes checking for working alloca.h... yes checking for alloca... yes checking for lstat... yes checking for memmove... yes checking for gettimeofday... yes checking for gethrtime... no checking for getrusage... yes checking for rand... yes checking for strchr... yes checking for memcpy... yes checking for select... yes checking for poll... yes checking for vsnprintf... yes checking for memmem... yes checking for bzero... yes checking for bcopy... yes checking for addr2ascii... no checking for inet_neta... no checking for signal... yes checking for sigaction... yes checking for wait... yes checking for wait3... yes checking for wait4... yes checking for waitpid... yes checking for lfind... yes checking for lfind in -lcompat... no checking whether byte ordering is bigendian... no checking for time_t... yes checking for pid_t... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking size of short... 2 checking size of int... 4 checking size of long... 8 checking struct ip contains ip_csum... no checking struct ip... yes checking struct ip has ip_hl... yes checking struct icmp... yes checking struct udphdr... yes checking BSD struct udphdr... yes checking struct tcphdr... yes checking struct tcphdr has th_off... yes checking struct tcphdr has th_x2_off... no checking for long file names... yes checking for inet_aton in -lc... yes checking for inet_aton in -lresolv... yes checking for inet_aton in -lsocket... no checking for inet_aton in -lnsl... no checking if sockaddr{} has sa_len member... no checking for a working strndup implementation... no checking for pcap_restart in -lpcap... no checking for pcap_yyrestart in -lpcap... no checking for yyrestart in -lpcap... no no yacc restart func found perhaps libpcap wasn't compiled with bison/flex? updating cache ./config.cache creating ./config.status creating nasl.tmpl creating nasl-config creating include/config.h creating nasl/strutils.h + make cd nasl && make make[1]: Entering directory '/builddir/build/BUILD/libnasl/nasl' /bin/sh /builddir/build/BUILD/libnasl/libtool --silent gcc -pipe -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 `sh ./cflags` -c nasl_packet_forgery.c nasl_packet_forgery.c: In function 'forge_tcp_packet': nasl_packet_forgery.c:371:12: warning: variable 'pkt' set but not used [-Wunused-but-set-variable] u_char * pkt; ^~~ /bin/sh /builddir/build/BUILD/libnasl/libtool --silent gcc -pipe -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 `sh ./cflags` -c nasl_socket.c nasl_socket.c: In function 'nasl_send': nasl_socket.c:593:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ nasl_socket.c:597:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' retc = alloc_tree_cell(0, NULL); ^~~~ /bin/sh /builddir/build/BUILD/libnasl/libtool --silent gcc -pipe -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 `sh ./cflags` -c nasl_crypto.c nasl_crypto.c: In function 'nasl_sha': nasl_crypto.c:115:2: warning: implicit declaration of function 'SHA'; did you mean 'SHA1'? [-Wimplicit-function-declaration] SHA((unsigned char*)data, len, (unsigned char*)md); ^~~ SHA1 nasl_crypto.c: In function 'nasl_hmac_sha': nasl_crypto.c:209:26: warning: implicit declaration of function 'EVP_sha'; did you mean 'EVP_sha1'? [-Wimplicit-function-declaration] return nasl_hmac(lexic, EVP_sha()); ^~~~~~~ EVP_sha1 nasl_crypto.c:209:26: warning: passing argument 2 of 'nasl_hmac' makes pointer from integer without a cast [-Wint-conversion] nasl_crypto.c:171:20: note: expected 'const EVP_MD * {aka const struct evp_md_st *}' but argument is of type 'int' static tree_cell * nasl_hmac(lex_ctxt * lexic, const EVP_MD * evp_md) ^~~~~~~~~ nasl_crypto.c: In function 'nasl_hmac_dss': nasl_crypto.c:221:26: warning: implicit declaration of function 'EVP_dss'; did you mean 'EVP_rc4'? [-Wimplicit-function-declaration] return nasl_hmac(lexic, EVP_dss()); ^~~~~~~ EVP_rc4 nasl_crypto.c:221:26: warning: passing argument 2 of 'nasl_hmac' makes pointer from integer without a cast [-Wint-conversion] nasl_crypto.c:171:20: note: expected 'const EVP_MD * {aka const struct evp_md_st *}' but argument is of type 'int' static tree_cell * nasl_hmac(lex_ctxt * lexic, const EVP_MD * evp_md) ^~~~~~~~~ /bin/sh /builddir/build/BUILD/libnasl/libtool --silent gcc -pipe -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 `sh ./cflags` -c -DNESSUS_STATE_DIR=\"/var/lib\" -DNESSUS_PKI_DIR=\"/etc/pki\" nasl_crypto2.c nasl_crypto2.c: In function 'nasl_bn_cmp': nasl_crypto2.c:58:7: warning: variable 'vn' set but not used [-Wunused-but-set-variable] int vn; ^~ nasl_crypto2.c: In function 'nasl_bn_random': nasl_crypto2.c:100:14: warning: variable 'needlen' set but not used [-Wunused-but-set-variable] long need, needlen, s1len; ^~~~~~~ nasl_crypto2.c: In function 'nasl_pem_to': nasl_crypto2.c:181:16: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' key = rsa->d; ^~ nasl_crypto2.c:188:16: error: dereferencing pointer to incomplete type 'DSA {aka struct dsa_st}' key = dsa->priv_key; ^~ nasl_crypto2.c:153:17: warning: variable 'plen' set but not used [-Wunused-but-set-variable] long privlen, plen, s1len; ^~~~ nasl_crypto2.c: In function 'nasl_dh_generate_key': nasl_crypto2.c:263:5: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' dh->p = BN_new(); ^~ nasl_crypto2.c: In function 'nasl_bf_cbc': nasl_crypto2.c:527:8: warning: variable 'enckeylen' set but not used [-Wunused-but-set-variable] long enckeylen, ivlen, datalen; ^~~~~~~~~ nasl_crypto2.c: In function 'nasl_dsa_do_verify': nasl_crypto2.c:642:51: error: dereferencing pointer to incomplete type 'DSA_SIG {aka struct DSA_SIG_st}' if (BN_bin2bn((const unsigned char*)r, rlen, sig->r) == 0) ^~ nasl_crypto2.c: In function 'verify_script_signature': nasl_crypto2.c:910:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] msg_len = msg_len - ( (int)t - (int)msg); ^ nasl_crypto2.c:910:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] msg_len = msg_len - ( (int)t - (int)msg); ^ make[1]: *** [Makefile:129: nasl_crypto2.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libnasl/nasl' make: *** [Makefile:4: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.ovdPBe (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ovdPBe (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff