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

Subject: RE: Compile Error on Linux Kernel 2.4.2
From: Garrett Taylor <gtaylor,AT,westerntitle,DOT,net>
Date: Wed, 5 Jun 2002 02:47:10 +0200

We did a lot better this time... :)
In file included from ../cipe/output.c:15:
../cipe/cipe.h:411:8: warning: extra tokens at end of #endif directive
../cipe/output.c:280:47: macro "ip_ident" passed 3 arguments, but takes just
2
../cipe/output.c: In function `cipe_xmit':
../cipe/output.c:280: `ip_ident' undeclared (first use in this function)
../cipe/output.c:280: (Each undeclared identifier is reported only once
../cipe/output.c:280: for each function it appears in.)
make: *** [output.o] Error 1

Also, the line I found was:
Line 280:   ip_ident(iph, &rt->u.dst);
(without the _select_ in the middle)

-----Original Message-----
From: Ajit Kashyap [mailto:ajitkashyap,AT,yahoo,DOT,com 
Sent: Tuesday, June 04, 2002 1:19 PM
To: Garrett Taylor
Cc: cipe-l,AT,inka,DOT,de
Subject: Re: Compile Error on Linux Kernel 2.4.2

You can try this:

Edit file output.c (under cipe-1.5.2/cipe/) and on
line 280'ish change 
ip_select_ident(iph, &rt->u.dst); to 
ip_select_ident(iph, &rt->u.dst, tunnel->sock); 
and rerun make

Ajit Kashyap

--- Garrett Taylor <gtaylor,AT,westerntitle,DOT,net> wrote:
> I'm a bit of a linux newb and very much a
> programming newb.
> First I had a problem running configure. It said I
> had an incompatible linux
> kernel version so I added 'KVER=2.4.2' to the
> configure script after the
> point where it attempts to detect the kernel version
> and I stopped getting
> errors there.
> 
> Then I was unable to compile. I did execute make
> from /2.4.2-i386-cb after I
> figured out that running it from the root of the
> source wasn't getting me
> very far.
> 
> The warnings from the compiler mean nothing to me
> and I can't find the
> daemon so I assume it never compiled. The cipcb.o
> did compile though and is
> in my /lib/modules folder. (though I have no idea if
> it works)
> 
> Can anyone tell what I might have done wrong?
> 
> Excerpts from output from 'make'
> 
> In file included from ../cipe/ioctl.c:15:
> ../cipe/cipe.h:411:8: warning: extra tokens at end
> of #endif directive
> ../cipe/ioctl.c: In function `ioctl_setpar':
> ../cipe/ioctl.c:36: warning: implicit declaration of
> function `strcpy'
> ../cipe/ioctl.c: In function `ioctl_setkey':
> ../cipe/ioctl.c:45: warning: implicit declaration of
> function `memset'
> 
> (../cipe/cipe.h:411:8: warning: extra tokens at end
> of #endif directive)
> This appears several more times
> 
> ../cipe/ciped.c:749: warning: implicit declaration
> of function `time'
> 
> ../cipe/cipe.h:411:8: warning: extra tokens at end
> of #endif directive
> 
> ../cipe/cipe.h:411:8: warning: extra tokens at end
> of #endif directive
> ../cipe/output.c: In function `cipe_xmit':
> ../cipe/output.c:280: too few arguments to function `ip_select_ident'
> make: *** [output.o] Error 1
> 
> 
> Output from 'make install'
> gcc -MD -DKCC_BUILD -I. -include ./config.h
> -D__KERNEL__
> -I/usr/src/linux-2.4.2/include -Wall
> -Wstrict-prototypes -O2 -
> fomit-frame-pointer -fno-strict-aliasing -fno-common
> -Wno-unused -pipe
> -mpreferred-stack-boundary=2 -DMODULE -o output.o
>  -c ../cipe/output.c
> In file included from ../cipe/output.c:15:
> ../cipe/cipe.h:411:8: warning: extra tokens at end
> of #endif directive
> ../cipe/output.c: In function `cipe_xmit':
> ../cipe/output.c:280: too few arguments to function
> `ip_select_ident'
> make: *** [output.o] Error 1
> 
> --
> Message sent by the cipe-l,AT,inka,DOT,de mailing list.
> Unsubscribe: mail majordomo,AT,inka,DOT,de, "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>

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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





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