Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 580620

Summary: sys-fs/hfsplusutils with gcc-5: blockiter.c:148:8: error: redefinition of 'blockiter_curr'?
Product: Gentoo Linux Reporter: Leno Hou <lenohou>
Component: [OLD] GCC PortingAssignee: PPC Porters <ppc>
Status: RESOLVED FIXED    
Severity: normal CC: blueness
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.debian.org/777902
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    

Description Leno Hou 2016-04-20 10:13:54 UTC
See gcc5 porting guide in http://gcc.gnu.org/gcc-5/porting_to.html

gcc5 do not support inline function defined in HEADs file. The recommendation is
Declare the function prototype in HEADs file and defined the function in .c .cpp file.

See hfsplusutils build failures in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777902

Reproducible: Always
Comment 1 Leno Hou 2016-04-22 02:43:36 UTC
Yes, that's the error you changed. Thanks Alex Xu
I'll attach the patch later.