lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -o CMakeFiles/ubertooth.dir/ubertooth.c.o -c /builddir/build/BUILD/ubertooth-2018-12-R1/host/libubertooth/src/ubertooth.c make[2]: Leaving directory '/builddir/build/BUILD/ubertooth-2018-12-R1' make[2]: Entering directory '/builddir/build/BUILD/ubertooth-2018-12-R1' [ 6%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth_control.c.o cd /builddir/build/BUILD/ubertooth-2018-12-R1/libubertooth/src && /usr/bin/cc -DRELEASE=\"2018-12-R1\" -DVERSION=\"1.1\" -Dubertooth_EXPORTS -I/usr/include/libusb-1.0 -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -o CMakeFiles/ubertooth.dir/ubertooth_control.c.o -c /builddir/build/BUILD/ubertooth-2018-12-R1/host/libubertooth/src/ubertooth_control.c make[2]: Leaving directory '/builddir/build/BUILD/ubertooth-2018-12-R1' make[2]: Entering directory '/builddir/build/BUILD/ubertooth-2018-12-R1' [ 15%] Linking C shared library libubertooth.so cd /builddir/build/BUILD/ubertooth-2018-12-R1/libubertooth/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/ubertooth.dir/link.txt --verbose=1 /usr/bin/cc -fPIC -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,libubertooth.so.1 -o libubertooth.so.1.1 CMakeFiles/ubertooth.dir/ubertooth.c.o CMakeFiles/ubertooth.dir/ubertooth_callback.c.o CMakeFiles/ubertooth.dir/ubertooth_control.c.o CMakeFiles/ubertooth.dir/ubertooth_fifo.c.o -lusb-1.0 -lbtbb /usr/bin/ld: CMakeFiles/ubertooth.dir/ubertooth_callback.c.o: in function `.LANCHOR1': /builddir/build/BUILD/ubertooth-2018-12-R1/host/libubertooth/src/ubertooth_callback.c:30: multiple definition of `packet_counter_max'; CMakeFiles/ubertooth.dir/ubertooth.c.o:/builddir/build/BUILD/ubertooth-2018-12-R1/host/libubertooth/src/ubertooth.c:50: first defined here collect2: error: ld returned 1 exit status make[2]: *** [libubertooth/src/CMakeFiles/ubertooth.dir/build.make:154: libubertooth/src/libubertooth.so.1.1] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/ubertooth-2018-12-R1' make[1]: *** [CMakeFiles/Makefile2:325: libubertooth/src/CMakeFiles/ubertooth.dir/all] Error 2 make: *** [Makefile:153: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.keZbAt (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.keZbAt (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 0d9b976400e4431c84903d41f5150b04 -D /var/lib/mock/f33-build-223290-48451/root -a --capability=cap_ipc_lock --bind=/tmp/mock-resolv.7ll_23id:/etc/resolv.conf --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=en_US.UTF-8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ubertooth.spec