<< | Thread Index | >> ]    [ << | Date Index | >> ]

To: R Dicaire <kritek,AT,gmail,DOT,com>
Subject: Re: Compile error on kernel 2.6.16
From: Erik Wallin <erikw,AT,sec,DOT,se>
Date: Sun, 28 May 2006 11:53:01 +0200
Cc: cipe-l,AT,inka,DOT,de
In-reply-to: <e754e90605271038y21446b46iaf98b86d6da21877@mail.gmail.com>
References: <e754e90605271038y21446b46iaf98b86d6da21877@mail.gmail.com>

For recent kernels you need to apply a few patches to build cipe-1.6.0.
Different ones are required from kernel 2.6.11 and upwards. The latest
one is needed from kernel version 2.6.14 and upwards. I've tried it with
success on 2.6.15 and 2.6.16 (but, see below). You can download it from
the sourceforge project site:

http://sourceforge.net/tracker/?group_id=66201&atid=513682
<http://sourceforge.net/tracker/?group_id=66201&atid=513682>

For kernel 2.6.16 you need an additional patch that I emailed to the
list a few days ago. It's only a trivial addition of a missing include file.

Add the following line to cipe/output.c

#include <net/ip.h>
+#include <net/route.h>
#include <net/icmp.h>

/Erik

R Dicaire wrote:

> Hi folks, I used to use cipe a few years ago and was pleased with it
> immensely. I'm trying to implement it again, under linux kernel 2.6.16
> and get the following:

[...]

> In file included from /usr/src/cipe-1.6.0/2.6.16-i386-cb/cipe.h:161,
>                 from /usr/src/cipe-1.6.0/2.6.16-i386-cb/module.c:15:
> /usr/src/cipe-1.6.0/2.6.16-i386-cb/cryptoapi.h:94: error: redefinition
> of `crypto_tfm_ctx'
> include/linux/crypto.h:303: error: `crypto_tfm_ctx' previously defined
> here
> In file included from /usr/src/cipe-1.6.0/2.6.16-i386-cb/module.c:15:
> /usr/src/cipe-1.6.0/2.6.16-i386-cb/cipe.h:274:1: warning:
> "CURRENT_TIME_SEC" redefined
> In file included from include/linux/skbuff.h:20,
>                 from include/linux/if_ether.h:110,
>                 from include/linux/netdevice.h:29,
>                 from /usr/src/cipe-1.6.0/2.6.16-i386-cb/cipe.h:152,
>                 from /usr/src/cipe-1.6.0/2.6.16-i386-cb/module.c:15:
> include/linux/time.h:94:1: warning: this is the location of the
> previous definition
> gmake[3]: *** [/usr/src/cipe-1.6.0/2.6.16-i386-cb/module.o] Error 1
> gmake[2]: *** [_module_/usr/src/cipe-1.6.0/2.6.16-i386-cb] Error 2
>
> I've searched the mailing list archives and found nothing specific to
> this issue, is there a patch or other fix?
>


<< | Thread Index | >> ]    [ << | Date Index | >> ]