<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>It is pushed into master and stable-2.6 as we speak, so you<br></div><div>can try it out.<br></div><div><br></div><div>Thanks!<br></div><div><br></div><div>Mathieu<br></div><div><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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>
</blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com<span name="x"></span><br></div></div></body></html>