Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Does not compile with git head esp8266com #56

Closed
wants to merge 1 commit into from

Conversation

Jerome-PS
Copy link

Some callback function prototypes do not match the lip headers.
Please correct this by either:

  • Casting the function addresses (as I did here)
  • Or correct the prototypes so they match.
    Thank you.

Some callback function prototypes do not match the lip headers.
Please correct this by either:
- Casting the function addresses (as I did here)
- Or correct the prototypes so they match.
Thank you.
@xoseperez
Copy link
Contributor

The definitions when ASYNC_TCP_SSL_ENABLED=1 are still wrong.

.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:972:8: error: prototype for 'int8_t AsyncServer::_poll(tcp_pcb*)' does not match any in class 'AsyncServer'
int8_t AsyncServer::_poll(tcp_pcb* pcb){
^
In file included from .piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:24:0:
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.h:231:10: error: candidate is: long int AsyncServer::_poll(tcp_pcb*)
long _poll(tcp_pcb* pcb);
^
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:998:8: error: prototype for 'int8_t AsyncServer::_recv(tcp_pcb*, pbuf*, int8_t)' does not match any in class 'AsyncServer'
int8_t AsyncServer::_recv(struct tcp_pcb *pcb, struct pbuf *pb, int8_t err){
^
In file included from .piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:24:0:
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.h:232:10: error: candidate is: long int AsyncServer::_recv(tcp_pcb*, pbuf*, long int)
long _recv(tcp_pcb *pcb, struct pbuf *pb, long err);
^
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:1050:8: error: prototype for 'int8_t AsyncServer::_s_poll(void*, tcp_pcb*)' does not match any in class 'AsyncServer'
int8_t AsyncServer::_s_poll(void *arg, struct tcp_pcb *pcb){
^
In file included from .piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:24:0:
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.h:234:17: error: candidate is: static long int AsyncServer::_s_poll(void*, tcp_pcb*)
static long _s_poll(void *arg, struct tcp_pcb *tpcb);
^
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:1054:8: error: prototype for 'int8_t AsyncServer::_s_recv(void*, tcp_pcb*, pbuf*, int8_t)' does not match any in class 'AsyncServer'
int8_t AsyncServer::_s_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *pb, int8_t err){
^
In file included from .piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.cpp:24:0:
.piolibdeps/ESPAsyncTCP/src/ESPAsyncTCP.h:235:17: error: candidate is: static long int AsyncServer::_s_recv(void*, tcp_pcb*, pbuf*, long int)
static long _s_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *pb, long err);
^
*** [.pioenvs/nodemcu-lolin-ssl/lib/ESPAsyncTCP/ESPAsyncTCP.o] Error 1

@me-no-dev
Copy link
Owner

sorry did not have the time last night to check those. Maybe you can submit a PR with the changes?

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

Successfully merging this pull request may close these issues.

7 participants