Forwarding from downstream.
Description of problem:
After upgrade to Fedora 32, upon login, I get error window saying
Plugin "CPU Frequency Monitor" unexpectedly left the panel, do you want to restart it?
and re-executing does not help.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add CPU Frequence Monitor to XFCE panel on Fedora 32.
Error window saying Plugin "CPU Frequency Monitor" unexpectedly left the panel, do you want to restart it?
It shows up in the panel and starts showing the frequency.
In ~/.xsession-errors, there is
(process:1872): xfce4-panel-wrapper-CRITICAL **: 13:38:58.691: Wrapper cpufreq-21: Failed to open plugin module "/usr/lib64/xfce4/panel/plugins/libcpufreq.so": /usr/lib64/xfce4/panel/plugins/libcpufreq.so: undefined symbol: cpuFreq.
Red Hat provides a patch to avoid confusion in gcc10:
Jonathan Wakely 2020-05-03 10:11:02 CEST
It looks like the problem is due to this change in GCC:
"GCC now defaults to -fno-common. As a result, global variable accesses are more efficient on various targets. In C, global variables with multiple tentative definitions now result in linker errors. With -fcommon such definitions are silently merged during linking."
Your change to the spec file changes the variable from multiple definitions to *no* definitions (just declarations).
You need to declare it in the header, and define it in exactly one file, as explained at https://gcc.gnu.org/gcc-10/porting_to.html#common
-- GitLab Migration Automatic Message --
This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-cpufreq-plugin/-/issues/6.
Please create an account or use an existing account on one of our supported OAuth providers.
If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests
Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev