inlined from 'do_standby_switchover' at repmgr-action-standby.c:4314:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -fPIC repmgr-client.o repmgr-action-primary.o repmgr-action-standby.o repmgr-action-witness.o repmgr-action-bdr.o repmgr-action-cluster.o repmgr-action-node.o repmgr-action-service.o repmgr-action-daemon.o configfile.o configfile-scan.o log.o strutil.o controldata.o dirutil.o compat.o dbutils.o sysutils.o -L/usr/lib64 -lpgcommon -lpgport -lpq -L/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--as-needed -lpgcommon -lpgport -lpthread -lselinux -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm -o repmgr /usr/bin/ld: repmgr-action-primary.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-standby.o: in function `.LANCHOR3': /builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-witness.o: in function `.LANCHOR0': /builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-bdr.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-cluster.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-node.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-service.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here /usr/bin/ld: repmgr-action-daemon.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: multiple definition of `source_conninfo'; repmgr-client.o:/builddir/build/BUILD/repmgr-5.0.0/repmgr-client-global.h:218: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:70: repmgr] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.zE1Aqt (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.zE1Aqt (%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/repmgr.spec