找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2516|回复: 4

编译tomato 错误求解

[复制链接]
发表于 2014-1-10 21:14 | 显示全部楼层 |阅读模式
本帖最后由 idwtwt 于 2014-1-10 21:16 编辑

In file included from /opt/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/sys-include/linux/mtd/mtd.h:15,
                 from mtd.c:52:
/opt/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/sys-include/linux/notifier.h:62: error: field 'rwsem' has incomplete type
In file included from mtd.c:52:
/opt/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/sys-include/linux/mtd/mtd.h:18:25: error: mtd/mtd-abi.h: No such file or directory
In file included from mtd.c:52:
/opt/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/sys-include/linux/mtd/mtd.h:47: error: expected specifier-qualifier-list before 'u8'
/opt/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/sys-include/linux/mtd/mtd.h:193: error: field 'ecc_stats' has incomplete type
/opt/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/sys-include/linux/mtd/mtd.h:225: error: field 'list' has incomplete type
mtd.c:115: error: expected declaration specifiers or '...' before 'mtd_info_t'
mtd.c: In function 'mtd_open':
mtd.c:125: error: 'mi' undeclared (first use in this function)
mtd.c:125: error: 'MEMGETINFO' undeclared (first use in this function)
mtd.c: In function '_unlock_erase':
mtd.c:138: error: 'mtd_info_t' undeclared (first use in this function)
mtd.c:138: error: expected ';' before 'mi'
mtd.c:139: error: 'erase_info_t' undeclared (first use in this function)
mtd.c:139: error: expected ';' before 'ei'
mtd.c:147: error: 'mi' undeclared (first use in this function)
mtd.c:147: error: too many arguments to function 'mtd_open'
mtd.c:150: error: 'ei' undeclared (first use in this function)
mtd.c:155: error: 'MEMUNLOCK' undeclared (first use in this function)
mtd.c:161: error: 'MEMERASE' undeclared (first use in this function)
mtd.c: In function 'mtd_write_main':
mtd.c:236: error: 'mtd_info_t' undeclared (first use in this function)
mtd.c:236: error: expected ';' before 'mi'
mtd.c:237: error: 'erase_info_t' undeclared (first use in this function)
mtd.c:237: error: expected ';' before 'ei'
mtd.c:412: error: 'mi' undeclared (first use in this function)
mtd.c:412: error: too many arguments to function 'mtd_open'
mtd.c:432: error: 'ei' undeclared (first use in this function)
mtd.c:501: error: 'MEMUNLOCK' undeclared (first use in this function)
mtd.c:502: error: 'MEMERASE' undeclared (first use in this function)
make[4]: *** [mtd.o] 错误 1
make[4]:正在离开目录 `/opt/tomato/release/src/router/rc'
make[3]: *** [rc] 错误 2
make[3]:正在离开目录 `/opt/tomato/release/src/router'
make[2]: *** [all] 错误 2
make[2]:正在离开目录 `/opt/tomato/release/src'
make[1]: *** [bin] 错误 2
make[1]:正在离开目录 `/opt/tomato/release/src'
make: *** [t] 错误 2


尝试编译tomato shibby,但是出错,挺多错的,无从下手,望高手指点指点,或者给我一份源码,万谢


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2014-1-10 22:37 | 显示全部楼层
搜论坛吧,有前辈谢了很详细的编译帖子。源码都是从git下载的,一样的。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2014-1-10 22:43 | 显示全部楼层
bwq518 发表于 2014-1-10 22:37
搜论坛吧,有前辈谢了很详细的编译帖子。源码都是从git下载的,一样的。

帖子都是11年之前的,那是的源码和现在的不太一样。。。所以想来问一下先
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2014-1-11 15:11 | 显示全部楼层
idwtwt 发表于 2014-1-10 22:43
帖子都是11年之前的,那是的源码和现在的不太一样。。。所以想来问一下先

方法不分时间。。。
源码你照里面的方法做是能获取到最新源码的。。。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2014-1-12 09:03 | 显示全部楼层
有時候錯誤顯示一大堆 其實只有一個錯誤 有時候只有一條錯誤信息 其實錯了很多處 貌似錯誤訊息顯示的是缺少聲明
順便問下tomato官方網站在哪裡
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-27 17:34

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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