loboris / ESP32-PPPOS-EXAMPLE

Example of using ESP32 with GSM modem and lwip+pppos
216 stars 67 forks source link

"unknown type name 'ppp_pcb'" #15

Open lemmerelassal opened 5 years ago

lemmerelassal commented 5 years ago

When compiling, I get this error. Anybody know where this is defined? Also:

error: field 'pppif' has incomplete type

jfdona23 commented 5 years ago

Same here! Trying to figure out 👍

jfdona23 commented 5 years ago

Hi @lemmerelassal Did you figured this out? So far, I can skip this error by adding this line to Makefile:

INC += -I$(TOP)/lib/lwip/src/include

But now I've another error:

In file included from network_ppp.c:39:0: ../../lib/lwip/src/include/lwip/sockets.h:428:2: error: #error LWIP_SOCKET_OFFSET does not work with external FD_SET!

error LWIP_SOCKET_OFFSET does not work with external FD_SET!

I'm still working in a workaround or root cause for this. 👋

jfdona23 commented 5 years ago

Fo the last error, I commented the line 408 in $(TOP)/lib/lwip/src/include/lwip/sockets.h

/ FD_SET used for lwip_select / // LINE 407 //#ifndef FD_SET // LINE 408

...and added these in the next line (409):

ifdef LWIP_SOCKET_OFFSET

undef FD_SET

undef FD_CLR

undef FD_ISSET

undef FD_ZERO

undef _types_fd_set

undef fd_set

Source: https://github.com/espressif/esp-idf/issues/1141

But again, I got another error:

../../lib/lwip/src/include/lwip/arch.h:125:19: error: conflicting types for 'mem_ptr_t' typedef uintptr_t mem_ptr_t;

All of this seems to be related to esp-idf since the change constantly. I'm working in the suggested esp-isf branch for PyCopy 1.1: 5c88c5996 Yes, I fortgot to mencion that, I'm on Pfalcon's PyCopy now. Last week I tested Loboris' fork and went awesome with the precompiled bin, but I ran out of space in my esp32 😛

Hope this can help anyone! 👋

jfdona23 commented 5 years ago

I deleted the entire repo and started again...problem solved 😛