Created attachment 199648 [details]
GCC includes during compilation /usr/include/machine/md_var.h. This header has a definition of void cpu_setup(u_int) which clashes with static short cpu_setup in src/freebsd.cc. Change name of cpu_setup to conky_cpu_setup to fix compilation.
Tested on powerpc64 and amd64.
Hardware sponsored by IntegriCloud.
Thanks for the patch. I'll commit it shortly, after some basic testing.
I'll also be proposing this upstream.
A commit references this bug:
Date: Thu Nov 29 10:33:29 UTC 2018
New revision: 486162
Fix build with GCC-based architectures.
Fix changes the name of a variable to avoid clash with a function
name defined in an include file used by GCC.
Submitted by: Piotr Kubaj <firstname.lastname@example.org>
Patch committed. Thanks.
Added related upstream pull request in URL field.