Created attachment 199648 [details] patch 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: Author: madpilot Date: Thu Nov 29 10:33:29 UTC 2018 New revision: 486162 URL: https://svnweb.freebsd.org/changeset/ports/486162 Log: 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. PR: 233616 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Changes: head/sysutils/conky/files/patch-src_freebsd.cc
Patch committed. Thanks. Added related upstream pull request in URL field.