[Openswan Users] openswan-2.4.13 and KLIPS

Rick Cooper rcooper at dwford.com
Sat Jul 5 20:50:04 EDT 2008


 

 > -----Original Message-----
 > From: users-bounces at openswan.org 
 > [mailto:users-bounces at openswan.org] On Behalf Of Rick Cooper
 > Sent: Saturday, July 05, 2008 8:47 PM
 > To: OpenSwan Users
 > Subject: [Openswan Users] openswan-2.4.13 and KLIPS
 > 
 > I am trying to build the klips support for 2.4.13 and run 
 > into a problem
 > kernel build make modules.
 > Kernel is centos 2.6.18-92.1.6.el5.centos.plus-i686
 > 
 > I installed the openswan-2.4.13.kernel-2.6-natt.patch.gz and 
 > that applied

OOPS! I DID NOT APPLY THE ABOVE MENTIONED PATCH. I applied
The klips patch openswan-2.4.13.kernel-2.6-klips.patch.gz
*NOT* the nat-t patch, I don't need nat-t support. Sorry.



 > fine, one item had minor fuzz
 > The kernel build goes fine (make dep, make oldconfig, and 
 > make bzImage)
 > until I get to make modules and the error is:
 > 
 > In file included from include/openswan/ipsec_param.h:178,
 >                  from net/ipsec/ipsec_init.c:30:
 > include/linux/ip.h:108: error: expected identifier or '(' 
 > before 'const'
 > include/linux/ip.h:108: error: expected ')' before '->' token
 > In file included from include/linux/ipv6.h:190,
 >                  from include/net/protocol.h:29,
 >                  from net/ipsec/ipsec_init.c:47:
 > include/linux/tcp.h:168: error: expected identifier or '(' 
 > before 'const'
 > include/linux/tcp.h:168: error: expected ')' before '->' token
 > In file included from include/linux/ipv6.h:191,
 >                  from include/net/protocol.h:29,
 >                  from net/ipsec/ipsec_init.c:47:
 > include/linux/udp.h:32: error: expected identifier or '(' 
 > before 'const'
 > include/linux/udp.h:32: error: expected ')' before '->' token
 > make[2]: *** [net/ipsec/ipsec_init.o] Error 1
 > make[1]: *** [net/ipsec] Error 2
 > make: *** [net] Error 2
 > 
 > I checked the referenced header sources and all of them are 
 > failing at:
 > 
 > static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
 > {
 > 	return (struct iphdr *)skb_network_header(skb);
 > }
 > 
 > I assume it would also dislike:
 > 
 > static inline struct iphdr *ipip_hdr(const struct sk_buff *skb)
 > {
 > 	return (struct iphdr *)skb_transport_header(skb);
 > }
 > 
 > Is there a known bug with this that isn't mentioned in the 
 > openswan docs?
 > Gcc version is:
 > gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)
 > 
 > 
 > 
 > 
 > Rick Cooper
 > 
 > 
 > 
 > --
 > This message has been scanned for viruses and
 > dangerous content by MailScanner, and is
 > believed to be clean.
 > 
 > 
 > _______________________________________________
 > Users at openswan.org
 > http://lists.openswan.org/mailman/listinfo/users
 > Building and Integrating Virtual Private Networks with Openswan: 
 > http://www.amazon.com/gp/product/1904811256/104-3099591-29463
 > 27?n=283155
 > 


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Users mailing list