Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580620 - sys-fs/hfsplusutils with gcc-5: blockiter.c:148:8: error: redefinition of 'blockiter_curr'?
Summary: sys-fs/hfsplusutils with gcc-5: blockiter.c:148:8: error: redefinition of 'bl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-5
  Show dependency tree
 
Reported: 2016-04-20 10:13 UTC by Leno Hou
Modified: 2016-04-23 06:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.