[Openswan dev] Fwd: unkown symbol ipsec_nat_encap while insert ipsec.ko

Tian Yazhou phio.asia at gmail.com
Fri Jul 11 01:33:31 EDT 2008


Hi Paul,

No matter how I undef or disable this CONFIG_IPSEC_NAT_TRAVERSAL, the result
is the same: 'ipsec_nat_encap' undefined, and I 'grep' for
'ipsec_nat_encap', still found that the problem is in some assembly language
file. I change to 2.4.4 OpenSWAN, and I can compile and insert the 'ipsec'
kernel module without problem. Which means, the problem is like Gilles told
me in the previous mail that I should use an old version instead the latest
version. I'll try to use this 2.4.4 version. Thanks for your patient help
:-)

On Thu, Jul 10, 2008 at 10:09 PM, Paul Wouters <paul at xelerance.com> wrote:

> On Thu, 10 Jul 2008, Tian Yazhou wrote:
>
> > I added a CONFIG_IPSEC_NAT_TRAVERSAL=n line in linux/net/ipsec/defconfig
> to
> > disable NAT-T, also tried remove this line. The result is same,
> > ipsec_nat_encap unknown when insert ipsec.ko into running kernel.
> >
> > ipsec_nat_encap is defined in  linux/net/ipsec/ipsec_xmit.c, but it is
> > undefed already by CONFIG_IPSEC_NAT_TRAVERSAL:
> >    1727
> >    1728 #ifdef CONFIG_IPSEC_NAT_TRAVERSAL
>
> Don't use CONFIG_IPSEC_NAT_TRAVERSAL=n, but surround it with #if 0 in
> the linux/net/ipsec/defconfig file.
>
> > I think the problem is in several assembly language file, like
> > "modobj26/ipsec_mast.s":
>
> rm -r modobj26 OBJ.*
>
> You should be building in an OBJ.* directory anyway, so i think you
> might have compiled it strangly once to get the modobj26 directory.
>
> Paul
>



-- 
Dream as if you'll live forever; Live as if you'll die today. - James Dean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/dev/attachments/20080711/eded699c/attachment.html 


More information about the Dev mailing list