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

Building with Arduino/esp8266 2.4.0-rc2 #59

Closed
jake-b opened this issue Oct 18, 2017 · 1 comment
Closed

Building with Arduino/esp8266 2.4.0-rc2 #59

jake-b opened this issue Oct 18, 2017 · 1 comment

Comments

@jake-b
Copy link

jake-b commented Oct 18, 2017

I've upgraded to 2.4.0-rc2 because it is supposed to have the KRAK WPA2 vulnerability fix.

Unfortunately, it seems like err_t may have gone from an int8_t to an int32_t -- You can see this in the diffs to the Arduino/esp8266 sdk here, where LWIP_ERR_T is defined to s32_t:

esp8266/Arduino@e049032#diff-171efba17be7978e6f6c00ab1b100ae0

err_t seems hard-coded in ESPAsyncTCP to an int32_t

I tried my hand at brute forcing the change, but so far just panics from my dev board, so I'm guessing I'm missing something somewhere. I'll continue to play and if I get something that works, I'll report back.

Update: Just a copy of the errors seems when compiling. Emphasis on where the function prototype differ.

ESPAsyncTCP.cpp: In constructor 'AsyncClient::AsyncClient(tcp_pcb*)':
ESPAsyncTCP.cpp:77:28: error: invalid conversion from
'int8_t ()(void, tcp_pcb*, pbuf*, int8_t) {aka signed char ()(void, tcp_pcb*, pbuf*, signed char)}'
to
'tcp_recv_fn {aka long int ()(void, tcp_pcb*, pbuf*, long int)}' [-fpermissive]
tcp_recv(_pcb, &_s_recv);

Other functions that also show similar errors in other places: tcp_recv, tcp_sent, tcp_err, tcp_poll, tcp_accept

@jake-b
Copy link
Author

jake-b commented Oct 18, 2017

Nevermind. I didn't have the latest commit. You beat me to it and I'm reporting an issue you already fixed in 036ea44

I'm still getting panics, but I I think it might be some other incompatibility with my own code.

@jake-b jake-b closed this as completed Oct 18, 2017
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

1 participant