`MEMP_NUM_PPP_PCB' undeclared here (not in a function)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

`MEMP_NUM_PPP_PCB' undeclared here (not in a function)

markus.forrer
Hello
 
I updated lwip from 2.0.3 to 2.1.2 and get the following build error without any modifications:
 
memp_std.h(102): `MEMP_NUM_PPP_PCB' undeclared here (not in a function)
memp_std.h(102): size of array `memp_memory_SYS_TIMEOUT_base' has non-integer type
memp_std.h(102): `MEMP_NUM_PPP_PCB' undeclared here (not in a function)
memp_std.h(102): initializer element is not constant
memp_std.h(102): (near initialization for `memp_SYS_TIMEOUT.num')
 
Thank you very much for some hints.
 
Best regards
Markus

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: `MEMP_NUM_PPP_PCB' undeclared here (not in a function)

goldsimon@gmx.de
Hi,

first: why did you send this three times?

Am 11.08.2019 um 09:15 schrieb [hidden email]:

> Hello
> I updated lwip from 2.0.3 to 2.1.2 and get the following build error
> without any modifications:
> memp_std.h(102): `MEMP_NUM_PPP_PCB' undeclared here (not in a function)
> memp_std.h(102): size of array `memp_memory_SYS_TIMEOUT_base' has
> non-integer type
> memp_std.h(102): `MEMP_NUM_PPP_PCB' undeclared here (not in a function)
> memp_std.h(102): initializer element is not constant
> memp_std.h(102): (near initialization for `memp_SYS_TIMEOUT.num')
> Thank you very much for some hints.

Seems like MEMP_NUM_SYS_TIMEOUT references MEMP_NUM_PPP_PCB. However, as
this doesn't happen in our sources, it's got to be something in your
project or header files. Try searching for the definition of
MEMP_NUM_SYS_TIMEOUT  and see where MEMP_NUM_PPP_PCB is referenced.

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: `MEMP_NUM_PPP_PCB' undeclared here (not in a function)

markus.forrer
In reply to this post by markus.forrer
Hi Simon
 
Thank you for your answer.
 
> first: why did you send this three times?
 
Sorry for that, I'm new here. I subscribed for the mailing list but never got a mail. So I tried again.
 
 
 
> Seems like MEMP_NUM_SYS_TIMEOUT
> references MEMP_NUM_PPP_PCB.
 
My lwipopts.h looks like:
 
#define MEMP_NUM_SYS_TIMEOUT            (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + (PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0))
 
If I remove /*(PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) +*/ it works.
 
Looks like something changed in the new version of lwip?
 
Thank you very much and best regards
Markus

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: `MEMP_NUM_PPP_PCB' undeclared here (not in a function)

goldsimon@gmx.de
markus forrer wrote:
> If I remove /*(PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) +*/ it works.
> Looks like something changed in the new version of lwip?

Yes: the ppp configuration has been split out, as this is
"merely" a netif to lwip. As a result, MEMP_NUM_PPP_PCB is
not defined globally (it has been defined to 0 before).

Regards,
Simon

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