[lttng-dev] lttng-modules-2.7.0 : compilation error
Zvi Vered
veredz72 at gmail.com
Wed Dec 2 22:20:21 EST 2015
Hello,
I'm tried to compile lttng-modules:
more /proc/version:
Linux version 2.6.32-279.el6.x86_64
(mockbuild at c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red
Hat 4.4.6-4) (GCC) )
#1 SMP Fri Jun 22 12:19:21 UTC 2012
yum install kernel-headers
cd lttng-modules-2.7.0
make
and got:
LTTNG_KERNELDIR=/lib/modules/2.6.32-279.el6.x86_64/build make -C
/lib/modules/2.6.32-279.el6.x86_64/build
M=/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
CC [M] /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.o
In file included from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/frontend_api.h:1,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/api.h:35,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/api.h:1,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client.h:177,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.c:29:
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:1:
error: pasting "per_cpu__" and "*" does not give a valid preprocessing
token
In file included from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/frontend_api.h:1,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/api.h:35,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/api.h:1,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client.h:177,
from
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.c:29:
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:
In function ‘lib_ring_buffer_put_cpu’:
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
error: ‘per_cpu__’ undeclared (first use in this function)
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
error: (Each undeclared identifier is reported only once
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
error: for each function it appears in.)
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
error: ‘lib_ring_buffer_nesting’ undeclared (first use in this
function)
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
warning: type defaults to ‘int’ in declaration of ‘type name’
/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
error: invalid type argument of ‘unary *’ (have ‘int’)
make[2]: *** [/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.o]
Error 1
make[1]: *** [_module_/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0]
Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
I did not add yet the required components to the kernel.
Can you help ?
Best regards,
Z.V
More information about the lttng-dev
mailing list