Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc --nodeps /builddir/build/SPECS/libnl3.spec'], chrootPath='/var/lib/mock/centos-7.1611.00-os-ppc/root'shell=FalseprintOutput=Trueenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc --nodeps /builddir/build/SPECS/libnl3.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc Building for target ppc Wrote: /builddir/build/SRPMS/libnl3-3.2.28-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/libnl3.spec'], chrootPath='/var/lib/mock/centos-7.1611.00-os-ppc/root'shell=Falseuid=1001env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=True) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/libnl3.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc Building for target ppc Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nt5Xko + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libnl-3.2.28 + /usr/bin/tar -xf - + /usr/bin/gzip -dc /builddir/build/SOURCES/libnl-3.2.28.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libnl-3.2.28 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (0001-compare-v4-addr-rh1370503.patch): + echo 'Patch #1 (0001-compare-v4-addr-rh1370503.patch):' + /usr/bin/patch -p1 --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/0001-compare-v4-addr-rh1370503.patch patching file lib/route/addr.c patching file include/netlink/utils.h patching file lib/utils.c + tar -xzf /builddir/build/SOURCES/libnl-doc-3.2.28.tar.gz + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0tCEJ1 + umask 022 + cd /builddir/build/BUILD + cd libnl-3.2.28 + autoreconf -vif autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: subdirectory doc not present autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'. libtoolize: copying file `build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory `.' + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' ppc == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build-aux/config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build-aux/config.guess' + ./configure --build=ppc-redhat-linux-gnu --host=ppc-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/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static 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 make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for ppc-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 dependency style of gcc... none checking for ppc-redhat-linux-gnu-ar... no checking for ppc-redhat-linux-gnu-lib... no checking for ppc-redhat-linux-gnu-link... no checking for ar... ar checking the archiver (ar) interface... ar checking for ppc-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking whether gcc and cc understand -c and -o together... yes checking build system type... powerpc-redhat-linux-gnu checking host system type... powerpc-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 whether ln -s works... yes 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 powerpc-redhat-linux-gnu file names to powerpc-redhat-linux-gnu format... func_convert_file_noop checking how to convert powerpc-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 ppc-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ppc-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ppc-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for ppc-redhat-linux-gnu-strip... no checking for strip... strip checking for ppc-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 ppc-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 for flex... flex checking for bison... bison -y checking for an ANSI C-conforming const... yes checking for inline... inline checking for ppc-redhat-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for CHECK... no checking for pow in -lm... configure: WARNING: *** Disabling building of unit tests yes checking for pthread_mutex_lock in -lpthread... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libnl-3.0.pc config.status: creating libnl-route-3.0.pc config.status: creating libnl-genl-3.0.pc config.status: creating libnl-nf-3.0.pc config.status: creating libnl-cli-3.0.pc config.status: creating libnl-xfrm-3.0.pc config.status: creating libnl-idiag-3.0.pc config.status: creating lib/Makefile config.status: creating include/Makefile config.status: creating src/Makefile config.status: creating src/lib/Makefile config.status: creating tests/Makefile config.status: creating man/Makefile config.status: creating python/Makefile config.status: creating python/setup.py config.status: creating python/doc/Makefile config.status: creating python/examples/Makefile config.status: creating python/netlink/Makefile config.status: creating python/netlink/genl/Makefile config.status: creating python/netlink/route/Makefile config.status: creating python/tests/Makefile config.status: creating include/netlink/version.h config.status: creating lib/defs.h config.status: executing depfiles commands config.status: executing libtool commands ------------------------------------------------------------------------------- NOTE There have been some changes starting with 3.2 regarding where and how libnl is being installed on the system in order to allow multiple libnl versions to be installed in parallel: - Headers will be installed in /usr/include/libnl3, therefore you will need to add "-I/usr/include/libnl3" to CFLAGS - The library basename was renamed to libnl-3, i.e. the SO names become libnl-3.so., libnl-route-3.so, etc. - libtool versioning was assumed, to ease detection of compatible library versions. If you are using pkg-config for detecting and linking against the library things will continue magically as if nothing every happened. If you are linking manually you need to adapt your Makefiles or switch to using pkg-config files. ------------------------------------------------------------------------------- + make Making all in include make[1]: Entering directory `/builddir/build/BUILD/libnl-3.2.28/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/builddir/build/BUILD/libnl-3.2.28/include' Making all in lib make[1]: Entering directory `/builddir/build/BUILD/libnl-3.2.28/lib' GEN route/cls/ematch_grammar.c GEN route/cls/ematch_syntax.c GEN route/pktloc_grammar.c GEN route/pktloc_syntax.c make all-am make[2]: Entering directory `/builddir/build/BUILD/libnl-3.2.28/lib' CC addr.lo CC attr.lo CC cache.lo CC cache_mngr.lo CC cache_mngt.lo CC data.lo CC error.lo CC handlers.lo CC msg.lo CC nl.lo CC object.lo CC socket.lo CC utils.lo CC version.lo CC hash.lo CC hashtable.lo CCLD libnl-3.la CC genl/ctrl.lo CC genl/family.lo CC genl/genl.lo CC genl/mngt.lo CCLD libnl-genl-3.la CC route/addr.lo CC route/class.lo CC route/cls.lo CC route/act.lo CC route/link.lo CC route/neigh.lo CC route/neightbl.lo CC route/nexthop.lo CC route/qdisc.lo CC route/route.lo CC route/route_obj.lo CC route/route_utils.lo CC route/rtnl.lo CC route/rule.lo CC route/tc.lo CC route/classid.lo CC route/cls/fw.lo CC route/cls/police.lo CC route/cls/u32.lo CC route/cls/basic.lo CC route/cls/cgroup.lo CC route/act/mirred.lo CC route/act/skbedit.lo CC route/cls/ematch.lo CC route/cls/ematch/container.lo CC route/cls/ematch/cmp.lo CC route/cls/ematch/nbyte.lo CC route/cls/ematch/text.lo CC route/cls/ematch/meta.lo CC route/link/api.lo CC route/link/vlan.lo CC route/link/dummy.lo CC route/link/bridge.lo In file included from ../include/linux-private/linux/if_bridge.h:18:0, from route/link/bridge.c:26: /usr/include/linux/in6.h:30:8: error: redefinition of 'struct in6_addr' struct in6_addr { ^ In file included from /usr/include/arpa/inet.h:22:0, from ../include/netlink-private/netlink.h:33, from route/link/bridge.c:20: /usr/include/netinet/in.h:210:8: note: originally defined here struct in6_addr ^ In file included from ../include/linux-private/linux/if_bridge.h:18:0, from route/link/bridge.c:26: /usr/include/linux/in6.h:41:8: error: redefinition of 'struct sockaddr_in6' struct sockaddr_in6 { ^ In file included from ../include/netlink-private/netlink.h:27:0, from route/link/bridge.c:20: /usr/include/sys/socket.h:91:17: note: originally defined here typedef union { __SOCKADDR_ALLTYPES ^ In file included from ../include/linux-private/linux/if_bridge.h:18:0, from route/link/bridge.c:26: /usr/include/linux/in6.h:49:8: error: redefinition of 'struct ipv6_mreq' struct ipv6_mreq { ^ In file included from /usr/include/arpa/inet.h:22:0, from ../include/netlink-private/netlink.h:33, from route/link/bridge.c:20: /usr/include/netinet/in.h:289:8: note: originally defined here struct ipv6_mreq ^ make[2]: Leaving directory `/builddir/build/BUILD/libnl-3.2.28/lib' make[2]: *** [route/link/bridge.lo] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/libnl-3.2.28/lib' RPM build errors: make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.0tCEJ1 (%build) Bad exit status from /var/tmp/rpm-tmp.0tCEJ1 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/libnl3.spec