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

Submitter:  Mike Kleshov <kleshov>
Submitted:  Wed 12 Sep 2007 08:10:42 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  fbernon
Open/Closed:  Closed Planned 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>
Group Member
Wed 12 Sep 2007 08:55:02 AM UTC, comment #2: 

Yes, the compiler errors are gone.

Mike Kleshov <kleshov>
Group 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>
Group Member
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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by fbernon (Updated the item)
  • -email is unavailable- added by kleshov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-09-12 fbernon StatusNone Fixed
        Assigned toNone fbernon
        Open/ClosedOpen Closed
    2007-09-12 fbernon Attached File- Added tcpip.h.patch, #13924
        Planned Release 1.3.0

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code