stefantalpalaru / w_scan2

w_scan fork (channel scan tool which generates ATSC, DVB-C, DVB-S/S2 and DVB-T/T2 channels.conf files)
GNU General Public License v2.0
81 stars 24 forks source link

"multiple definition of" errors when linking with gcc 10.1 #24

Closed M-Reimer closed 4 years ago

M-Reimer commented 4 years ago

I get a lot of messages like these when compiling/linking w_scan2 with gcc 10.1:

/usr/bin/ld: src/descriptors.o:(.bss+0x0): multiple definition of `p_transponder_t'; src/countries.o:(.bss+0x0): first defined here
/usr/bin/ld: src/descriptors.o:(.bss+0x20): multiple definition of `transponder_t'; src/countries.o:(.bss+0x20): first defined here
/usr/bin/ld: src/descriptors.o:(.bss+0xe8): multiple definition of `p_service_t'; src/countries.o:(.bss+0xe8): first defined here
/usr/bin/ld: src/descriptors.o:(.bss+0x100): multiple definition of `service_t'; src/countries.o:(.bss+0x100): first defined here
/usr/bin/ld: src/diseqc.o:(.bss+0x8): multiple definition of `p_transponder_t'; src/countries.o:(.bss+0x0): first defined here
/usr/bin/ld: src/diseqc.o:(.bss+0x20): multiple definition of `transponder_t'; src/countries.o:(.bss+0x20): first defined here
/usr/bin/ld: src/diseqc.o:(.bss+0xe8): multiple definition of `p_service_t'; src/countries.o:(.bss+0xe8): first defined here
/usr/bin/ld: src/diseqc.o:(.bss+0x100): multiple definition of `service_t'; src/countries.o:(.bss+0x100): first defined here
/usr/bin/ld: src/dump-dvbscan.o:(.bss+0x0): multiple definition of `p_transponder_t'; src/countries.o:(.bss+0x0): first defined here
/usr/bin/ld: src/dump-dvbscan.o:(.bss+0x20): multiple definition of `transponder_t'; src/countries.o:(.bss+0x20): first defined here
/usr/bin/ld: src/dump-dvbscan.o:(.bss+0xe8): multiple definition of `p_service_t'; src/countries.o:(.bss+0xe8): first defined here
/usr/bin/ld: src/dump-dvbscan.o:(.bss+0x100): multiple definition of `service_t'; src/countries.o:(.bss+0x100): first defined here
/usr/bin/ld: src/dump-vdr.o:(.bss+0x0): multiple definition of `p_transponder_t'; src/countries.o:(.bss+0x0): first defined here
/usr/bin/ld: src/dump-vdr.o:(.bss+0x20): multiple definition of `transponder_t'; src/countries.o:(.bss+0x20): first defined here
stefantalpalaru commented 4 years ago

Must be https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

M-Reimer commented 4 years ago

Most probably

stefantalpalaru commented 4 years ago

Fixed in 1.0.9