I am trying to compile the demo from the espressif folder but I am unable to do so.
I am getting this error while compiling ..
mahe@Hitesh MINGW32 /amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/make
$ make flash monitor
CC build/lwip/apps/dhcpserver.o
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:51:16: error: redefinition of 'struct ip4_addr'
typedef struct ip4_addr {
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:38:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip4_addr.h:46:8: note: originally defined here
struct ip4_addr {
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:53:3: error: conflicting types for 'ip4_addr_t'
} ip4_addr_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:38:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip4_addr.h:66:25: note: previous declaration of 'ip4_addr_t' was here
typedef struct ip4_addr ip4_addr_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:55:16: error: redefinition of 'struct ip6_addr'
typedef struct ip6_addr {
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:57:8: note: originally defined here
struct ip6_addr {
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:57:3: error: conflicting types for 'ip6_addr_t'
} ip6_addr_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:75:25: note: previous declaration of 'ip6_addr_t' was here
typedef struct ip6_addr ip6_addr_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:62:20: error: conflicting types for 'ip_addr_t'
typedef ip4_addr_t ip_addr_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:60:3: note: previous declaration of 'ip_addr_t' was here
} ip_addr_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:86:0: warning: "IP6_ADDR_BLOCK1" redefined
#define IP6_ADDR_BLOCK1(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[0]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:105:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK1(ip6addr) ((u16_t)(htonl((ip6addr)->addr[0]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:87:0: warning: "IP6_ADDR_BLOCK2" redefined
#define IP6_ADDR_BLOCK2(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[0])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:106:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK2(ip6addr) ((u16_t)(htonl((ip6addr)->addr[0])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:88:0: warning: "IP6_ADDR_BLOCK3" redefined
#define IP6_ADDR_BLOCK3(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[1]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:107:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK3(ip6addr) ((u16_t)(htonl((ip6addr)->addr[1]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:89:0: warning: "IP6_ADDR_BLOCK4" redefined
#define IP6_ADDR_BLOCK4(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[1])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:108:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK4(ip6addr) ((u16_t)(htonl((ip6addr)->addr[1])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:90:0: warning: "IP6_ADDR_BLOCK5" redefined
#define IP6_ADDR_BLOCK5(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[2]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:109:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK5(ip6addr) ((u16_t)(htonl((ip6addr)->addr[2]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:91:0: warning: "IP6_ADDR_BLOCK6" redefined
#define IP6_ADDR_BLOCK6(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[2])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:110:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK6(ip6addr) ((u16_t)(htonl((ip6addr)->addr[2])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:92:0: warning: "IP6_ADDR_BLOCK7" redefined
#define IP6_ADDR_BLOCK7(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[3]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:111:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK7(ip6addr) ((u16_t)(htonl((ip6addr)->addr[3]) >> 16) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:93:0: warning: "IP6_ADDR_BLOCK8" redefined
#define IP6_ADDR_BLOCK8(ip6addr) ((u16_t)(FreeRTOS_htonl((ip6addr)->addr[3])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:39:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip6_addr.h:112:0: note: this is the location of the previous definition
#define IP6_ADDR_BLOCK8(ip6addr) ((u16_t)(htonl((ip6addr)->addr[3])) & 0xffff)
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:25:0:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/apps/dhcpserver.h:43:3: error: conflicting types for 'dhcps_lease_t'
} dhcps_lease_t;
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:23:0:
D:/msys32/amazon-freertos-master/demos/espressif/esp32_devkitc_esp_wrover_kit/common/application_code/espressif_code/tcpip_adapter/include/tcpip_adapter.h:68:3: note: previous declaration of 'dhcps_lease_t' was here
} dhcps_lease_t;
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c: In function 'send_offer':
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:5: warning: braces around scalar initializer
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:5: note: (near initialization for 'ip_temp.addr')
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:5: warning: braces around scalar initializer
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:5: note: (near initialization for 'ip_temp.addr')
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:5: warning: braces around scalar initializer
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:5: note: (near initialization for 'ip_temp.addr')
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:55: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:55: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:60: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:60: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:65: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:65: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:46:39: warning: excess elements in struct initializer
#define IPADDR_TYPE_V4 0U
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:76: note: in expansion of macro 'IPADDR_TYPE_V4'
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:46:39: note: (near initialization for 'ip_temp')
#define IPADDR_TYPE_V4 0U
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:76: note: in expansion of macro 'IPADDR_TYPE_V4'
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:528:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:38:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:85:39: error: 'ip_addr_t {aka struct ip4_addr}' has no member named 'u_addr'
#define ip_2_ip4(ipaddr) (&((ipaddr)->u_addr.ip4))
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip4_addr.h:157:35: note: in definition of macro 'ip4_addr_set'
#define ip4_addr_set(dest, src) ((dest)->addr =
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:529:18: note: in expansion of macro 'ip_2_ip4'
ip4_addr_set(ip_2_ip4(&ip_temp), &broadcast_dhcps);
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:530:48: warning: passing argument 3 of 'udp_sendto' from incompatible pointer type [-Wincompatible-pointer-types]
SendOffer_err_t = udp_sendto(pcb_dhcps, p, &ip_temp, DHCPS_CLIENT_PORT);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:20:0:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/udp.h:141:18: note: expected 'const ip_addr_t * {aka const struct _ip_addr *}' but argument is of type 'ip_addr_t * {aka struct ip4_addr *}'
err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p,
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c: In function 'send_nak':
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:5: warning: braces around scalar initializer
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:5: note: (near initialization for 'ip_temp.addr')
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:5: warning: braces around scalar initializer
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:5: note: (near initialization for 'ip_temp.addr')
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:5: warning: braces around scalar initializer
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:5: note: (near initialization for 'ip_temp.addr')
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:55: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:55: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:60: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:60: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:65: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:65: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:46:39: warning: excess elements in struct initializer
#define IPADDR_TYPE_V4 0U
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:76: note: in expansion of macro 'IPADDR_TYPE_V4'
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:46:39: note: (near initialization for 'ip_temp')
#define IPADDR_TYPE_V4 0U
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:76: note: in expansion of macro 'IPADDR_TYPE_V4'
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:601:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:38:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:85:39: error: 'ip_addr_t {aka struct ip4_addr}' has no member named 'u_addr'
#define ip_2_ip4(ipaddr) (&((ipaddr)->u_addr.ip4))
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip4_addr.h:157:35: note: in definition of macro 'ip4_addr_set'
#define ip4_addr_set(dest, src) ((dest)->addr =
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:602:18: note: in expansion of macro 'ip_2_ip4'
ip4_addr_set(ip_2_ip4(&ip_temp), &broadcast_dhcps);
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:603:46: warning: passing argument 3 of 'udp_sendto' from incompatible pointer type [-Wincompatible-pointer-types]
SendNak_err_t = udp_sendto(pcb_dhcps, p, &ip_temp, DHCPS_CLIENT_PORT);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:20:0:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/udp.h:141:18: note: expected 'const ip_addr_t * {aka const struct _ip_addr *}' but argument is of type 'ip_addr_t * {aka struct ip4_addr *}'
err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p,
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c: In function 'send_ack':
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:5: warning: braces around scalar initializer
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:5: note: (near initialization for 'ip_temp.addr')
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:5: warning: braces around scalar initializer
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:5: note: (near initialization for 'ip_temp.addr')
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:5: warning: braces around scalar initializer
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:5: note: (near initialization for 'ip_temp.addr')
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:55: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:55: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:60: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:60: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:65: warning: excess elements in scalar initializer
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:65: note: (near initialization for 'ip_temp.addr')
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:46:39: warning: excess elements in struct initializer
#define IPADDR_TYPE_V4 0U
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:76: note: in expansion of macro 'IPADDR_TYPE_V4'
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:46:39: note: (near initialization for 'ip_temp')
#define IPADDR_TYPE_V4 0U
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:64:76: note: in expansion of macro 'IPADDR_TYPE_V4'
#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } } }, IPADDR_TYPE_V4 }
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:675:25: note: in expansion of macro 'IPADDR4_INIT'
ip_addr_t ip_temp = IPADDR4_INIT(0x0);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:38:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:85:39: error: 'ip_addr_t {aka struct ip4_addr}' has no member named 'u_addr'
#define ip_2_ip4(ipaddr) (&((ipaddr)->u_addr.ip4))
^
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip4_addr.h:157:35: note: in definition of macro 'ip4_addr_set'
#define ip4_addr_set(dest, src) ((dest)->addr =
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:676:18: note: in expansion of macro 'ip_2_ip4'
ip4_addr_set(ip_2_ip4(&ip_temp), &broadcast_dhcps);
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:677:46: warning: passing argument 3 of 'udp_sendto' from incompatible pointer type [-Wincompatible-pointer-types]
SendAck_err_t = udp_sendto(pcb_dhcps, p, &ip_temp, DHCPS_CLIENT_PORT);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:20:0:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/udp.h:141:18: note: expected 'const ip_addr_t * {aka const struct _ip_addr *}' but argument is of type 'ip_addr_t * {aka struct ip4_addr *}'
err_t udp_sendto (struct udp_pcb *pcb, struct pbuf p,
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c: In function 'dhcps_start':
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:1139:25: warning: passing argument 2 of 'udp_recv' from incompatible pointer type [-Wincompatible-pointer-types]
udp_recv(pcb_dhcps, handle_dhcp, NULL);
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:20:0:
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/udp.h:133:18: note: expected 'udp_recv_fn {aka void ()(void *, struct udp_pcb *, struct pbuf *, const struct _ip_addr , short unsigned int)}' but argument is of type 'void ()(void *, struct udp_pcb *, struct pbuf *, const ip_addr_t , uint16_t) {aka void ()(void *, struct udp_pcb *, struct pbuf *, const struct ip4_addr *, short unsigned int)}'
void udp_recv (struct udp_pcb *pcb, udp_recv_fn recv,
^
In file included from D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/inet.h:45:0,
from D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:17:
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c: In function 'dhcps_dns_setserver':
D:/msys32/home/mahe/esp-idf/components/lwip/include/lwip/lwip/ip_addr.h:85:39: error: 'ip_addr_t {aka const struct ip4_addr}' has no member named 'u_addr'
#define ip_2_ip4(ipaddr) (&((ipaddr)->u_addr.ip4))
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:1291:24: note: in expansion of macro 'ip_2_ip4'
dns_server = *(ip_2_ip4(dnsserver));
^
D:/msys32/home/mahe/esp-idf/components/lwip/apps/dhcpserver.c:1293:20: error: incompatible types when assigning to type 'ip4_addr_t {aka struct ip4_addr}' from type 'ip4_addr_t {aka const struct ip4_addr}'
dns_server = *(ip_2_ip4(IP_ADDR_ANY));
^
make[1]: *** [/home/mahe/esp-idf/make/component_wrapper.mk:286: apps/dhcpserver.o] Error 1
make: *** [D:/msys32/home/mahe/esp-idf/make/project.mk:467: component-lwip-build] Error 2