netifd compile errors
Paul D
newtwen at gmail.com
Tue Apr 23 17:59:26 PDT 2024
commit 33ec3daaaa52cea628df91eb0eb1701e16172c1e - HEAD
Problems.
the first error was the absence of /home/user/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libubox/udebug.h
Had to manually download udebug.h from the libubox repo...?
Next error - (c)make cannot seem to find libnl-tiny deps if I try to build master/main?:
time: package/libs/toolchain/compile#0.27#0.17#0.42
make[2]: Entering directory '/home/user/openwrt/package/libs/libnl-tiny'
echo "libnl-tiny" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libnl-tiny.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/libnl-tiny'
time: package/libs/libnl-tiny/compile#0.15#0.17#0.29
make[2]: Entering directory '/home/user/openwrt/package/libs/libjson-c'
echo "libjson-c" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libjson-c.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.19#0.20#0.35
make[2]: Entering directory '/home/user/openwrt/package/utils/lua'
make[2]: Leaving directory '/home/user/openwrt/package/utils/lua'
time: package/utils/lua/compile#0.16#0.20#0.34
make[2]: Entering directory '/home/user/openwrt/package/libs/libubox'
echo "libubox" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "libblobmsg-json" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "jshn" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "libjson-script" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/libubox'
time: package/libs/libubox/compile#0.20#0.22#0.39
make[2]: Entering directory '/home/user/openwrt/package/system/ubus'
echo "libubus" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
echo "ubus" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
echo "ubusd" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
make[2]: Leaving directory '/home/user/openwrt/package/system/ubus'
time: package/system/ubus/compile#0.15#0.18#0.32
make[2]: Entering directory '/home/user/openwrt/package/system/uci'
echo "libuci" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/uci.default.install
echo "uci" >> /home/user/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/uci.default.install
make[2]: Leaving directory '/home/user/openwrt/package/system/uci'
time: package/system/uci/compile#0.16#0.16#0.29
make[2]: Entering directory '/home/user/openwrt/package/network/config/netifd'
rm -f /home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/.built
touch /home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/.built_check
MAKEFLAGS="" /home/user/openwrt/staging_dir/host/bin/ninja -j1 -C /home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80
ninja: Entering directory `/home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80'
[1/2] Building C object CMakeFiles/netifd.dir/system-linux.c.o
FAILED: CMakeFiles/netifd.dir/system-linux.c.o
/home/user/openwrt/staging_dir/toolchain-mips_24kc_gcc-13.2.0_musl/bin/mips-openwrt-linux-musl-gcc -DDEBUG -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80=netifd-2024-04-24-d4c78d80 -mips16 -minterlink-mips16 -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libnl-tiny -I/home/user/openwrt/staging_dir/target-mips_24kc_musl/usr/include -DNDEBUG -Wall -Werror -Wextra -Werror=implicit-function-declaration -Wformat -Werror=format-security -Werror=format-nonliteral -Os --std=gnu99 -Wmissing-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wimplicit-fallthrough -g3 -MD -MT CMakeFiles/netifd.dir/system-linux.c.o -MF CMakeFiles/netifd.dir/system-linux.c.o.d -o CMakeFiles/netifd.dir/system-linux.c.o -c /home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/system-linux.c
/home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/system-linux.c: In function 'create_socket':
/home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/system-linux.c:227:9: error: implicit declaration of function 'nl_socket_set_tx_debug_cb'; did you mean 'nl_socket_set_cb'? [-Werror=implicit-function-declaration]
227 | nl_socket_set_tx_debug_cb(sock, nl_udebug_cb, &udb_nl);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| nl_socket_set_cb
/home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/system-linux.c:228:9: error: implicit declaration of function 'nl_socket_set_rx_debug_cb'; did you mean 'nl_socket_set_cb'? [-Werror=implicit-function-declaration]
228 | nl_socket_set_rx_debug_cb(sock, nl_udebug_cb, &udb_nl);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| nl_socket_set_cb
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:52: /home/user/openwrt/build_dir/target-mips_24kc_musl/netifd-2024-04-24-d4c78d80/.built] Error 1
make[2]: Leaving directory '/home/user/openwrt/package/network/config/netifd'
time: package/network/config/netifd/compile#0.84#0.23#1.01
ERROR: package/network/config/netifd failed to build.
make[1]: *** [package/Makefile:120: package/network/config/netifd/compile] Error 1
make[1]: Leaving directory '/home/user/openwrt'
make: *** [/home/user/openwrt/include/toplevel.mk:232: package/network/config/netifd/compile] Error 2
More information about the openwrt-devel
mailing list