+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/perl-Net-Patricia.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.P46WLu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Net-Patricia-1.22 + /usr/bin/gzip -dc /builddir/build/SOURCES/Net-Patricia-1.22.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-Patricia-1.22 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AvSyMr + umask 022 + cd /builddir/build/BUILD + cd Net-Patricia-1.22 + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-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 ' Checking if your kit is complete... Looks good MakeMaker (v7.3) Warning (non-fatal): Target 'dynamic' depends on targets in skipped section 'dynamic_lib' Warning (non-fatal): Target 'static' depends on targets in skipped section 'static_lib' Generating a Unix-style Makefile Writing Makefile for Net::Patricia::libpatricia Writing MYMETA.yml and MYMETA.json Generating a Unix-style Makefile Writing Makefile for Net::Patricia Writing MYMETA.yml and MYMETA.json + make -j4 cd libpatricia && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-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 " PREFIX="/usr" PASTHRU_DEFINE=' ' PASTHRU_INC=' ' Running Mkbootstrap for Patricia () "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/Net-Patricia-1.22/typemap' Patricia.xs > Patricia.xsc make[1]: Entering directory '/builddir/build/BUILD/Net-Patricia-1.22/libpatricia' gcc -c -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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 -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE" patricia.c chmod 644 "Patricia.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Patricia.bs blib/arch/auto/Net/Patricia/Patricia.bs 644 cp Patricia.pm blib/lib/Net/Patricia.pm mv Patricia.xsc Patricia.c gcc -c -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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 -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib64/perl5/CORE" Patricia.c patricia.c:15:13: warning: 'copyright' defined but not used [-Wunused-variable] static char copyright[] = ^~~~~~~~~ Patricia.xs: In function 'constant': Patricia.xs:169:1: warning: label 'not_there' defined but not used [-Wunused-label] not_there: ^~~~~~~~~ ar cr libpatricia.a patricia.o : libpatricia.a make[1]: Leaving directory '/builddir/build/BUILD/Net-Patricia-1.22/libpatricia' make[1]: Entering directory '/builddir/build/BUILD/Net-Patricia-1.22/libpatricia' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/Net-Patricia-1.22/libpatricia' At top level: Patricia.xs:47:1: warning: 'not_here' defined but not used [-Wunused-function] not_here(s) ^~~~~~~~ rm -f blib/arch/auto/Net/Patricia/Patricia.so gcc -lpthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong Patricia.o -o blib/arch/auto/Net/Patricia/Patricia.so libpatricia/libpatricia.a \ -lnsl -lperl \ /usr/bin/ld: cannot find -lnsl collect2: error: ld returned 1 exit status make: *** [Makefile:482: blib/arch/auto/Net/Patricia/Patricia.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.AvSyMr (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.AvSyMr (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff