re lldp_8021qaz_cmds.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: /usr/bin/ld: lldp_orgspec_clif.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldptool.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here lldp_evb22.o: in function `.LANCHOR2': /builddir/build/BUILD/lldpad-1.0.1/./include/qbg_ecp22.h:55: multiple definition of `ecp22_mode'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/qbg_ecp22.h:55: first defined here /usr/bin/ld: lldp_evb22.o: in function `.LANCHOR2': /builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: lldp_cisco_clif.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldptool.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: /usr/bin/ld: lldp_evb22_clif.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldptool.h:32: multiple definition of `lldp_cli_head'; lldptool.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldptool.h:32: first defined here /usr/bin/ld: lldp_evb22_clif.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldptool.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here lldp_evb22_cmds.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: qbg/ecp22.o: in function `.LANCHOR2': /builddir/build/BUILD/lldpad-1.0.1/./lldp/l2_packet.h:64: multiple definition of `STRUCT_PACKED'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/lldp/l2_packet.h:64: first defined here /usr/bin/ld: qbg/ecp22.o: in function `.LANCHOR2': /builddir/build/BUILD/lldpad-1.0.1/./include/qbg_ecp22.h:55: multiple definition of `ecp22_mode'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/qbg_ecp22.h:55: first defined here /usr/bin/ld: qbg/ecp22.o: in function `.LANCHOR2': /builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: qbg/vdp22.o: in function `.LANCHOR2': /builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: qbg/vdpnl.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here /usr/bin/ld: qbg/vdp22_cmds.o: in function `.LANCHOR0': /builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: multiple definition of `lldp_head'; lldpad.o:/builddir/build/BUILD/lldpad-1.0.1/./include/lldp_mod.h:99: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:808: lldptool] Error 1 collect2: error: ld returned 1 exit status make: *** [Makefile:802: lldpad] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.forpcl (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.forpcl (%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/lldpad.spec