Skip to content

Recompiling lwip gives error #5933

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

Closed
1 task done
madhura-a opened this issue Mar 31, 2019 · 1 comment · Fixed by #5935
Closed
1 task done

Recompiling lwip gives error #5933

madhura-a opened this issue Mar 31, 2019 · 1 comment · Fixed by #5935

Comments

@madhura-a
Copy link

Basic Infos

  • [X ] This issue complies with the issue POLICY doc.
  • [X ] I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • [X ] I have searched the issue tracker for a similar issue.
  • [X ] If there is a stack dump, I have decoded it.
  • [X ] I have filled out all fields below.

Platform

  • Hardware: ESP8266
  • Core Version: [latest git ]
  • Development Env: [Arduino IDE]
  • Operating System: [Ubuntu]

Settings in IDE

  • Module: [Nodemcu]
  • Flash Size: [4MB]
  • lwip Variant: [|v2 Lower Memory]
  • Reset Method: [nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200] (serial upload only)

Problem Description

Recompiling the lwip library using following steps

  1. Navigate to esp8266/tools/sdk/lwip/src
  2. run make install command

Error

app/dhcpserver.c:22:34: error: expected '=', ',', ';', 'asm' or 'attribute' before 'ICACHE_RODATA_ATTR'
static const uint32 magic_cookie ICACHE_RODATA_ATTR = 0x63538263;
^
app/dhcpserver.c: In function 'create_msg':
app/dhcpserver.c:268:26: error: 'magic_cookie' undeclared (first use in this function)
uint32 magic_cookie1 = magic_cookie;
^
app/dhcpserver.c:268:26: note: each undeclared identifier is reported only once for each function it appears in
app/dhcpserver.c: In function 'parse_msg':
app/dhcpserver.c:559:14: error: 'magic_cookie' undeclared (first use in this function)
&magic_cookie,
^
make: *** [build/app/dhcpserver.o] Error 1

Can you please suggest me how to resolve this error ?

@madhura-a madhura-a changed the title compiling lwip gives error Recompiling lwip gives error Mar 31, 2019
@d-a-v
Copy link
Collaborator

d-a-v commented Mar 31, 2019

Fix will be merged in some minutes.

However I can see this in your message: lwip Variant: [|v2 Lower Memory]

If you want to recompile lwip-v2, it's in tools/sdk/lwip2

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

Successfully merging a pull request may close this issue.

2 participants