buglwIP - A Lightweight TCP/IP stack - Bugs: bug #21045, Configuration in lwipopts.h seems...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21045: Configuration in lwipopts.h seems legal, but lwip won't compile

Submitted by:  Mike Kleshov <kleshov>
Submitted on:  Wed 12 Sep 2007 08:10:42 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Frédéric Bernon <fbernon>
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Wed 12 Sep 2007 09:21:08 AM UTC, comment #3:

Ok, it's check in. I also think it could be legitimate to use :

#define NO_SYS 0
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0

Be example, you use tcpip (for timers and init) with loopback and ppp, and the raw api (something "like this" is done in the msvc port).

Ok, since, Mike has confirmed it's fixed, I close it.

Frédéric Bernon <fbernon>
Project MemberIn charge of this item.
Wed 12 Sep 2007 08:55:02 AM UTC, comment #2:

Yes, the compiler errors are gone.

Mike Kleshov <kleshov>
Project Member
Wed 12 Sep 2007 08:29:22 AM UTC, comment #1:

Yes, you're right, I attach a patch file. Tell me if it's good for you, and I check in..

(file #13924)

Frédéric Bernon <fbernon>
Project MemberIn charge of this item.
Wed 12 Sep 2007 08:10:42 AM UTC, original submission:

I pulled lwip code from CVS on 12 Sep 2007 and tried to compile it, but compilation failed with error messages about undefined types.

Here are the relevant bits from my lwipopts.h:
#define NO_SYS 1
#define LWIP_RAW 1
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0

Here are the lines where compilation fails:

>err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg);

(file tcpip.h, line 77)
Error: unknown type sys_timeout_handler.
Apparently, the offending line should be wrapped in #if NO_SYS/#endif.

>LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF")
>LWIP_MEMPOOL(NETCONN, MEMP_NUM_NETCONN, sizeof(struct netconn), "NETCONN")


>LWIP_MEMPOOL(TCPIP_MSG_API, MEMP_NUM_TCPIP_MSG_API, sizeof(struct tcpip_msg), "TCPIP_MSG_API")
>LWIP_MEMPOOL(TCPIP_MSG_INPKT,MEMP_NUM_TCPIP_MSG_INPKT, sizeof(struct tcpip_msg), "TCPIP_MSG_INPKT")

(file memp_std.h, line 46)
Error: undefined types netbuf, netconn, tcpip_msg.
Apparently, these lines should also use conditional compilation.

Mike Kleshov <kleshov>
Project Member

 

Attached Files
file #13924:  tcpip.h.patch added by fbernon (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fbernon (Updated the item)
  • -unavailable- added by kleshov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Sep 2007 09:21:08 AM UTCfbernonStatusNone=>Fixed
      Assigned toNone=>fbernon
      Open/ClosedOpen=>Closed
    Wed 12 Sep 2007 08:29:22 AM UTCfbernonAttached File-=>Added tcpip.h.patch, #13924
      Planned Release=>1.3.0

    Back to the top


    Powered by Savane 3.1-cleanup1