Hi, I don’t understand, what’s a problem with http-server lib during build!?
Recently there were no mistakes with this. I’ve not changed anything related to the http-server.
What’s wrong?
/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/deps/http-server/src/mgos_http_server.c:215:34: error: ‘struct mgos_dns_sd_txt_entry’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
static bool add_extra_txt(struct mgos_dns_sd_txt_entry **txt, int *n,
^~~~~~~~~~~~~~~~~~~~~
/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/deps/http-server/src/mgos_http_server.c: In function ‘add_extra_txt’:
/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/deps/http-server/src/mgos_http_server.c:224:46: error: dereferencing pointer to incomplete type ‘struct mgos_dns_sd_txt_entry’
*txt = realloc(*txt, ((*n) + 2) * sizeof(**txt));
^~~~~
/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/deps/http-server/src/mgos_http_server.c:226:11: error: invalid use of undefined type
‘struct mgos_dns_sd_txt_entry’
(*txt)[*n].key = key.p;
^
/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/deps/http-server/src/mgos_http_server.c:227:11: error: invalid use of undefined type
‘struct mgos_dns_sd_txt_entry’
(*txt)[*n].value = val;
^
At top level:
/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/deps/http-server/src/mgos_http_server.c:215:13: warning: ‘add_extra_txt’ defined but
not used [-Wunused-function]
static bool add_extra_txt(struct mgos_dns_sd_txt_entry **txt, int *n,
^~~~~~~~~~~~~
cc1: all warnings being treated as errors
/mongoose-os/platforms/esp32/src/esp32_src.mk:100: recipe for target ‘mgos_http_server.c.o’ failed
make[1]: *** [mgos_http_server.c.o] Error 1
make[1]: *** Waiting for unfinished jobs…
make[1]: Leaving directory ‘/data/fwbuild-volumes/latest/apps/gw11/esp32/build_contexts/build_ctx_302065489/build/objs/mosapp’
make: *** [component-mosapp-build] Error 2
/opt/Espressif/esp-idf/make/project.mk:635: recipe for target ‘component-mosapp-build’ failed
make: Leaving directory ‘/app’
Error: /src/cli/build_remote.go:333: build failed
/src/cli/build.go:278:
/src/cli/build.go:221:
/src/cli/main.go:194: build failed