Re: Compile error on kernel 2.6.16

"R Dicaire" <[email protected]> Sun, 28 May 2006 11:29:04 -0400
Newsgroups gmane.comp.encryption.cipe
Message-ID <[email protected]>
On 5/28/06, Erik Wallin <[email protected]> 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=3D66201&atid=3D513682
> <http://sourceforge.net/tracker/?group_id=3D66201&atid=3D513682>
>
> 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 fi=
le.
>
> 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=3D/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


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

--
Message sent by the [email protected] mailing list.
Unsubscribe: mail [email protected], "unsubscribe cipe-l" in body
Other commands available with "help" in body to the same address.
CIPE info and list archive: <URL:http://sites.inka.de/~bigred/devel/cipe.html>