compile.21
build number: 21
re-implement command
docker pull immortalwrt/opde:sdk
docker run -it --rm immortalwrt/opde:sdk zsh # or bash
export http_proxy= # [your proxy], do not use localhost or 127.0.0.1
export https_proxy=$http_proxy
opde feeds && opde config -a
make package/feeds/packages/mwol/compile -j$(nproc) || make package/feeds/packages/mwol/compile V=s
Compile.txt
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 8.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /openwrt/staging_dir/toolchain-aarch64_cortex-a72_gcc-8.4.0_musl/bin/aarch64-openwrt-linux-musl-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER_LAUNCHER
CMAKE_CXX_COMPILER
CMAKE_CXX_FLAGS_RELEASE
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_EXPORT_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
CMAKE_FIND_USE_PACKAGE_REGISTRY
CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY
CMAKE_MODULE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
DL_LIBRARY
-- Build files have been written to: /openwrt/build_dir/target-aarch64_cortex-a72_musl/mwol-1.0.0
ninja: Entering directory `/openwrt/build_dir/target-aarch64_cortex-a72_musl/mwol-1.0.0'
[1/8] Building C object src/CMakeFiles/mwol.dir/main.c.o
[2/8] Building C object src/CMakeFiles/mwol.dir/common.c.o
In file included from src/common.c:24:
src/common.c: In function 'safe_malloc':
src/common.h:83:37: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
fprintf(stdout, "%s:%d: " fmt, __FILENAME__, __LINE__, ##__VA_ARGS__); \
^~~~~~~~~
src/common.c:49:9: note: in expansion of macro 'MSG_DEBUG'
MSG_DEBUG("ERROR: Failed to malloc %d bytes of memory: %s. Bailing out", size, strerror(errno));
^~~~~~~~~
src/common.c:49:45: note: format string is defined here
MSG_DEBUG("ERROR: Failed to malloc %d bytes of memory: %s. Bailing out", size, strerror(errno));
~^
%ld
[3/8] Building C object src/CMakeFiles/mwol.dir/config.c.o
[4/8] Building C object src/CMakeFiles/mwol.dir/json.c.o
src/json.c: In function 'json_arp_list':
src/json.c:281:2: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy(*msg, out, strlen(out));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/json.c: In function 'json_wol_response':
src/json.c:320:2: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy(*msg, out, strlen(out));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/8] Building C object src/CMakeFiles/mwol.dir/mqtt_client.c.o
[6/8] Building C object src/CMakeFiles/mwol.dir/wake.c.o
src/wake.c: In function 'wake_on_lan':
src/wake.c:217:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[7/8] Building C object src/CMakeFiles/mwol.dir/cJSON.c.o
[8/8] Linking C executable src/mwol
ninja: Entering directory `/openwrt/build_dir/target-aarch64_cortex-a72_musl/mwol-1.0.0'
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /openwrt/build_dir/target-aarch64_cortex-a72_musl/mwol-1.0.0/ipkg-install/usr/bin/mwol
Package mwol is missing dependencies for the following libraries:
libmosquitto.so.1
make[3]: *** [Makefile:77: /openwrt/bin/packages/aarch64_cortex-a72/packages/mwol_1.0.0-2_aarch64_cortex-a72.ipk] Error 1