ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Werner
#10095 Hello there,

I get a strange error when compling esphttpd from git (dowloaded yesterday) the clone from friday is OK. Ihave used both older and newer SDK. What is wrong, and how do i solve this, or just wait for new fixes?

The error:
werner@ubuntu:~/esphttpd$ make
CC user/auth.c
In file included from include/espmissingincludes.h:4:0,
from user/auth.c:25:
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:83:5: error: "TENSILICA" is not defined [-Werror=undef]
#if TENSILICA || 1
^
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:84:20: error: conflicting types for 'int32_t'
typedef signed int int32_t;
^
In file included from /opt/Espressif/ESP8266_SDK-9.3//include/ets_sys.h:11:0,
from /opt/Espressif/ESP8266_SDK-9.3//include/os_type.h:10,
from /opt/Espressif/ESP8266_SDK-9.3//include/user_interface.h:9,
from user/auth.c:17:
/opt/Espressif/ESP8266_SDK-9.3//include/c_types.h:17:29: note: previous declaration of 'int32_t' was here
typedef signed long int32_t;
^
In file included from include/espmissingincludes.h:4:0,
from user/auth.c:25:
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:85:22: error: conflicting types for 'uint32_t'
typedef unsigned int uint32_t;
^
In file included from /opt/Espressif/ESP8266_SDK-9.3//include/ets_sys.h:11:0,
from /opt/Espressif/ESP8266_SDK-9.3//include/os_type.h:10,
from /opt/Espressif/ESP8266_SDK-9.3//include/user_interface.h:9,
from user/auth.c:17:
/opt/Espressif/ESP8266_SDK-9.3//include/c_types.h:15:29: note: previous declaration of 'uint32_t' was here
typedef unsigned long uint32_t;
^
In file included from include/espmissingincludes.h:4:0,
from user/auth.c:25:
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:123:5: error: "__have_long64" is not defined [-Werror=undef]
#if __have_long64
^
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:220:6: error: "__int_fast64_t_defined" is not defined [-Werror=undef]
#if !__int_fast64_t_defined
^
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:308:5: error: "__have_long64" is not defined [-Werror=undef]
#if __have_long64
^
/opt/Espressif/ESP8266_SDK-9.3//include/stdint.h:320:5: error: "__have_long64" is not defined [-Werror=undef]
#if __have_long64
^
cc1: all warnings being treated as errors
make: *** [build/user/auth.o] Error 1
User avatar
By dancudds
#10102
Fabien MArchewka wrote:
andrew melvin wrote:
bwhouse wrote:First up thanks Sprite_tm for the awesome work on this.

I seem to be having an annoying problem and no luck trying to compile the esp-httpd source. I am using the esp-open-sdk on OS X and havent had any trouble compiling my own code or the MQTT library. But when ever I try to compile esp-httpd i get the following errors.

Code: Select allCC user/auth.c
In file included from /esptools/esp-open-sdk/sdk/include/os_type.h:10:0,
                 from /esptools/esp-open-sdk/sdk/include/user_interface.h:9,
                 from user/auth.c:17:
/esptools/esp-open-sdk/sdk/include/ets_sys.h:14:1: error: unknown type name 'uint32_t'
 typedef uint32_t ETSSignal;
 ^
/esptools/esp-open-sdk/sdk/include/ets_sys.h:15:1: error: unknown type name 'uint32_t'
 typedef uint32_t ETSParam;
 ^
/esptools/esp-open-sdk/sdk/include/ets_sys.h:27:1: error: unknown type name 'uint32_t'
 typedef uint32_t ETSHandle;
 ^
/esptools/esp-open-sdk/sdk/include/ets_sys.h:32:5: error: unknown type name 'uint32_t'
     uint32_t              timer_expire;
     ^
/esptools/esp-open-sdk/sdk/include/ets_sys.h:33:5: error: unknown type name 'uint32_t'
     uint32_t              timer_period;
     ^


I assume I have some form of problem with the Makefile, but for the life of me I cant work it out. All the paths look correct and the Libs all look fine.

Any one got any ideas?


Hi, Im getting this exact problem.

1) using the latest git, only pulled a few min ago
2) editits #if=0 to #if=1 in the c_types.h file. no difference

is there anything else i need to do.

I can complete the nodemcu, and the the blink example just fine. really wan esphttpd to compile.
Is there a way to not flash the files directly. I need to use a different computer so flashing straight away is not good.

Cheers

Andrew

Same problem here with last sdk and fresh install. No problem with other firmware

Me too
User avatar
By Sprite_tm
#10120 Ahrg, that's again a SDK problem, I think. I'l look into it, but the esp headers are pretty much giving me nightmares.

EDIT: Are you sure you used the latest esp-open-sdk? Or are you using something else? I tried to build it using both the standalone and non-standalone way to build the esp-open-sdk and both seem to happily compile away.
User avatar
By dancudds
#10128
Sprite_tm wrote:Ahrg, that's again a SDK problem, I think. I'l look into it, but the esp headers are pretty much giving me nightmares.

EDIT: Are you sure you used the latest esp-open-sdk? Or are you using something else? I tried to build it using both the standalone and non-standalone way to build the esp-open-sdk and both seem to happily compile away.


I built just yesterday using https://github.com/pfalcon/esp-open-sdk using a fresh Ubuntu14.04
I believe the default is standalone=y
Let me know if you'd like me to try another option.