Chinaunix首页 | 论坛 | 博客
  • 博客访问: 98886
  • 博文数量: 17
  • 博客积分: 37
  • 博客等级: 民兵
  • 技术积分: 217
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-09 18:24
文章分类
文章存档

2016年(4)

2015年(3)

2014年(9)

2011年(1)

我的朋友

分类: 嵌入式

2014-04-25 09:32:57

/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) |
给主人留下些什么吧!~~