-->
Page 1 of 2

Compiling using the latest sdk fails

PostPosted: Tue Sep 29, 2015 9:35 pm
by someone
When compiling the esphttpd project using the 1.4.0 sdk I get the following errors:

Code: Select allCC espfs/espfs.c
espfs/espfs.c: In function 'espFsOpen':
espfs/espfs.c:161:4: error: too many arguments to function 'pvPortMalloc'
    r=(EspFsFile *)os_malloc(sizeof(EspFsFile)); //Alloc file desc mem
    ^
In file included from ./include/esp8266.h:18:0,
                 from espfs/espfs.c:23:
./include/espmissingincludes.h:37:7: note: declared here
 void *pvPortMalloc(size_t xWantedSize);
       ^
espfs/espfs.c: In function 'espFsClose':
espfs/espfs.c:270:2: error: too many arguments to function 'vPortFree'
  os_free(fh);
  ^
In file included from ./include/esp8266.h:18:0,
                 from espfs/espfs.c:23:
./include/espmissingincludes.h:40:6: note: declared here
 void vPortFree(void *ptr);
      ^
Makefile:151: recipe for target 'build/espfs/espfs.o' failed


Does anyone know why this happens?

Re: Compiling using the latest sdk fails

PostPosted: Wed Sep 30, 2015 12:12 am
by Sprite_tm
Yes, the SDK guys changed the definition of a few memory allocation functions, making esphttpd bork. It's fixed in the latest commit, could you do a git pull and try again?

Re: Compiling using the latest sdk fails

PostPosted: Wed Oct 14, 2015 4:04 am
by Zarathon Maia
I try update my SDK, but i still having same problem...

Re: Compiling using the latest sdk fails

PostPosted: Thu Oct 15, 2015 3:29 am
by Sprite_tm
Zarathon Maia wrote:I try update my SDK, but i still having same problem...


Try updating esphttpd instead of the sdk ;)

git pull
and then
git submodule update
should do the trick.