On Thu, Aug 29, 2013 at 10:23 AM, Adam Novak <[email protected]> wrote:
> Hello,
>
> I've attached 
> ./build_dir/target-i386_uClibc-0.9.33.2/linux-x86_generic/linux-3.8.13/.config.
> It has a line:
>
> CONFIG_NF_NAT_IPV6=m
>
> This matches:
>
> CONFIG_NF_NAT_IPV4=m
>

Sorry, for kernel-modules it has to be (=m).

> I am not sure if this is my openwrt-config, or if that is a different
> file. No file named "openwrt-config" exists in my tree.
>

There should be a (.config) file in your OpenWrt root-dir, this is
what I meant with "your openwrt-config".
Sorry, if I was not precise enough.

- Sedat -

> Thanks,
> -Adam
>
>
> On Thu, Aug 29, 2013 at 1:16 AM, Sedat Dilek <[email protected]> wrote:
>> On Thu, Aug 29, 2013 at 10:07 AM, Adam Novak <[email protected]> wrote:
>>> Hello,
>>>
>>> I am trying to convince the OpenWRT build process to build
>>> nf_nat_ipv6.ko (which, by analogy with the nf_nat_ipv4.ko, I would
>>> expect to contain the new Kernel 3.7+ IPv6 nat chain and MASQUERADE
>>> target). I'm starting with r37855, and trying to use this patch:
>>>
>>> https://dev.openwrt.org/attachment/ticket/13446/netfilter.3.diff
>>>
>>> However, just making these makefile changes does not result in the
>>> module building. I think this is because the makefile is instructing
>>> the build system to only build if a certain menuconfig option is
>>> selected, and that option doesn't exist to select. If I try changing:
>>>
>>> $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NF_NAT_IPV6,
>>> $(P_V6)nf_nat_ipv6 $(P_V6)ip6table_nat, ge 3.8.0),))
>>>
>>> to:
>>>
>>> $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NF_NAT,
>>> $(P_V6)nf_nat_ipv6 $(P_V6)ip6table_nat, ge 3.8.0),))
>>>
>>> it looks like it makes a bit more progress, but the build dies with:
>>>
>>> ERROR: module 
>>> '/home/anovak/workspace/openwrt/build_dir/target-i386_uClibc-0.9.33.2/linux-x86_generic/linux-3.8.13/net/ipv6/netfilter/nf_nat_ipv6.ko'
>>> is missing.
>>> make[3]: *** 
>>> [/home/anovak/workspace/openwrt/bin/x86/packages/kmod-ipt-nat_3.8.13-1_x86.ipk]
>>> Error 1
>>>
>>> Does anyone who speaks Kernel Makefile want to tell me what exactly
>>> that patch says to do and why the netfilter ipv6 NAT stuff isn't
>>> building? Where can I find the Makefile that actually controls the
>>> compilation of C source files into netfilter .ko files, and determines
>>> what C code builds into what .ko file? Is the source for this feature
>>> just missing from the openwrt tree?
>>>
>>
>> ( I am not using OpenWrt, just regularly looking over the build-system. )
>>
>> People wanting to help will be interested in your openwrt-config.
>> Can you please attach it?
>> Can you check if CONFIG_NF_NAT_IPV6 is enabled (=y) in your
>> kernel-config (see .config file in your unpacked Linux-kernel
>> sources)?
>>
>> - Sedat -
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to