Compile error on kernel 2.6.16

View: New views
3 Messages — Rating Filter:   Alert me  

Compile error on kernel 2.6.16

by R Dicaire :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

./configure --prefix=/usr --sysconfdir=/etc/cipe
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for texinfo... no
checking for tex... no
checking for makeinfo... makeinfo
checking for gmake... gmake
checking for kernel source tree... /usr/src/linux-2.6.16
checking for kernel version... 2.6.16
checking for architecture... i386
checking for SMP... no
checking for crypto API headers... yes
checking for kernel CRC function... yes
checking for assembler parts... bf-i386.o
checking for mlock... yes
checking for mlockall... yes
checking for OpenSSL... includes /usr/include, libs /usr/lib
checking for openssl... /usr/bin/openssl
checking OpenSSL version... 0.9.7e
updating cache ./config.cache
creating ./config.status
creating Makefile
creating 2.6.16-i386-cb/Makefile
creating lib/Makefile
creating pkcipe/Makefile
creating pkcipe/rsa-keygen
creating 2.6.16-i386-cb/config.h
creating pkcipe/config.h

I then start the make, and get the following:

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/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?

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

--
Message sent by the cipe-l@... mailing list.
Unsubscribe: mail majordomo@..., "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>

Re: Compile error on kernel 2.6.16

by erikw-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


--
Message sent by the cipe-l@... mailing list.
Unsubscribe: mail majordomo@..., "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>

Re: Compile error on kernel 2.6.16

by R Dicaire :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 5/28/06, Erik Wallin <erikw@...> 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

--
Message sent by the cipe-l@... mailing list.
Unsubscribe: mail majordomo@..., "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>