DieterBaum / qt-fsarchiver

Program for Backup and restore partitions
GNU General Public License v3.0
18 stars 9 forks source link

qt-fsarchiver fails to compile with GCC10 #7

Open embar- opened 4 years ago

embar- commented 4 years ago

openSUSE Tumbleweed (/Factory) now upgraded to GCC10. Now qt-fsarchiver fails to compile (tested 0.8.5-12 and 0.8.5-18 versions).

[  179s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: build/oper_save.o (symbol from plugin): in function `createar_obj_regfile_multi':
[  179s] (.text+0x0): multiple definition of `anzahlfile'; build/oper_restore.o (symbol from plugin):(.text+0x0): first defined here
[  179s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: build/oper_save.o (symbol from plugin): in function `createar_obj_regfile_multi':
[  179s] (.text+0x0): multiple definition of `progress'; build/oper_restore.o (symbol from plugin):(.text+0x0): first defined here
[  185s] collect2: error: ld returned 1 exit status

See full attachment: qt-fsarchiver_0.8.5-18_buildlog.txt

audiomuze commented 4 years ago

Same outcome here using with 0.8.5-18 with g++ (GCC) 10.2.0:

/usr/bin/ld: build/oper_save.o:(.bss+0x0): multiple definition of `progress'; build/oper_restore.o:(.bss+0x8): first defined here
/usr/bin/ld: build/oper_save.o:(.bss+0x8): multiple definition of `anzahlfile'; build/oper_restore.o:(.bss+0x10): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:429: bin/qt-fsarchiver-terminal] Error 1

@DieterBaum, would be much appreciated if you could address this.