intel/openlldp

Can't build with -fno-common

marxin opened this issue · 2 comments

Note that -fno-common will become default in GCC 10:

[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldptool_cmds.o (symbol from plugin): in function `lldp_head':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldptool_cmds.o (symbol from plugin): in function `lldp_head':
[   39s] (.text+0x0): multiple definition of `lldp_cli_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_mand_clif.o (symbol from plugin): in function `mand_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_basman_clif.o (symbol from plugin): in function `basman_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_cli_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_basman_clif.o (symbol from plugin): in function `basman_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_med_clif.o (symbol from plugin): in function `med_print_hex_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_cli_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_med_clif.o (symbol from plugin): in function `med_print_hex_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_8023_clif.o (symbol from plugin): in function `ieee8023_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_cli_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_8023_clif.o (symbol from plugin): in function `ieee8023_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_dcbx_clif.o (symbol from plugin): in function `dcbx_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_cli_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_dcbx_clif.o (symbol from plugin): in function `dcbx_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here
[   39s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: lldp_8021qaz_clif.o (symbol from plugin): in function `ieee8021qaz_print_tlv':
[   39s] (.text+0x0): multiple definition of `lldp_head'; lldptool.o (symbol from plugin):(.text+0x0): first defined here

See pull request #55 and confirm that it resolves this issue.

Closing after merging pull request #55 . If the issue persists, please reopen.