[Openswan Users] issue compiling with linux 2.6.34.1
Yannick Koehler
yannick at koehler.name
Sun Jun 19 08:13:48 EDT 2011
Yep that was it, IPv6 was a module and openswan wasn't. Thanks.
2011/6/9 David McCullough <david_mccullough at mcafee.com>
>
> Jivin Yannick Koehler lays it down ...
> > I am attempting to compile OpenSwan with linux kernel 2.6.34.1 and get
> undefined errors:
>
> Which version of openswan ? Which flavour of linux kernel
> (linus/redhat/..) ?
>
> > net/built-in.o: In function `ipsec_klips_init':
> > (.text+0xa5a28): undefined reference to `inet6_add_protocol'
> > net/built-in.o: In function `ipsec_klips_init':
> > (.text+0xa5acc): undefined reference to `inet6_del_protocol'
> > net/built-in.o: In function `ipsec_cleanup':
> > (.text+0xa5bec): undefined reference to `inet6_del_protocol'
> > net/built-in.o: In function `ipsec_cleanup':
> > (.text+0xa5d08): undefined reference to `inet6_del_protocol'
> > net/built-in.o: In function `ipsec_tunnel_SAlookup':
> > (.text+0xaf1dc): undefined reference to `ipv6_chk_addr'
> > net/built-in.o: In function `ipsec_xmit_sanity_check_skb':
> > (.text+0xaffa4): undefined reference to `icmpv6_send'
> > net/built-in.o: In function `ipsec_xmit_init1':
> > (.text+0xb2104): undefined reference to `icmpv6_send'
> > net/built-in.o: In function `ipsec_xmit_init2':
> > (.text+0xb3130): undefined reference to `icmpv6_send'
> > net/built-in.o: In function `ipsec_set_dst':
> > ipsec_xmit.c:(.text+0xb3df8): undefined reference to `ip6_route_output'
> > net/built-in.o: In function `pfkey_getspi_parse':
> > pfkey_v2_parser.c:(.text+0xbb924): undefined reference to `ipv6_chk_addr'
> > net/built-in.o: In function `pfkey_update_parse':
> > pfkey_v2_parser.c:(.text+0xbc040): undefined reference to `ipv6_chk_addr'
> > net/built-in.o: In function `pfkey_add_parse':
> > pfkey_v2_parser.c:(.text+0xbc658): undefined reference to `ipv6_chk_addr'
> > make: *** [vmlinux] Error 1
> >
> > Was this broke by adding support to newer kernels?
> > Or is it something I did wrong on my side.
>
>
> Well those functions exist in linux-2.6.18 onwards (I haven't tested
> earlier
> than 2.6.18 but I believe they were there in all 2.6 kernels).
>
> Are you building openswan into a kernel that has ipv6 as a module by any
> chance ? Try building ipsec as a module and you will most likely be fine,
> or, compile ipv6 into the kernel (CONFIG_IPV6=y instead of m)
>
> Cheers,
> Davidm
>
> --
> David McCullough, david_mccullough at mcafee.com, Ph:+61 734352815
> McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org
>
--
Yannick Koehler
Courriel: yannick at koehler.name
Blog: http://corbeillepensees.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20110619/d9f4ad01/attachment.html
More information about the Users
mailing list