Bug #838
closed
Compilation error on Ubuntu kernel 3.16+
Added by Anonymous almost 10 years ago.
Updated almost 10 years ago.
Description
Compiling lttng-modules on Ubuntu 14.10 with today's updates (which is using a 3.16.x kernel), I get the following errors with both the stable-2.5 and master branches (and also with the lttng-modules-2.5.0 tarball for that matter):
CC [M] /home/alexandre/src/lttng/lttng-modules/lttng-modules/lttng-ring-buffer-metadata-mmap-client.o
CC [M] /home/alexandre/src/lttng/lttng-modules/lttng-modules/lttng-statedump-impl.o
/home/alexandre/src/lttng/lttng-modules/lttng-modules/lttng-statedump-impl.c: In function ‘lttng_statedump_process_ns’:
/home/alexandre/src/lttng/lttng-modules/lttng-modules/lttng-statedump-impl.c:393:2: error: implicit declaration of function ‘task_nsproxy’ [-Werror=implicit-function-declaration]
proxy = task_nsproxy(p);
^
/home/alexandre/src/lttng/lttng-modules/lttng-modules/lttng-statedump-impl.c:393:8: warning: assignment makes pointer from integer without a cast
proxy = task_nsproxy(p);
^
cc1: some warnings being treated as errors
This seems different from bug #823, as I don't even get to that point.
Files
- Subject changed from Compilation error on kernel 3.16 to Compilation error on kernel 3.16+
FWIW, the same error also happens with kernel 3.17-rc5.
- Subject changed from Compilation error on kernel 3.16+ to Compilation error on Ubuntu kernel 3.16+
- Status changed from New to Invalid
Ok, the "2.6~pre" (aka master branch) package now compiles and installs fine on Ubuntu 14.10. And seems to work too.
There seems to be other issues trying to compile the modules against a mainline 3.17 kernel, but that's outside of the scope of this bug ;)
I got this compilation error with:
Linux francoisdorsal 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
lttng-module commit:
commit 74f7b56a78514d321aaf8b3fffae174999070f71
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Mon Sep 29 13:29:12 2014 -0400
It works fine with 3.13.0-35-generic.
I confirm that this bug appears on the ubuntu stable kernel (trusty).
The attached patch fixes this problem.
- Status changed from Invalid to Feedback
Can you confirm whether it's now OK with stable-2.5 and master lttng-modules with these kernels ?
I just tried both master and stable-2.5, on both Ubuntu 14.04 (kernel 3.13) and 14.10 (kernel 3.16), and it all compiled fine!
I had marked it Invalid since it was a distribution-specific issue, but I'm glad to see it was fixed upstream despite it ;)
- Status changed from Feedback to Resolved
Also available in: Atom
PDF