patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9080, Fix mempool error when ppp is...

 
 

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

patch #9080: Fix mempool error when ppp is enabled

Submitter:  Ajay Bhargav <ajaybhargav>
Submitted:  Wed 10 Aug 2016 02:01:40 PM UTC
   
 
Category:  PPP Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Planned Release:  None

Thu 11 Aug 2016 10:56:03 AM UTC, comment #1: 

Thank you for reporting!

Dirk Ziegelmeier <dziegel>
Group administrator
Wed 10 Aug 2016 02:01:40 PM UTC, original submission:  

During documentation updated LWIP_MEMPOOL_PROTOTYPE was moved inside
"#if MEMP_MEM_MALLOC" which cause ppp build to break. This patch fix that
issue.

ref commit-id: 2f950a7dcc3cc48852276d5ca03522cfe60ac99f

Error:

../src/lwip/src/netif/ppp/ppp.c:144:1: warning: data definition has no type or storage class
 LWIP_MEMPOOL_PROTOTYPE(PPPOS_PCB);
 ^
../src/lwip/src/netif/ppp/ppp.c:144:1: warning: type defaults to 'int' in declaration of 'LWIP_MEMPOOL_PROTOTYPE' [-Wimplicit-int]
../src/lwip/src/netif/ppp/ppp.c:144:1: warning: parameter names (without types) in function declaration
In file included from E:\lib\src\lwip\src\include/lwip/stats.h:43:0,
                 from ../src/lwip/src/netif/ppp/ppp.c:92:
../src/lwip/src/netif/ppp/ppp.c: In function 'ppp_init':
E:\lib\src\lwip\src\include/lwip/memp.h:115:52: error: 'memp_PPPOS_PCB' undeclared (first use in this function)
 #define LWIP_MEMPOOL_INIT(name)    memp_init_pool(&memp_ ## name)
                                                    ^
../src/lwip/src/netif/ppp/ppp.c:609:3: note: in expansion of macro 'LWIP_MEMPOOL_INIT'
   LWIP_MEMPOOL_INIT(PPPOS_PCB);
   ^
E:\lib\src\lwip\src\include/lwip/memp.h:115:52: note: each undeclared identifier is reported only once for each function it appears in
 #define LWIP_MEMPOOL_INIT(name)    memp_init_pool(&memp_ ## name)
                                                    ^
../src/lwip/src/netif/ppp/ppp.c:609:3: note: in expansion of macro 'LWIP_MEMPOOL_INIT'
   LWIP_MEMPOOL_INIT(PPPOS_PCB);
   ^
make: *** [src/lwip/src/netif/ppp/ppp.o] Error 1


Ajay Bhargav <ajaybhargav>

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dziegel (Posted a comment)
  • -email is unavailable- added by ajaybhargav (Submitted the item)
  • -email is unavailable- added by ajaybhargav
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-11 dziegel StatusNone Done
        Open/ClosedOpen Closed
    2016-08-10 ajaybhargav Attached File- Added 0001-netif-ppp-fix-mempool-build-issues-when-PPP-is-enabl.patch, #38166
        Carbon-Copy- Added ajaybhargav

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code