/usr/lib -L/openwrt/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/lib -L/openwrt/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/usr/lib -L/openwrt/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/lib -lnl-tiny -lm -luci
/openwrt/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/usr/bin/../lib/gcc/mips-openwrt-linux-gnu/4.3.3/../../../../mips-openwrt-linux-gnu/bin/ld: warning: libdl.so.2, needed by /openwrt/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/lib/libuci.so, not found (try using -rpath or -rpath-link)
/openwrt/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/lib/libuci.so: undefined reference to `dlopen@GLIBC_2.2'
/openwrt/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/lib/libuci.so: undefined reference to `dlsym@GLIBC_2.0'
/openwrt/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/lib/libuci.so: undefined reference to `dlclose@GLIBC_2.0'
collect2: ld returned 1 exit status
make[4]: *** [swconfig] Error 1
make[4]: Leaving directory `/openwrt/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/swconfig'
make[3]: *** [/openwrt/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/swconfig/.built] Error 2
make[3]: Leaving directory `/openwrt/openwrt-dreambox/package/swconfig'
make[2]: *** [package/swconfig/compile] Error 2
make[2]: Leaving directory `/openwrt/openwrt-dreambox'
make[1]: *** [/openwrt/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/stamp/.package_compile] Error 2
make[1]: Leaving directory `/openwrt/openwrt-dreambox'
make: *** [world] Error 2
进入到/openwrt/openwrt-dreambox/package/swconfig文件夹下面,在Makefile的40行 LIBS选项中添加 -ldl即可。
define Build/Compile
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
LIBS="$(TARGET_LDFLAGS) -lnl-tiny -lm -ldl -luci "
endef
阅读(12870) | 评论(0) | 转发(0) |