Yep that was it, IPv6 was a module and openswan wasn't. Thanks. <br><br><div class="gmail_quote">2011/6/9 David McCullough <span dir="ltr"><<a href="mailto:david_mccullough@mcafee.com">david_mccullough@mcafee.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Jivin Yannick Koehler lays it down ...<br>
<div class="im">> I am attempting to compile OpenSwan with linux kernel 2.6.34.1 and get undefined errors:<br>
<br>
</div>Which version of openswan ? Which flavour of linux kernel (linus/redhat/..) ?<br>
<div><div></div><div class="h5"><br>
> net/built-in.o: In function `ipsec_klips_init':<br>
> (.text+0xa5a28): undefined reference to `inet6_add_protocol'<br>
> net/built-in.o: In function `ipsec_klips_init':<br>
> (.text+0xa5acc): undefined reference to `inet6_del_protocol'<br>
> net/built-in.o: In function `ipsec_cleanup':<br>
> (.text+0xa5bec): undefined reference to `inet6_del_protocol'<br>
> net/built-in.o: In function `ipsec_cleanup':<br>
> (.text+0xa5d08): undefined reference to `inet6_del_protocol'<br>
> net/built-in.o: In function `ipsec_tunnel_SAlookup':<br>
> (.text+0xaf1dc): undefined reference to `ipv6_chk_addr'<br>
> net/built-in.o: In function `ipsec_xmit_sanity_check_skb':<br>
> (.text+0xaffa4): undefined reference to `icmpv6_send'<br>
> net/built-in.o: In function `ipsec_xmit_init1':<br>
> (.text+0xb2104): undefined reference to `icmpv6_send'<br>
> net/built-in.o: In function `ipsec_xmit_init2':<br>
> (.text+0xb3130): undefined reference to `icmpv6_send'<br>
> net/built-in.o: In function `ipsec_set_dst':<br>
> ipsec_xmit.c:(.text+0xb3df8): undefined reference to `ip6_route_output'<br>
> net/built-in.o: In function `pfkey_getspi_parse':<br>
> pfkey_v2_parser.c:(.text+0xbb924): undefined reference to `ipv6_chk_addr'<br>
> net/built-in.o: In function `pfkey_update_parse':<br>
> pfkey_v2_parser.c:(.text+0xbc040): undefined reference to `ipv6_chk_addr'<br>
> net/built-in.o: In function `pfkey_add_parse':<br>
> pfkey_v2_parser.c:(.text+0xbc658): undefined reference to `ipv6_chk_addr'<br>
> make: *** [vmlinux] Error 1<br>
><br>
> Was this broke by adding support to newer kernels?<br>
> Or is it something I did wrong on my side.<br>
<br>
<br>
</div></div>Well those functions exist in linux-2.6.18 onwards (I haven't tested earlier<br>
than 2.6.18 but I believe they were there in all 2.6 kernels).<br>
<br>
Are you building openswan into a kernel that has ipv6 as a module by any<br>
chance ? Try building ipsec as a module and you will most likely be fine,<br>
or, compile ipv6 into the kernel (CONFIG_IPV6=y instead of m)<br>
<br>
Cheers,<br>
Davidm<br>
<font color="#888888"><br>
--<br>
David McCullough, <a href="mailto:david_mccullough@mcafee.com">david_mccullough@mcafee.com</a>, Ph:+61 734352815<br>
McAfee - SnapGear <a href="http://www.mcafee.com" target="_blank">http://www.mcafee.com</a> <a href="http://www.uCdot.org" target="_blank">http://www.uCdot.org</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Yannick Koehler <br>Courriel: <a href="mailto:yannick@koehler.name">yannick@koehler.name</a><br>Blog: <a href="http://corbeillepensees.blogspot.com">http://corbeillepensees.blogspot.com</a><br>