[Openswan Users] openswan-2.4.13 and KLIPS

Rick Cooper rcooper at dwford.com
Sat Jul 5 20:47:11 EDT 2008


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
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.




More information about the Users mailing list