Hi All,

I have recently submitted a patch (Patch #9080: 
http://savannah.nongnu.org/patch/?9080) regarding build issues with PPP when 
following options are enabled:

#define MEM_LIBC_MALLOC                         1
#define MEMP_MEM_MALLOC                         1

During documentation update LWIP_MEMPOOL_PROTOTYPE was moved inside “#if” which 
break the build when MALLOC and MEM_MALLOC is used (reference 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

Please review it.

Regards,
Ajay Bhargav

Sent from Mail for Windows 10

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to