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

To: cipe-l,AT,inka,DOT,de
Subject: Re: Compile error on kernel 2.6.16
From: "R Dicaire" <kritek,AT,gmail,DOT,com>
Date: Sun, 28 May 2006 11:29:04 -0400
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VZ9F3i6E/qHWWxfxZOurk0igMUxQjpV6sIxuEEhZVHWkj4C9ahNxuRqPVdRKezv3Bxs7VQ18EHAVBJQ2zNfZvJ78AZ62Nc3SCV2Ae5CLdRFCrvFK4hqsBMSpBipnHa8WCZ/ksQ1DsDw71fD5OeHBQD465+uoUkPMdDlNesIBsdk=
In-reply-to: <447972FD.30204@sec.se>
References: <e754e90605271038y21446b46iaf98b86d6da21877@mail.gmail.com> <447972FD.30204@sec.se>

On 5/28/06, Erik Wallin <erikw,AT,sec,DOT,se> wrote:
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>

I downloaded, and asuccessfully applied cipe-2.6.14.patch, and made the change to cipe/output.c.

Compile still fails:

gcc  -o ciped-cb ciped.o options.o ioctl.o ucrc32.o  -L../lib -lcipe
gmake -C /usr/src/linux-2.6.16
SUBDIRS=/usr/src/cipe-1.6.0/2.6.16-i386-cb modules
gmake[2]: Entering directory `/usr/src/linux-2.6.16'
 CC [M]  /usr/src/cipe-1.6.0/2.6.16-i386-cb/module.o
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:276: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
 CC [M]  /usr/src/cipe-1.6.0/2.6.16-i386-cb/device.o
In file included from /usr/src/cipe-1.6.0/2.6.16-i386-cb/device.c:15:
/usr/src/cipe-1.6.0/2.6.16-i386-cb/cipe.h:276: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/device.c:15:
include/linux/time.h:94:1: warning: this is the location of the
previous definition
 CC [M]  /usr/src/cipe-1.6.0/2.6.16-i386-cb/sock.o
In file included from /usr/src/cipe-1.6.0/2.6.16-i386-cb/sock.c:15:
/usr/src/cipe-1.6.0/2.6.16-i386-cb/cipe.h:276: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/sock.c:15:
include/linux/time.h:94:1: warning: this is the location of the
previous definition
 CC [M]  /usr/src/cipe-1.6.0/2.6.16-i386-cb/output.o
In file included from /usr/src/cipe-1.6.0/2.6.16-i386-cb/output.c:15:
/usr/src/cipe-1.6.0/2.6.16-i386-cb/cipe.h:276: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/output.c:15:
include/linux/time.h:94:1: warning: this is the location of the
previous definition
/usr/src/cipe-1.6.0/2.6.16-i386-cb/output.c: In function `cipe_xmit':
/usr/src/cipe-1.6.0/2.6.16-i386-cb/output.c:176: error: structure has
no member named `inet'
/usr/src/cipe-1.6.0/2.6.16-i386-cb/output.c:198: error: structure has
no member named `inet'
gmake[3]: *** [/usr/src/cipe-1.6.0/2.6.16-i386-cb/output.o] Error 1
gmake[2]: *** [_module_/usr/src/cipe-1.6.0/2.6.16-i386-cb] Error 2
gmake[2]: Leaving directory `/usr/src/linux-2.6.16'
gmake[1]: *** [all25] Error 2
gmake[1]: Leaving directory `/usr/src/cipe-1.6.0/2.6.16-i386-cb'
make: *** [all] Error 2

--
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u


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