|
本帖最后由 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,但是出错,挺多错的,无从下手,望高手指点指点,或者给我一份源码,万谢
|
|