执行python build.py ipcamera_hi3516dv300 -b debug
执行python build.py ipcamera_hi3516dv300 -b debug
make[1]: Entering directory '/home/hjw/kernel/liteos_a/net/lwip-2.1'
enhancement/src/dhcps.c:257:39: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if (dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) {
^
enhancement/src/dhcps.c:258:67: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
client_ip.addr = (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP);
^
enhancement/src/dhcps.c:454:27: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
struct dhcps dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:465:41: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
(!dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP))) {
^
enhancement/src/dhcps.c:479:66: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
requested_ip.addr = (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP);
^
enhancement/src/dhcps.c:485:39: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if (dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) {
^
enhancement/src/dhcps.c:503:70: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
requested_ip.addr = (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP);
^
enhancement/src/dhcps.c:665:62: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if ((client_lease != NULL) && (dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) &&
^
enhancement/src/dhcps.c:667:81: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if (client_lease->cli_addr.addr == (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) {
^
enhancement/src/dhcps.c:762:27: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
struct dhcps dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:865:13: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:961:5: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
netif_set_dhcps(netif, dhcps);
^
enhancement/src/dhcps.c:102:68: note: expanded from macro 'netif_set_dhcps'
#define netif_set_dhcps(netif, dhcps) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS, dhcps)
^
enhancement/src/dhcps.c:968:27: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
struct dhcps dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:978:9: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
netif_set_dhcps(netif, NULL);
^
enhancement/src/dhcps.c:102:68: note: expanded from macro 'netif_set_dhcps'
#define netif_set_dhcps(netif, dhcps) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS, dhcps)
^
14 errors generated.
/home/hjw/kernel/liteos_a/tools/build/mk/module.mk:83: recipe for target '/home/hjw/out/ipcamera_hi3516dv300/obj/kernel/liteos_a/obj/net/lwip/enhancement/src/dhcps.o' failed
make[1]: *** [/home/hjw/out/ipcamera_hi3516dv300/obj/kernel/liteos_a/obj/net/lwip/enhancement/src/dhcps.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/hjw/kernel/liteos_a/net/lwip-2.1'
Makefile:138: recipe for target 'liteos' failed
make: *** [liteos] Error 1
Traceback (most recent call last):
File "../../build/lite/build_ext_components.py", line 64, in
sys.exit(main())
File "../../build/lite/build_ext_components.py", line 56, in main
cmd_exec(data)
File "../../build/lite/build_ext_components.py", line 32, in cmd_exec
raise Exception("{} failed, return code is {}".format(cmd, ret_code))
Exception: ['make', 'rootfs', 'VERSION=OpenHarmony 1.0', '-j', '16', 'OUTDIR=/home/hjw/out/ipcamera_hi3516dv300/obj/kernel/liteos_a'] failed, return code is 2