Re: xtables-addons compiling warning/error Kernels below 3.7 not supported on ubuntu running mainline kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if I comment out all the LINUX_KERNEL_CODE check in compat_xtables.h,
it compiles fine.

On Fri, Dec 6, 2013 at 2:22 PM, Vincent Li <vincent.mc.li@xxxxxxxxx> wrote:
> maybe LINUX_VERSION_CODE is from the original ubuntu header
> /usr/include/linux/version.h ? here is the diff
>
>
> root@vincent-hp:/home/vincent/xtables-addons# diff -u
> /usr/include/linux/version.h
> /usr/src/linux-headers-3.13.0-rc2-custom/include/linux/version.h
> --- /usr/include/linux/version.h        2013-12-04 16:12:56.391368993 -0800
> +++ /usr/src/linux-headers-3.13.0-rc2-custom/include/linux/version.h
>  2013-10-11 12:58:33.000000000 -0700
> @@ -1,2 +1,2 @@
> -#define LINUX_VERSION_CODE 132640
> +#define LINUX_VERSION_CODE 132645
>  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
>
> I tried to symbolic link  the /usr/include/linux/version.h to
> /usr/src/linux-headers-3.13.0-rc2-custom/include/linux/version.h.
> didn't help.
>
>
>
> On Fri, Dec 6, 2013 at 12:34 PM, Jan Engelhardt <jengelh@xxxxxxx> wrote:
>>
>> On Friday 2013-12-06 19:37, Vincent Li wrote:
>>>checking kernel version that we will build against... 3.13.0.0 in
>>>/lib/modules/3.13.0-rc2-custom/build
>>>>>
>>>>>if [ -n "/lib/modules/3.13.0-rc2-custom/build" ]; then make -C
>>>>>/lib/modules/3.13.0-rc2-custom/build
>>>>>M=/usr/src/xtables-addons/extensions modules; fi;
>>>>>make[3]: Entering directory `/usr/src/linux-headers-3.13.0-rc2-custom'
>>>>>  CC [M]  /usr/src/xtables-addons/extensions/compat_xtables.o
>>>>>  CC [M]  /usr/src/xtables-addons/extensions/xt_CHAOS.o
>>>>>In file included from /usr/src/xtables-addons/extensions/xt_CHAOS.c:24:
>>>>>/usr/src/xtables-addons/extensions/compat_xtables.h:12:3: warning:
>>>>>#warning Kernels below 3.7 not supported.
>>
>> I have no explanation for why your LINUX_VERSION_CODE evaluates
>> to something < 3.7 despite /build having 3.13 in its Makefiles.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux