'dhcpserver.o] Error 1' for building 'Micropython' for the ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
kit
Posts: 4
Joined: Thu Nov 09, 2017 3:41 pm

'dhcpserver.o] Error 1' for building 'Micropython' for the ESP32

Post by kit » Mon Dec 11, 2017 9:15 am

During build MicroPython for the ESP32, I ran into an below error.
I refer to this
https://github.com/micropython/micropyt ... orts/esp32

At the stage of building 'esp-idf', No problem and get through the 'hello_world'.
But, at the time of 'make' to build Micropython for esp32, the error happened.

Thanks if share your experience or give me the advice to solve this problem.

--------------------------------------------
CC /home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c
In file included from /home/kit/gitspace/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:48:0,
from /home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c:23:
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c: In function 'add_offer_options':
/home/kit/gitspace/esp/esp-idf/components/lwip/include/lwip/apps/dhcpserver.h:55:26: error: 'CONFIG_LWIP_DHCPS_LEASE_UNIT' undeclared (first use in this function)
#define DHCPS_LEASE_UNIT CONFIG_LWIP_DHCPS_LEASE_UNIT
^
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c:314:38: note: in expansion of macro 'DHCPS_LEASE_UNIT'
*optptr++ = ((dhcps_lease_time * DHCPS_LEASE_UNIT) >> 24) & 0xFF;
^
/home/kit/gitspace/esp/esp-idf/components/lwip/include/lwip/apps/dhcpserver.h:55:26: note: each undeclared identifier is reported only once for each function it appears in
#define DHCPS_LEASE_UNIT CONFIG_LWIP_DHCPS_LEASE_UNIT
^
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c:314:38: note: in expansion of macro 'DHCPS_LEASE_UNIT'
*optptr++ = ((dhcps_lease_time * DHCPS_LEASE_UNIT) >> 24) & 0xFF;
^
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c: In function 'parse_msg':
/home/kit/gitspace/esp/esp-idf/components/lwip/include/lwip/apps/dhcpserver.h:55:26: error: 'CONFIG_LWIP_DHCPS_LEASE_UNIT' undeclared (first use in this function)
#define DHCPS_LEASE_UNIT CONFIG_LWIP_DHCPS_LEASE_UNIT
^
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c:803:45: note: in expansion of macro 'DHCPS_LEASE_UNIT'
u32_t lease_timer = (dhcps_lease_time * DHCPS_LEASE_UNIT)/DHCPS_COARSE_TIMER_SECS;
^
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c: In function 'dhcps_coarse_tmr':
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c:66:25: error: 'CONFIG_LWIP_DHCPS_MAX_STATION_NUM' undeclared (first use in this function)
#define MAX_STATION_NUM CONFIG_LWIP_DHCPS_MAX_STATION_NUM
^
/home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.c:1250:27: note: in expansion of macro 'MAX_STATION_NUM'
if (num_dhcps_pool >= MAX_STATION_NUM) {
^
../../py/mkrules.mk:47: recipe for target 'build//home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.o' failed
make: *** [build//home/kit/gitspace/esp/esp-idf/components/lwip/apps/dhcpserver.o] Error 1

Post Reply