<div dir="ltr">Thanks Mathieu! In the meantime I'm using 2.6.0 for the moment and will try your fix when it's ready.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 11:28 AM, Mathieu Desnoyers <span dir="ltr"><<a href="mailto:mathieu.desnoyers@efficios.com" target="_blank">mathieu.desnoyers@efficios.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">----- Original Message -----<br>
> ----- Original Message -----<br>
><br>
> > Hello there. I was wondering if anybody knew what is causing this<br>
> > compilation<br>
> > error I'm getting on a new Ubuntu 14.04 VM with a 3.13.0 kernel. It does<br>
> > not<br>
> > find the DEBIAN_API_VERSION symbol. The use of that was introduced in 2.6.1<br>
> > apparently:<br>
><br>
> > <a href="http://fossies.org/diffs/lttng-modules/2.6.0_vs_2.6.1/lttng-kernel-version.h-diff.html" target="_blank">http://fossies.org/diffs/lttng-modules/2.6.0_vs_2.6.1/lttng-kernel-version.h-diff.html</a><br>
><br>
> > I'm following the instructions in the Download page to install from the PPA<br>
> > :<br>
> > <a href="http://lttng.org/download/#ubuntu" target="_blank">http://lttng.org/download/#ubuntu</a><br>
><br>
> > This the error I'm getting. Thanks in advance for any help!<br>
><br>
> > In file included from<br>
> > /var/lib/dkms/lttng-modules/2.6.x+stable+bzr727+pack22+201504291801~ubuntu14.04.1/build/wrapper/page_alloc.h:28:0,<br>
> > from<br>
> > /var/lib/dkms/lttng-modules/2.6.x+stable+bzr727+pack22+201504291801~ubuntu14.04.1/build/lttng-events.c:27:<br>
> > /var/lib/dkms/lttng-modules/2.6.x+stable+bzr727+pack22+201504291801~ubuntu14.04.1/build/wrapper/../lttng-kernel-version.h:60:57:<br>
> > error: operator '+' has no right operand ((LINUX_VERSION_CODE *<br>
> > 1000000ULL)<br>
> > + DEBIAN_API_VERSION)<br>
><br>
> I pushed the following fix into master and stable-2.6 branches<br>
> of lttng-modules. Can you give it a try ?<br>
><br>
> commit a748963b76f353d459a3faf85eecc96f52811eee<br>
> Author: Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>><br>
> Date: Thu May 14 09:13:49 2015 -0400<br>
><br>
> Fix: build against Ubuntu kernels<br>
><br>
> Recent Ubuntu kernels appear to define DEBIAN_API_VERSION, but they are<br>
> not really a Debian kernel per-se: the abi-debian-version.sh cannot find<br>
> the expected Debian kernel version string layout.<br>
><br>
> Therefore, change the conditional check to use directly the<br>
> LTTNG_DEBIAN_VERSION_CODE define, which is defined only when the<br>
> abi-debian-version.sh script figures out it builds against a Debian<br>
> kernel.<br>
><br>
> Signed-off-by: Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>><br>
<br>
</div></div>I reverted this commit. DEBIAN_API_VERSION is actually<br>
the define I use to communicate between the makefile<br>
and the C code. It should work even if not defined<br>
(see the check in LTTNG_DEBIAN_KERNEL_RANGE()).<br>
<br>
Hrm. But it appears that the operators generated by<br>
those macros end up being invalid if DEBIAN_API_VERSION<br>
is undefined. Will fix and push upstream.<br>
<br>
Thanks,<br>
<br>
Mathieu<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Thanks,<br>
><br>
> Mathieu<br>
><br>
> > _______________________________________________<br>
> > lttng-dev mailing list<br>
> > <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> > <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
><br>
> --<br>
><br>
> --<br>
> Mathieu Desnoyers<br>
> EfficiOS Inc.<br>
> <a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a><br>
><br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
><br>
<br>
--<br>
Mathieu Desnoyers<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a><br>
</div></div></blockquote></div><br></div>