[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] compilation on kernel 2.2
From: |
Felipe Massia Pereira |
Subject: |
[lwip-users] Re: [lwip] compilation on kernel 2.2 |
Date: |
Wed, 08 Jan 2003 21:57:53 -0000 |
I'm trying to adapt to 2.4 kernel. In fact, there is only /dev/tun now,
and the MAKEDEV does not work properly (at least with my distro
Mandrake).
I have already got the router to work. But when I ran the node, it
crashed.
[]s
Felipe
Amol Deshmukh wrote:
>
> Hi,
> I tried compiling the lwip-0.4.1 code on Linux 6.2 (kernel 2.2).
> Following are some of the errors that I got during compilation.
>
> address@hidden lwip-0.4.1]$ cd proj/unixsim
> address@hidden unixsim]$ gcc --version
> egcs-2.91.66
> address@hidden unixsim]$ make
>
> ../../src/include/lwip/tcp.h:332: parse error before `('
> ../../src/include/lwip/tcp.h:332: warning: type defaults to `int' in
> declaration of `abort'
> ../../src/include/lwip/tcp.h:332: warning: data definition has no type or
> storage class
> ../../src/include/lwip/tcp.h:332: parse error before `}'
> ../../src/include/lwip/tcp.h:332: stray '\' in program
> ../../src/include/lwip/tcp.h:333: stray '\' in program
> ../../src/include/lwip/tcp.h:341: warning: This file contains more `}'s than
> `{'s.
> In file included from ../../src/api/api_lib.c:40:
> ../../src/include/lwip/api.h:63: parse error before `err_t'
> ../../src/include/lwip/api.h:63: warning: no semicolon at end of struct or
> union
> ../../src/include/lwip/api.h:67: field `type' has incomplete type
> ../../src/include/lwip/api.h:72: parse error before `err_t'
> ../../src/include/lwip/api.h:72: warning: no semicolon at end of struct or
> union
> ../../src/include/lwip/api.h:75: parse error before `}'
> ../../src/include/lwip/api.h:86: parse error before `netbuf_data'
> ../../src/include/lwip/api.h:86: warning: type defaults to `int' in
> declaration of `netbuf_data'
> ../../src/include/lwip/api.h:86: warning: data definition has no type or
> storage class
> ../../src/include/lwip/api.h:95: warning: parameter has incomplete type
> ../../src/include/lwip/api.h:96: parse error before `netconn_delete'
> ../../src/include/lwip/api.h:96: warning: type defaults to `int' in
> declaration of `netconn_delete'
> ../../src/include/lwip/api.h:96: warning: data definition has no type or
> storage class
> ../../src/include/lwip/api.h:98: parse error before `netconn_peer'
> ../../src/include/lwip/api.h:98: warning: type defaults to `int' in
> declaration of `netconn_peer'
> ../../src/include/lwip/api.h:98: warning: data definition has no type or
> storage class
> ../../src/include/lwip/api.h:99: parse error before `netconn_addr'
> ../../src/include/lwip/api.h:99: warning: type defaults to `int' in
> declaration of `netconn_addr'
> ../../src/include/lwip/api.h:99: warning: data definition has no type or
> storage class
> ../../src/include/lwip/api.h:100: parse error before `netconn_bind'
> ../../src/include/lwip/api.h:100: warning: type defaults to `int' in
> declaration of `netconn_bind'
> ../../src/include/lwip/api.h:100: warning: data definition has no type or
> storage class
>
> It gave similar problems while compilation of lwip-0.3.1.
> The code compiles on kernel 2.4 but gives the tunnel interface problem ... i
> mean /dev/tap0. As you said in the previous mail that the code works fine
> with kernel 2.2 and the vtun/universal tun/tap driver.
>
> Could you please help me out in this problem.
>
> Thanks and Regards,
> -Amol.
>
> ----- Original Message -----
> From: Adam Dunkels <address@hidden>
> To: <address@hidden>
> Sent: Thursday, October 18, 2001 4:02 PM
> Subject: Re: [lwip] /dev/tap0
>
> > Hi Amol!
> >
> > On Thursday 18 October 2001 07:02, you wrote:
> > > I apologise for not changing the subject in the previous mail.
> >
> > No problem :-)
> >
> > > I am a newbie. I tried compiling lwip-0.4.1 on Red Hat Linux 7.1
> > > (kernel 2.4.2). It compiled after adding
> > > #define PBUF_MAX_SIZE 1500 to the file /src/include/lwip/pbuf.h
> > > I installed the vtun interface driver before running the code.
> > >
> > > Running ./simhost as root gives the following output.
> > >
> > > System initialized.
> > > tapif_init: No such file or directory
> > >
> > > It does not find the file "/dev/tap0" in the function tapif_init in file
> > > src/arch/unix/netif/tapif.c.
> > > I do not understand much about taptunnel or vtun interface driver.
> > > Though I am a newbie, could you please help me in this matter. Thanks in
> > > advance.
> >
> > I have heard others have similar problems with Linux versions > 2.2.
> > Personally, I don't run lwIP under Linux - the last time I did was with
> Linux
> > 2.2 and the vtun/universal tun/tap driver. Back then, it was as simple as
> to
> > install the kernel modules and do the appropriate mknod and insmod, and
> > everything was working.
> >
> > When running under Linux 2.4, this doesn't seem to work anymore, and I
> don't
> > really have an explanation of it. Perhaps the tap/tun driver has been
> > integrated into the Linux kernel? If so, it could be enabled by kernel
> > reconfiguration and recompilation.
> >
> > Has anybody got the tap/tun driver to work under Linux 2.4.x?
> >
> > /adam
> > --
> > Adam Dunkels <address@hidden>
> > http://www.sics.se/~adam
> > [This message was sent through the lwip discussion list.]
>
> [This message was sent through the lwip discussion list.]
[This message was sent through the lwip discussion list.]
- [lwip-users] RE: [lwip] compilation on kernel 2.2, Robert Pleh, 2003/01/08
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] compilation on kernel 2.2,
Felipe Massia Pereira <=
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Felipe Massia Pereira, 2003/01/08
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Felipe Massia Pereira, 2003/01/08
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Amol Deshmukh, 2003/01/08
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Amol Deshmukh, 2003/01/09
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Felipe Massia Pereira, 2003/01/09
- [lwip-users] Re: [lwip] compilation on kernel 2.2, Adam Dunkels, 2003/01/09