Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile errors build lwip for esp8266 #24

Open
andrewtholt opened this issue Aug 15, 2019 · 4 comments
Open

Compile errors build lwip for esp8266 #24

andrewtholt opened this issue Aug 15, 2019 · 4 comments

Comments

@andrewtholt
Copy link

No description provided.

@andrewtholt
Copy link
Author

Hi,

I'm trying to build lwip with the "traditional" BSD style socket interface.
I suspect that I have neglected to set something, the question is what ?

I have set the following in lwipopts.h
#define LWIP_NETCONN 1
#define LWIP_SOCKET 1
#define LWIP_COMPAT_SOCKETS 1
#define LWIP_POSIX_SOCKETS_IO_NAMES 1

When I do the build I get the following errors:

In file included from ../../../include/lwip/memp.h:45:0,
from ../../../include/lwip/stats.h:38,
from ip_frag.c:47:
../../../include/lwip/memp_std.h:55:95: error: macro "LWIP_MEMPOOL" requires 5 arguments, but only 4 given
LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF")

and

In file included from ../../../include/lwip/stats.h:38:0,
from ip_frag.c:47:
../../../include/lwip/memp.h:79:31: error: 'MEMP_MAX' undeclared here (not in a function)
extern const u32_t memp_sizes[MEMP_MAX];

Thanks in advance.

regards,
Andrew

@ecities
Copy link

ecities commented Feb 11, 2020

Hi, I Confirm this when you set LWIP_SOCKETS = 1 !!!

Any solution for this So far?

@martin-ger
Copy link
Owner

The lib has not been tested with the socket interface. Always used it with esp_conn.

Perhaps you might want to use this one: https://github.com/d-a-v/esp82xx-nonos-linklayer

Contains the NAPT and is included in esp8266-Arduino.

@ecities
Copy link

ecities commented Feb 11, 2020

I try to compile with different options in lwipopts.h (to investigate UDP broadcast issues of repeater) , which crashes too:
eg. NO_SYS=0
LWIP_NETIF_API=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants