Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611364 - dev-util/sysdig needs a version bump for updated CPU hotplug API in 4.10 kernel
Summary: dev-util/sysdig needs a version bump for updated CPU hotplug API in 4.10 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL: https://github.com/draios/sysdig/pull...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-02 00:54 UTC by Thomas Deutschmann (RETIRED)
Modified: 2017-03-03 16:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for 4.10.x kernels (kernel-4.10.patch,8.91 KB, patch)
2017-03-03 14:29 UTC, Andreas Proteus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2017-03-02 00:54:19 UTC
With sys-kernel/gentoo-sources-4.10.1:

*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c: In function ‘cpu_callback’:
*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c:1979:7: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function)
*  case CPU_DOWN_PREPARE:
*       ^
*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c:1979:7: note: each undeclared identifier is reported only once for each function it appears in
*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c: In function ‘sysdig_init’:
*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c:2132:2: error: implicit declaration of function ‘register_cpu_notifier’ [-Werror=implicit-function-declaration]
*  register_cpu_notifier(&cpu_notifier);
*  ^
*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c: In function ‘sysdig_exit’:
*/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.c:2181:2: error: implicit declaration of function ‘unregister_cpu_notifier’ [-Werror=implicit-function-declaration]
*  unregister_cpu_notifier(&cpu_notifier);
*  ^
*cc1: some warnings being treated as errors
*make[2]: *** [scripts/Makefile.build:294: /var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver/main.o] Error 1
*make[2]: *** Waiting for unfinished jobs....
*make[1]: *** [Makefile:1490: _module_/var/tmp/portage/dev-util/sysdig-0.14.0/work/sysdig-0.14.0/driver] Error 2
*make[1]: Leaving directory '/usr/src/linux-4.10.1-gentoo'
*make: *** [Makefile:9: all] Error 2
* * ERROR: dev-util/sysdig-0.14.0::gentoo failed (compile phase):


Upstream has already released v0.15.0 which contains a bug fix (https://github.com/draios/sysdig/commit/bf396c002ce467c029a9577b627cd688df4ebc19).
Comment 1 Andreas Proteus 2017-03-03 14:29:24 UTC
Created attachment 465804 [details, diff]
Patch for 4.10.x kernels

This patch worked for me.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2017-03-03 16:22:23 UTC
Now in repository, https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3dfaf33ea07e55a735befa0eadb3a31009d4e77