Project

General

Profile

Bug #13402

Updated by Toomas Soome over 1 year ago

Build error with gcc 10: 
 <pre> 
     ld: fatal: symbol 'g_zfs' is multiply-defined: 
             (file zpool_main.o type=OBJT; file zpool_vdev.o type=OBJT); 
     ld: fatal: symbol 'g_zfs' is multiply-defined: 
             (file zpool_main.o type=OBJT; file zpool_iter.o type=OBJT); 
     ld: fatal: symbol 'g_zfs' is multiply-defined: 
             (file zpool_main.o type=OBJT; file zpool_util.o type=OBJT); 
     ld: fatal: file processing errors. No output written to zpool 
     collect2: error: ld returned 1 exit status 
     *** Error code 1 
     dmake: Fatal error: Command failed for target `zpool' 
     Current working directory /code/illumos-gate/usr/src/cmd/zpool 

 </pre> 

 gcc 10 did change default -fcommon to -fno-common

Back