Closed zr-her closed 2 years ago
I am trying to build the obuspa agent Docker image, however the compilation fails, as shown in the logs below:
$ docker build -t obuspa:latest . #1 [internal] load build definition from Dockerfile #1 sha256:f1f7e09cb42d174e2f453348e6ad0930d363e166901d119af430607849bc1a88 #1 transferring dockerfile: 996B done #1 DONE 0.0s #2 [internal] load .dockerignore #2 sha256:21ac49a6699c801c2681de585a1718bb513dc87e8fff602069e7fc414bfd19eb #2 transferring context: 2B done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/ubuntu:latest #3 sha256:8c6bdfb121a69744f11ffa1fedfc68ec20085c2dcce567aac97a3ff72e53502d #3 ... #4 [auth] library/ubuntu:pull token for registry-1.docker.io #4 sha256:c4dbfd88d678160109ced5152a451ffb1f6a1d105b0f107cbea82a403ac0b976 #4 DONE 0.0s #3 [internal] load metadata for docker.io/library/ubuntu:latest #3 sha256:8c6bdfb121a69744f11ffa1fedfc68ec20085c2dcce567aac97a3ff72e53502d #3 DONE 3.7s #5 [1/6] FROM docker.io/library/ubuntu:latest@sha256:34fea4f31bf187bc915536831fd0afc9d214755bf700b5cdb1336c82516d154e #5 sha256:694fd3737433fd2f371eae7aaedaf28b401e7f8bf4e7cf70824f78f531715495 #5 DONE 0.0s #8 [internal] load build context #8 sha256:c82bfbeac315f1263fec81e211e1fe24a3bc825407ee5428d7ee9b6fb9b6ca0d #8 transferring context: 10.81kB 0.0s done #8 DONE 0.0s #6 [2/6] RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:mosquitto-dev/mosquitto-ppa #6 sha256:218da6819a1df96e3cd37ee0d766267bbee405e067122456575456223719580d #6 CACHED #7 [3/6] RUN apt-get update && apt-get -y install libssl-dev libcurl4-openssl-dev libsqlite3-dev libc-ares-dev libz-dev autoconf automake libtool libmosquitto-dev libwebsockets-dev pkg-config make && apt-get clean #7 sha256:0acd85f1d0626b4d0049304d28e54f85722432b20ec7cb64470b75af67f3f93b #7 CACHED #9 [4/6] COPY . /obuspa/ #9 sha256:54755dfd75c07db2fa5fb7f12aea53d2851031527f357748baa82d11f841636e #9 DONE 0.1s #10 [5/6] RUN cd /obuspa/ && autoreconf --force --install && ./configure && make -j8 && make install #10 sha256:bf670a2949d324a6c4a4a36feb05a25c15cf0e1c40779538c77f456cd679b350 #10 1.959 aclocal: warning: couldn't open directory 'm4': No such file or directory #10 2.658 libtoolize: putting auxiliary files in '.'. #10 2.658 libtoolize: copying file './ltmain.sh' #10 2.680 libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. #10 2.680 libtoolize: copying file 'm4/libtool.m4' #10 2.697 libtoolize: copying file 'm4/ltoptions.m4' #10 2.714 libtoolize: copying file 'm4/ltsugar.m4' #10 2.732 libtoolize: copying file 'm4/ltversion.m4' #10 2.751 libtoolize: copying file 'm4/lt~obsolete.m4' #10 2.772 libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. #10 4.391 configure.ac:9: installing './compile' #10 4.393 configure.ac:12: installing './config.guess' #10 4.395 configure.ac:12: installing './config.sub' #10 4.397 configure.ac:7: installing './install-sh' #10 4.399 configure.ac:7: installing './missing' #10 4.420 Makefile.am: installing './depcomp' #10 4.641 checking for a BSD-compatible install... /usr/bin/install -c #10 4.650 checking whether build environment is sane... yes #10 4.662 checking for a race-free mkdir -p... /usr/bin/mkdir -p #10 4.664 checking for gawk... no #10 4.664 checking for mawk... mawk #10 4.665 checking whether make sets $(MAKE)... yes #10 4.678 checking whether make supports nested variables... yes #10 4.688 checking whether make supports the include directive... yes (GNU style) #10 4.697 checking for gcc... gcc #10 4.721 checking whether the C compiler works... yes #10 4.754 checking for C compiler default output file name... a.out #10 4.755 checking for suffix of executables... #10 4.782 checking whether we are cross compiling... no #10 4.816 checking for suffix of object files... o #10 4.834 checking whether the compiler supports GNU C... yes #10 4.851 checking whether gcc accepts -g... yes #10 4.867 checking for gcc option to enable C11 features... none needed #10 4.913 checking whether gcc understands -c and -o together... yes #10 4.945 checking dependency style of gcc... gcc3 #10 4.970 checking for stdio.h... yes #10 4.990 checking for stdlib.h... yes #10 5.013 checking for string.h... yes #10 5.038 checking for inttypes.h... yes #10 5.062 checking for stdint.h... yes #10 5.084 checking for strings.h... yes #10 5.108 checking for sys/stat.h... yes #10 5.133 checking for sys/types.h... yes #10 5.160 checking for unistd.h... yes #10 5.190 checking for wchar.h... yes #10 5.225 checking for minix/config.h... no #10 5.256 checking whether it is safe to define __EXTENSIONS__... yes #10 5.288 checking whether _XOPEN_SOURCE should be defined... no #10 5.315 checking build system type... x86_64-pc-linux-gnu #10 5.352 checking host system type... x86_64-pc-linux-gnu #10 5.352 checking how to print strings... printf #10 5.355 checking for a sed that does not truncate output... /usr/bin/sed #10 5.360 checking for grep that handles long lines and -e... /usr/bin/grep #10 5.362 checking for egrep... /usr/bin/grep -E #10 5.364 checking for fgrep... /usr/bin/grep -F #10 5.366 checking for ld used by gcc... /usr/bin/ld #10 5.371 checking if the linker (/usr/bin/ld) is GNU ld... yes #10 5.374 checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B #10 5.377 checking the name lister (/usr/bin/nm -B) interface... BSD nm #10 5.395 checking whether ln -s works... yes #10 5.395 checking the maximum length of command line arguments... 1572864 #10 5.402 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop #10 5.403 checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop #10 5.403 checking for /usr/bin/ld option to reload object files... -r #10 5.404 checking for objdump... objdump #10 5.404 checking how to recognize dependent libraries... pass_all #10 5.405 checking for dlltool... no #10 5.406 checking how to associate runtime and link libraries... printf %s\n #10 5.406 checking for ar... ar #10 5.407 checking for archiver @FILE support... @ #10 5.430 checking for strip... strip #10 5.431 checking for ranlib... ranlib #10 5.432 checking command to parse /usr/bin/nm -B output from gcc object... ok #10 5.497 checking for sysroot... no #10 5.498 checking for a working dd... /usr/bin/dd #10 5.502 checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 #10 5.520 checking for mt... no #10 5.520 checking if : is a manifest tool... no #10 5.526 checking for dlfcn.h... yes #10 5.560 checking for objdir... .libs #10 5.620 checking if gcc supports -fno-rtti -fno-exceptions... no #10 5.638 checking for gcc option to produce PIC... -fPIC -DPIC #10 5.639 checking if gcc PIC flag -fPIC -DPIC works... yes #10 5.656 checking if gcc static flag -static works... yes #10 5.717 checking if gcc supports -c -o file.o... yes #10 5.739 checking if gcc supports -c -o file.o... (cached) yes #10 5.739 checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes #10 5.749 checking whether -lc should be explicitly linked in... no #10 5.773 checking dynamic linker characteristics... GNU/Linux ld.so #10 5.817 checking how to hardcode library paths into programs... immediate #10 5.817 checking whether stripping libraries is possible... yes #10 5.819 checking if libtool supports shared libraries... yes #10 5.819 checking whether to build shared libraries... yes #10 5.819 checking whether to build static libraries... no #10 5.820 checking for gcc... (cached) gcc #10 5.843 checking whether the compiler supports GNU C... (cached) yes #10 5.843 checking whether gcc accepts -g... (cached) yes #10 5.844 checking for gcc option to enable C11 features... (cached) none needed #10 5.845 checking whether gcc understands -c and -o together... (cached) yes #10 5.845 checking dependency style of gcc... (cached) gcc3 #10 5.846 checking for pkg-config... /usr/bin/pkg-config #10 5.847 checking pkg-config is at least version 0.9.0... yes #10 5.848 checking for openssl... yes #10 5.859 checking for sqlite3... yes #10 5.870 checking for libcurl... yes #10 5.878 checking for zlib... yes #10 5.887 checking for libmosquitto... yes #10 5.896 checking for libwebsockets >= 3.2.0... yes #10 5.905 checking for gcc options needed to detect all undeclared functions... none needed #10 5.938 checking whether strerror_r is declared... yes #10 5.978 checking whether strerror_r returns char *... yes #10 6.001 checking for malloc.h... yes #10 6.032 checking for execinfo.h... yes #10 6.061 checking for mallinfo... yes #10 6.096 checking for mallinfo2... yes #10 6.154 checking that generated files are newer than configure... done #10 6.155 configure: creating ./config.status #10 6.541 config.status: creating Makefile #10 6.554 config.status: executing depfiles commands #10 6.766 config.status: executing libtool commands #10 6.810 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-coap_common.o -MD -MP -MF src/core/.deps/obuspa-coap_common.Tpo -c -o src/core/obuspa-coap_common.o `test -f 'src/core/coap_common.c' || echo './'`src/core/coap_common.c #10 6.811 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-coap_client.o -MD -MP -MF src/core/.deps/obuspa-coap_client.Tpo -c -o src/core/obuspa-coap_client.o `test -f 'src/core/coap_client.c' || echo './'`src/core/coap_client.c #10 6.812 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-coap_server.o -MD -MP -MF src/core/.deps/obuspa-coap_server.Tpo -c -o src/core/obuspa-coap_server.o `test -f 'src/core/coap_server.c' || echo './'`src/core/coap_server.c #10 6.813 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-uri.o -MD -MP -MF src/core/.deps/obuspa-uri.Tpo -c -o src/core/obuspa-uri.o `test -f 'src/core/uri.c' || echo './'`src/core/uri.c #10 6.813 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-mqtt.o -MD -MP -MF src/core/.deps/obuspa-mqtt.Tpo -c -o src/core/obuspa-mqtt.o `test -f 'src/core/mqtt.c' || echo './'`src/core/mqtt.c #10 6.814 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-device_mqtt.o -MD -MP -MF src/core/.deps/obuspa-device_mqtt.Tpo -c -o src/core/obuspa-device_mqtt.o `test -f 'src/core/device_mqtt.c' || echo './'`src/core/device_mqtt.c #10 6.814 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-wsclient.o -MD -MP -MF src/core/.deps/obuspa-wsclient.Tpo -c -o src/core/obuspa-wsclient.o `test -f 'src/core/wsclient.c' || echo './'`src/core/wsclient.c #10 6.815 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-wsserver.o -MD -MP -MF src/core/.deps/obuspa-wsserver.Tpo -c -o src/core/obuspa-wsserver.o `test -f 'src/core/wsserver.c' || echo './'`src/core/wsserver.c #10 6.828 mv -f src/core/.deps/obuspa-uri.Tpo src/core/.deps/obuspa-uri.Po #10 6.831 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-usp_record.o -MD -MP -MF src/core/.deps/obuspa-usp_record.Tpo -c -o src/core/obuspa-usp_record.o `test -f 'src/core/usp_record.c' || echo './'`src/core/usp_record.c #10 7.150 mv -f src/core/.deps/obuspa-usp_record.Tpo src/core/.deps/obuspa-usp_record.Po #10 7.153 gcc -DPACKAGE_NAME=\"ob-uspagent\" -DPACKAGE_TARNAME=\"ob-uspagent\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"ob-uspagent\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ob-uspagent\" -DVERSION=\"1.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DENABLE_COAP=1 -DENABLE_MQTT=1 -DENABLE_WEBSOCKETS=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_MALLOC_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MALLINFO=1 -DHAVE_MALLINFO2=1 -I. -I/usr/include/x86_64-linux-gnu -DOBUSPA_LOCAL_STATE_DIR=\""/usr/local/var/obuspa"\" -I./src -I./src/core -I./src/protobuf-c -I./src/vendor -I./src/libjson/ccan/json -I./src/include -Werror -Werror=unused-value -Werror=format -Winit-self -Wparentheses -Werror=parentheses -Wuninitialized -Werror=uninitialized -Wpointer-arith -Wall -Wfatal-errors -g -O2 -MT src/core/obuspa-sar_vector.o -MD -MP -MF src/core/.deps/obuspa-sar_vector.Tpo -c -o src/core/obuspa-sar_vector.o `test -f 'src/core/sar_vector.c' || echo './'`src/core/sar_vector.c #10 7.185 src/core/wsclient.c: In function 'WSCLIENT_Destroy': #10 7.185 src/core/wsserver.c: In function 'StopWebsockServer': #10 7.186 src/core/wsclient.c:344:13: error: implicit declaration of function 'lws_sul_cancel' [-Werror=implicit-function-declaration] #10 7.186 344 | lws_sul_cancel(&wc->retry_timer); #10 7.186 | ^~~~~~~~~~~~~~ #10 7.186 compilation terminated due to -Wfatal-errors. #10 7.186 cc1: all warnings being treated as errors #10 7.186 src/core/wsserver.c:852:5: error: implicit declaration of function 'lws_sul_cancel' [-Werror=implicit-function-declaration] #10 7.186 852 | lws_sul_cancel(&wsserv.wan_poll_timer); #10 7.186 | ^~~~~~~~~~~~~~ #10 7.186 compilation terminated due to -Wfatal-errors. #10 7.187 cc1: all warnings being treated as errors #10 7.190 make: *** [Makefile:1931: src/core/obuspa-wsclient.o] Error 1 #10 7.190 make: *** Waiting for unfinished jobs.... #10 7.191 make: *** [Makefile:1945: src/core/obuspa-wsserver.o] Error 1 #10 7.347 mv -f src/core/.deps/obuspa-coap_common.Tpo src/core/.deps/obuspa-coap_common.Po #10 7.354 mv -f src/core/.deps/obuspa-sar_vector.Tpo src/core/.deps/obuspa-sar_vector.Po #10 7.482 mv -f src/core/.deps/obuspa-coap_client.Tpo src/core/.deps/obuspa-coap_client.Po #10 7.595 mv -f src/core/.deps/obuspa-device_mqtt.Tpo src/core/.deps/obuspa-device_mqtt.Po #10 7.602 mv -f src/core/.deps/obuspa-coap_server.Tpo src/core/.deps/obuspa-coap_server.Po #10 7.924 mv -f src/core/.deps/obuspa-mqtt.Tpo src/core/.deps/obuspa-mqtt.Po #10 ERROR: executor failed running [/bin/sh -c cd /obuspa/ && autoreconf --force --install && ./configure && make -j${MAKE_JOBS} && make install]: exit code: 2 ------ > [5/6] RUN cd /obuspa/ && autoreconf --force --install && ./configure && make -j8 && make install: ------ executor failed running [/bin/sh -c cd /obuspa/ && autoreconf --force --install && ./configure && make -j${MAKE_JOBS} && make install]: exit code: 2
I tried replacing autoreconf -fi with autoreconf --force --install in the Dockerfile as suggested in this issue (https://github.com/BroadbandForum/obuspa/issues/39 ), but the error remains.
autoreconf -fi
autoreconf --force --install
I am using Windows and Docker Desktop v4.11.1.
How can I solve this? Thanks!
This seems to be a problem with ubuntu:latest. Try using ubuntu:focal in the Dockerfile.
That solved it, thanks!
I am trying to build the obuspa agent Docker image, however the compilation fails, as shown in the logs below:
I tried replacing
autoreconf -fi
withautoreconf --force --install
in the Dockerfile as suggested in this issue (https://github.com/BroadbandForum/obuspa/issues/39 ), but the error remains.I am using Windows and Docker Desktop v4.11.1.
How can I solve this? Thanks!