叫啥好呢呜呜呜 2021-04-21 09:21 采纳率: 100%
浏览 418
已采纳

openwrt下编译软件包,提示undefined reference to `uloop_run'

编译信息如下:

WARNING: Makefile 'package/feeds/packages/acme/Makefile' has a dependency on 'luci-base', which does not exist
WARNING: Makefile 'package/feeds/packages/bmx7-dnsupdate/Makefile' has a dependency on 'bmx7', which does not exist
WARNING: Makefile 'package/feeds/packages/bmx7-dnsupdate/Makefile' has a dependency on 'bmx7-json', which does not exist
WARNING: Makefile 'package/feeds/packages/dynapoint/Makefile' has a dependency on 'luci-lib-nixio', which does not exist
WARNING: Makefile 'package/feeds/packages/prometheus-node-exporter-lua/Makefile' has a dependency on 'bmx6', which does not exist
WARNING: Makefile 'package/feeds/packages/prometheus-node-exporter-lua/Makefile' has a dependency on 'bmx6-json', which does not exist
WARNING: Makefile 'package/feeds/packages/prometheus-node-exporter-lua/Makefile' has a dependency on 'bmx7', which does not exist
WARNING: Makefile 'package/feeds/packages/prometheus-node-exporter-lua/Makefile' has a dependency on 'bmx7-json', which does not exist
WARNING: Makefile 'package/feeds/packages/prometheus-node-exporter-lua/Makefile' has a dependency on 'luci-lib-nixio', which does not exist
WARNING: Makefile 'package/feeds/packages/sqm-scripts/Makefile' has a dependency on 'luci-base', which does not exist
WARNING: Makefile 'package/feeds/packages/sqm-scripts/Makefile' has a dependency on 'luci-compat', which does not exist
WARNING: Makefile 'package/wthink/strongswan/Makefile' has a dependency on 'strongswan-mod-bypass', which does not exist
make[1]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt'
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/libs/toolchain'
echo "libc" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
echo "libstdcpp" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.13#0.04#0.16
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/libs/libjson-c'
echo "libjson-c" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libjson-c.default.install
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.13#0.07#0.18
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/utils/lua'
echo "liblua" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/lua.default.install
echo "lua" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/lua.default.install
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/utils/lua'
time: package/utils/lua/compile#0.15#0.06#0.19
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/libs/libubox'
echo "libubox" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "libblobmsg-json" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "jshn" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "libjson-script" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
echo "libubox-lua" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libubox.default.install
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/libs/libubox'
time: package/libs/libubox/compile#0.53#0.27#0.73
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/system/ubus'
echo "libubus" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
echo "libubus-lua" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
echo "ubus" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
echo "ubusd" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubus.default.install
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/package/system/ubus'
time: package/system/ubus/compile#0.37#0.20#0.53
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/target/ar9531/WR700D/files/package/wthink/libcjson'
echo "libcjson" >> /home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libcjson.default.install
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/target/ar9531/WR700D/files/package/wthink/libcjson'
time: package/wthink/libcjson/compile#0.14#0.04#0.16
make[2]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/target/ar9531/WR700D/files/package/wthink/uartd'
rm -f /home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd/.built
touch /home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd/.built_check
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd=uartd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/usr/include -lm  -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/include -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/usr/include -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/include/fortify -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd=uartd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/usr/include -lm  -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/include -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/usr/include -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/include/fortify -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/include " LDFLAGS="-L/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/lib -L/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/usr/lib -L/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/lib -znow -zrelro " make -j1 -C /home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -ffile-prefix-map=/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd=uartd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/target-mips_24kc_musl/usr/include -lm" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" CMAKE_COMMAND='/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/host/bin/cmake' CMAKE_DISABLE_cmake_check_build_system=1 ;
make[3]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
make[4]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
make[5]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
make[5]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
make[5]: Entering directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
[ 14%] Linking C executable uartd
/home/zider/gitlab/wr700d/platform_build_tools/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/lib/gcc/mips-openwrt-linux-musl/8.3.0/../../../../mips-openwrt-linux-musl/bin/ld: CMakeFiles/uartd.dir/main.c.o: in function `main':
main.c:(.text.startup+0x102): undefined reference to `uloop_run'
collect2: error: ld returned 1 exit status
CMakeFiles/uartd.dir/build.make:158: recipe for target 'uartd' failed
make[5]: *** [uartd] Error 1
make[5]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/uartd.dir/all' failed
make[4]: *** [CMakeFiles/uartd.dir/all] Error 2
make[4]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd'
Makefile:35: recipe for target '/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd/.built' failed
make[2]: *** [/home/zider/gitlab/wr700d/platform_build_tools/openwrt/build_dir/target-mips_24kc_musl/uartd/.built] Error 2
make[2]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/target/ar9531/WR700D/files/package/wthink/uartd'
time: package/wthink/uartd/compile#0.13#0.06#0.18
package/Makefile:111: recipe for target 'package/wthink/uartd/compile' failed
make[1]: *** [package/wthink/uartd/compile] Error 2
make[1]: Leaving directory '/home/zider/gitlab/wr700d/platform_build_tools/openwrt'
/home/zider/gitlab/wr700d/platform_build_tools/openwrt/include/toplevel.mk:225: recipe for target 'package/uartd/compile' failed

  • 写回答

1条回答 默认 最新

  • 張公㜽 2021-04-21 10:00
    关注

    函数`uloop_run`,在main.c中没有定义或声明。

     

    如果确认函数存在,那需要在main.c里面进行声明或引用相应的头文件。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境
  • ¥30 关于#java#的问题,请各位专家解答!
  • ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
  • ¥20 pcf8563时钟芯片不启振
  • ¥20 pip2.40更新pip2.43时报错
  • ¥15 换yum源但仍然用不了httpd
  • ¥50 C# 使用DEVMOD设置打印机首选项
  • ¥15 麒麟V10 arm安装gdal
  • ¥20 OPENVPN连接问题