beckdac / ESP8266-transparent-bridge

Absolutely transparent bridge for the ESP8266
GNU General Public License v2.0
367 stars 95 forks source link

Doesn't compile with esp-open-sdk #43

Closed pholat closed 8 years ago

pholat commented 8 years ago

gcc version 4.8.2 (crosstool-NG 1.20.0) Fail on:

$ make CC user/config.c user/config.c: In function 'my_strdup': user/config.c:153:2: error: too many arguments to function 'pvPortMalloc' if (!(copy = os_malloc((u_int)len))) ^ In file included from user/config.c:4:0: include/espmissingincludes.h:33:7: note: declared here void _pvPortMalloc(size_t xWantedSize); ^ user/config.c: In function 'config_parse_args': user/config.c:162:2: error: too many arguments to function 'pvPortMalloc' char _argv = (char _)os_malloc(sizeof(char ) * MAX_ARGS); // note fixed length ^ In file included from user/config.c:4:0: include/espmissingincludes.h:33:7: note: declared here void pvPortMalloc(size_t xWantedSize); ^ user/config.c: In function 'config_parse_args_free': user/config.c:181:4: error: too many arguments to function 'vPortFree' os_free(argv[i]); ^ In file included from user/config.c:4:0: include/espmissingincludes.h:36:6: note: declared here void vPortFree(void ptr); ^ user/config.c:183:2: error: too many arguments to function 'vPortFree' os_free(argv); ^ In file included from user/config.c:4:0: include/espmissingincludes.h:36:6: note: declared here void vPortFree(void ptr); ^ user/config.c: In function 'config_parse': user/config.c:461:2: error: too many arguments to function 'pvPortMalloc' char lbuf = (char )os_malloc(len + 1), _argv; ^ In file included from user/config.c:4:0: include/espmissingincludes.h:33:7: note: declared here void _pvPortMalloc(size_t xWantedSize); ^ user/config.c:505:2: error: too many arguments to function 'vPortFree' os_free(lbuf); ^ In file included from user/config.c:4:0: include/espmissingincludes.h:36:6: note: declared here void vPortFree(void ptr); ^ make: _\ [build/user/config.o] Error 1

might be connected to: http://www.esp8266.com/viewtopic.php?f=34&t=5748

pholat commented 8 years ago

Update: -> removing espmissingincludes.h solves compilation errors.

beckdac commented 8 years ago

Thank you.