Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#56160 - [collectd] turbostat plugin missing again
Attached to Project:
Community Packages
Opened by Ralf Barth (Haggy) - Monday, 30 October 2017, 03:24 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 10 November 2017, 00:22 GMT
Opened by Ralf Barth (Haggy) - Monday, 30 October 2017, 03:24 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 10 November 2017, 00:22 GMT
|
DetailsDescription:
It's missing again since the last update. Please see/reopen: Last time, a clean rebuild did the trick. Additional info: * package version(s) collectd 5.7.2-5 |
This task depends upon
Closed by Gaetan Bisson (vesath)
Friday, 10 November 2017, 00:22 GMT
Reason for closing: Fixed
Additional comments about closing: 5.7.2-6 in [community]
Friday, 10 November 2017, 00:22 GMT
Reason for closing: Fixed
Additional comments about closing: 5.7.2-6 in [community]
Can you please see if you manage to build a working turbostat on your system and send me proposed PKGBUILD changes when you do?
Cheers.
collectd: lt_dlopen ("/usr/lib/collectd/turbostat.so") failed: file not found. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
collectd: plugin_load: Load plugin "turbostat" failed with status 1.
Reason: Fixing the path of cpuid.h with the added sed, pointed the turbostat module to an empty (0 byte) kernel header file (at least as of 4.13.9 on x86_64). This led to compilation warnings about undefined function calls (implicit function declaration) of __get_cpuid(). This function is defined in cpuid.h, but the file is empty, hence no function declaration. While the module compiled with warnings, it was broken and refused to load in collectd. Removing the cpuid.h fix from your sed line made the module compile and load fine afterwards. Now it's using cpuid.h from default gcc header location (/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/cpuid.h) which declares all used functions.
On a sidenote: any idea why /usr/lib/modules/4.13.9-1-ARCH/build/include/config/x86/cpuid.h is an empty file?
./configure --linux-headers-path=/usr/lib/modules/4.13.11-1-ARCH/build/
Cheers.