找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2813|回复: 3

openwrt编译问题,小弟新手,大家帮忙看看是哪里的问题,谢谢啦

[复制链接]
发表于 2016-5-18 10:24 | 显示全部楼层 |阅读模式
net/nat/hw_nat/ra_nat.c: In function 'PpeExtIfRxHandler':
net/nat/hw_nat/ra_nat.c:561:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  int i=0;
  ^
  CC [M]  net/nat/hw_nat/foe_fdb.o
net/nat/hw_nat/foe_fdb.c: In function '_FoeDropEntry':
net/nat/hw_nat/foe_fdb.c:569:25: error: 'struct _info_blk2' has no member named 'dp'
  entry->ipv4_hnapt.iblk2.dp = 7;
                         ^
make[7]: *** [net/nat/hw_nat/foe_fdb.o] Error 1
make[6]: *** [net/nat/hw_nat] Error 2
make[5]: *** [net] Error 2
make[5]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.10.14'
make[4]: *** [/home/jxie1/SDK/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.10.14/.modules] Error 2
make[4]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/target/linux/ramips'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/jxie1/SDK/openwrt-sdk'
make[1]: *** [/home/jxie1/SDK/openwrt-sdk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/jxie1/SDK/openwrt-sdk'
make: *** [world] Error 2
jxie1@ubuntu:~/SDK/openwrt-sdk$
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2016-5-18 15:01 | 显示全部楼层
# configuration written to .config
#
make[5]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.10.14'
make[5]: Entering directory `/home/jxie1/SDK/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.10.14'
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CC [M]  drivers/char/i2c_drv.o
drivers/char/i2c_drv.c: In function 'i2cdrv_ioctl':
drivers/char/i2c_drv.c:1166:3: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
   printk("i2c clkdiv = %d\n",clkdiv_value);
   ^
  CC [M]  drivers/mmc/host/mtk-mmc/sd.o
drivers/mmc/host/mtk-mmc/sd.c: In function 'mt_msdc_init':
drivers/mmc/host/mtk-mmc/sd.c:2970:14: warning: unused variable 'reg1' [-Wunused-variable]
     u32 reg, reg1;
              ^
  LD [M]  drivers/mmc/host/mtk-mmc/mtk_sd.o
  CC [M]  net/nat/hw_nat/foe_fdb.o
net/nat/hw_nat/foe_fdb.c: In function '_FoeDropEntry':
net/nat/hw_nat/foe_fdb.c:569:25: error: 'struct _info_blk2' has no member named 'dp'
  entry->ipv4_hnapt.iblk2.dp = 7;
                         ^
make[7]: *** [net/nat/hw_nat/foe_fdb.o] Error 1
make[6]: *** [net/nat/hw_nat] Error 2
make[5]: *** [net] Error 2
make[5]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.10.14'
make[4]: *** [/home/jxie1/SDK/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.10.14/.modules] Error 2
make[4]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/target/linux/ramips'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/jxie1/SDK/openwrt-sdk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/jxie1/SDK/openwrt-sdk'
make[1]: *** [/home/jxie1/SDK/openwrt-sdk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/jxie1/SDK/openwrt-sdk'
make: *** [world] Error 2
jxie1@ubuntu:~/SDK/openwrt-sdk$
贴了详细的信息,有大神帮忙看看吗
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-5-18 15:40 | 显示全部楼层
已解决

点评

请问你修改了哪里?添加了一个结构体成员?  详情 回复 发表于 2016-8-3 18:06
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2016-8-3 18:06 | 显示全部楼层

请问你修改了哪里?添加了一个结构体成员?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-23 06:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表