Fixes build with newer gcc.
Without this, depends builds fail with gcc7, maybe gcc6.
Fixes build with newer gcc.
Without this, depends builds fail with gcc7, maybe gcc6.
Sounds fine to me.
This fails to build for me with this warning:
/home/andy/bitcoin4/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.4-5ee293e84f5/missing: line 81: gperf: command not found
WARNING: 'gperf' is missing on your system.
You might have modified some files without having the proper
tools for further handling them. Check the 'README' file, it
often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in
case some other package contains this missing 'gperf' program.
It looks like travis failed with the same error
Installing gperf results in this error:
make[4]: Entering directory '/home/andy/bitcoin4/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.4-5ee293e84f5/src'
CC fcatomic.lo
CC fcblanks.lo
CC fccache.lo
CC fccfg.lo
CC fccharset.lo
CC fccompat.lo
CC fcdefault.lo
CC fcdbg.lo
CC fcdir.lo
CC fcformat.lo
CC fcfreetype.lo
CC fcinit.lo
CC fcfs.lo
CC fclang.lo
CC fclist.lo
CC fcmatch.lo
CC fcmatrix.lo
CC fcname.lo
CC fcobjs.lo
CC fcpat.lo
CC fcrange.lo
In file included from fcobjs.c:33:0:
fcobjshash.gperf:28:1: error: conflicting types for ‘FcObjectTypeHash’
"aspect",FC_ASPECT_OBJECT
^~~~~~~~~~~~~~~~
fcobjs.c:28:1: note: previous declaration of ‘FcObjectTypeHash’ was here
FcObjectTypeHash (register const char *str, register FC_GPERF_SIZE_T len);
^~~~~~~~~~~~~~~~
In file included from fcobjs.c:33:0:
fcobjshash.gperf:172:1: error: conflicting types for ‘FcObjectTypeLookup’
fcobjs.c:31:1: note: previous declaration of ‘FcObjectTypeLookup’ was here
FcObjectTypeLookup (register const char *str, register FC_GPERF_SIZE_T len);
^~~~~~~~~~~~~~~~~~
Makefile:642: recipe for target 'fcobjs.lo' failed
make[4]: *** [fcobjs.lo] Error 1
grr! Upstream borked this. I'll just cherry-pick the patch into our current version instead.
Hehe, that's what you get when you say "fixes build", you get reports of new build problems.
More seriously: this is only used for linking against, right? does raising the fontconfig version raise the minimum fontconfig version requires on the user's system? (by changing the ABI)
Gitian build errors:
/home/ubuntu/build/bitcoin/depends/work/build/i686-pc-linux-gnu/fontconfig/2.12.4-e57b06ea870/missing: line 81: gperf: command not found
WARNING: 'gperf' is missing on your system.
This seems more trouble than it's worth for 0.15.
Could we maybe backport just the build fix for gcc6/7?
This should also be backported to 0.14.3.
Not in the current state at least...
See comment for more detail
Travis is a timeout, and probably unrelated, respinning
Can confirm that 3498a8d018fa02de17e1f9c4cda49f4c7edb3c6c compiles on gcc7.1.1
Changed the PR title to reflect what the commit does :)