-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 -DENABLE_IPV6 -DD_DNS_THREADED -D_REENTRANT -D_THREAD_SAFE -W -Wno-unused-parameter -Waggregate-return -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -o dpid dpi.o dpi_socket_dir.o dpid.o dpid_common.o main.o misc_new.o ../dpip/libDpip.a ../dlib/libDlib.a /usr/bin/ld: dpi_socket_dir.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: first defined here /usr/bin/ld: dpid.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: first defined here /usr/bin/ld: dpid_common.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:64: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:61: multiple definition of `services_list'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:61: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:58: multiple definition of `dpi_attr_list'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:58: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:55: multiple definition of `numsocks'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:55: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:52: multiple definition of `numdpis'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:52: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:31: multiple definition of `srs_fd'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:31: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:28: multiple definition of `srs_name'; dpid.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid.h:28: first defined here /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: first defined here /usr/bin/ld: misc_new.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/builddir/build/BUILD/dillo-3.0.5/dpid/dpid_common.h:44: first defined here collect2: error: ld returned 1 exit status make[2]: Leaving directory '/builddir/build/BUILD/dillo-3.0.5/dpid' make[2]: *** [Makefile:430: dpid] Error 1 make[1]: *** [Makefile:477: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/dillo-3.0.5' make: *** [Makefile:362: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.mtTINx (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mtTINx (%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: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/dillo.spec