lmysqlclient -L/usr/lib64 -lz -lm /bin/sh ../../libtool --tag=CC --mode=link 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -finline-functions -funsigned-char -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o mydnsimport import.o import-axfr.o import-tinydns.o util.o ../../src/lib/libmydns.a ../../lib/libmydnsutil.a -L/usr/lib64 -lmysqlclient -L/usr/lib64 -lz -lm collect2: error: ld returned 1 exit status make[3]: *** [Makefile:486: mydnscheck] Error 1 make[3]: *** Waiting for unfinished jobs.... libtool: link: 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -finline-functions -funsigned-char -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o mydnsexport export.o util.o ../../src/lib/libmydns.a ../../lib/libmydnsutil.a -L/usr/lib64 -lmysqlclient -lz -lm /usr/bin/ld: ../../lib/libmydnsutil.a(conf.o):(.bss+0x0): multiple definition of `Conf'; util.o:util.c:(.bss+0x0): first defined here libtool: link: 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -finline-functions -funsigned-char -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o mydns-conf conf.o ../../src/lib/libmydns.a ../../lib/libmydnsutil.a -L/usr/lib64 -lmysqlclient -lz -lm collect2: error: ld returned 1 exit status make[3]: *** [Makefile:490: mydnsexport] Error 1 libtool: link: 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -finline-functions -funsigned-char -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o mydnsimport import.o import-axfr.o import-tinydns.o util.o ../../src/lib/libmydns.a ../../lib/libmydnsutil.a -L/usr/lib64 -lmysqlclient -lz -lm /usr/bin/ld: ../../lib/libmydnsutil.a(conf.o):(.bss+0x0): multiple definition of `Conf'; util.o:util.c:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status make[3]: *** [Makefile:494: mydnsimport] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/mydns-1.2.8.32/src/util' make[2]: *** [Makefile:415: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/mydns-1.2.8.32/src' make[1]: *** [Makefile:471: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/mydns-1.2.8.32' make: *** [Makefile:401: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.rnjHjG (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.rnjHjG (%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/mydns.spec