找回密码
 立即注册

QQ登录

只需一步,快速开始

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

关于修改DD-WRT的问题

[复制链接]
我按照 http://bbs.routerclub.com/thread-18881-1-1.html 上的方法修改DD-WRT,可第一步make就出现问题,提示如下:

knoppix@Knoppix:~/Desktop/linux/tools/src$ make
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2   -c -o asustrx.o asustrx.c
asustrx.c:63:19: error: stdio.h: 没有那个文件或目录
asustrx.c:64:20: error: stdlib.h: 没有那个文件或目录
asustrx.c:66:20: error: stdint.h: 没有那个文件或目录
asustrx.c:67:20: error: string.h: 没有那个文件或目录
asustrx.c:68:19: error: errno.h: 没有那个文件或目录
asustrx.c:69:20: error: unistd.h: 没有那个文件或目录
asustrx.c:71:20: error: endian.h: 没有那个文件或目录
asustrx.c:72:22: error: byteswap.h: 没有那个文件或目录
asustrx.c:76:23: error: sys/types.h: 没有那个文件或目录
asustrx.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘flip_endian’
asustrx.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32buf’
asustrx.c:121: error: expected specifier-qualifier-list before ‘uint32_t’
asustrx.c: In function ‘usage’:
asustrx.c:134: warning: incompatible implicit declaration of built-in function ‘fprintf’
asustrx.c:134: error: ‘stderr’ undeclared (first use in this function)
asustrx.c:134: error: (Each undeclared identifier is reported only once
asustrx.c:134: error: for each function it appears in.)
asustrx.c:135: warning: incompatible implicit declaration of built-in function ‘exit’
asustrx.c:135: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
asustrx.c: In function ‘main’:
asustrx.c:140: error: ‘FILE’ undeclared (first use in this function)
asustrx.c:140: error: ‘out’ undeclared (first use in this function)
asustrx.c:140: error: ‘stdout’ undeclared (first use in this function)
asustrx.c:141: error: ‘in’ undeclared (first use in this function)
asustrx.c:147: error: ‘uint32_t’ undeclared (first use in this function)
asustrx.c:147: error: expected ‘;’ before ‘cur_len’
asustrx.c:153: warning: incompatible implicit declaration of built-in function ‘memset’
asustrx.c:156: error: expected specifier-qualifier-list before ‘uint8_t’
asustrx.c:161: error: unknown field ‘prod_id’ specified in initializer
asustrx.c:161: error: extra brace group at end of initializer
asustrx.c:161: error: (near initialization for ‘asus’)
asustrx.c:161: warning: excess elements in struct initializer
asustrx.c:161: warning: (near initialization for ‘asus’)
asustrx.c:162: error: unknown field ‘version’ specified in initializer
asustrx.c:162: error: extra brace group at end of initializer
asustrx.c:162: error: (near initialization for ‘asus’)
asustrx.c:162: warning: excess elements in struct initializer
asustrx.c:162: warning: (near initialization for ‘asus’)
asustrx.c:163: error: unknown field ‘comp_hw’ specified in initializer
asustrx.c:163: error: extra brace group at end of initializer
asustrx.c:163: error: (near initialization for ‘asus’)
asustrx.c:163: warning: excess elements in struct initializer
asustrx.c:163: warning: (near initialization for ‘asus’)
asustrx.c:166: warning: incompatible implicit declaration of built-in function ‘fprintf’
asustrx.c:166: error: ‘stderr’ undeclared (first use in this function)
asustrx.c:173: error: ‘struct trx_header’ has no member named ‘offsets’
asustrx.c:173: error: ‘optarg’ undeclared (first use in this function)
asustrx.c:185: error: ‘errno’ undeclared (first use in this function)
asustrx.c:202: warning: incompatible implicit declaration of built-in function ‘strlen’
asustrx.c:202: error: ‘struct <anonymous>’ has no member named ‘prod_id’
asustrx.c:206: error: ‘struct <anonymous>’ has no member named ‘prod_id’
asustrx.c:206: error: ‘struct <anonymous>’ has no member named ‘prod_id’
asustrx.c:207: warning: incompatible implicit declaration of built-in function ‘memcpy’
asustrx.c:207: error: ‘struct <anonymous>’ has no member named ‘prod_id’
asustrx.c:210: error: ‘struct <anonymous>’ has no member named ‘version’
asustrx.c:210: error: ‘struct <anonymous>’ has no member named ‘version’
asustrx.c:215: error: ‘struct <anonymous>’ has no member named ‘version’
asustrx.c:234: error: ‘optind’ undeclared (first use in this function)
asustrx.c:251: warning: incompatible implicit declaration of built-in function ‘malloc’
asustrx.c:254: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
asustrx.c:259: warning: incompatible implicit declaration of built-in function ‘memcpy’
asustrx.c:260: error: ‘struct trx_header’ has no member named ‘magic’
asustrx.c:261: error: ‘cur_len’ undeclared (first use in this function)
asustrx.c:262: error: ‘struct trx_header’ has no member named ‘flag_version’
asustrx.c:268: error: ‘struct trx_header’ has no member named ‘offsets’
asustrx.c:270: error: ‘struct trx_header’ has no member named ‘offsets’
asustrx.c:274: error: ‘struct trx_header’ has no member named ‘offsets’
asustrx.c:279: error: ‘struct trx_header’ has no member named ‘offsets’
asustrx.c:314: error: ‘struct <anonymous>’ has no member named ‘prod_id’
asustrx.c:327: error: ‘struct <anonymous>’ has no member named ‘prod_id’
asustrx.c:331: error: ‘struct trx_header’ has no member named ‘crc32’
asustrx.c:331: error: ‘struct trx_header’ has no member named ‘flag_version’
asustrx.c:332: error: ‘struct trx_header’ has no member named ‘flag_version’
asustrx.c:333: error: ‘struct trx_header’ has no member named ‘crc32’
asustrx.c:333: error: ‘struct trx_header’ has no member named ‘crc32’
asustrx.c:335: error: ‘struct trx_header’ has no member named ‘len’
asustrx.c:337: warning: incompatible implicit declaration of built-in function ‘fwrite’
asustrx.c:344: error: ‘EXIT_SUCCESS’ undeclared (first use in this function)
asustrx.c: At top level:
asustrx.c:409: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc_32_tab’
asustrx.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32buf’
make: *** [asustrx.o] 错误 1
据说是少一个库,请高手详细指教一下如何加载这个库,因为我不懂linux。

我是运行Knoppix 5.1.1中文光盘版Linux
我也刚好不懂linux....我只會MS-DOS
加油!祝你成功!

说明在这里

A compatible platform. The following are specifically supported (or specifically unsupported):
LINUX     (recommended)
OS X         **warning: I don't test every build under OS X. It's up to you to email me if you have problems under it.**
CYGWIN  **alpha stage testing (!! built firmwares may not boot !!)**
GNU C (gcc)
GNU C++ (g++)
GNU make
Standard C runtime library development
Standard C++ runtime library development
TAR and GZIP (optional, used by ipkg_install.sh)


http://www.bitsum.com/firmware_mod_kit.htm

[ 本帖最后由 a9988cd 于 2007-7-17 20:04 编辑 ]
回复

使用道具 举报

 楼主| | 显示全部楼层
我也看到这个说明了,还是能不懂!
没有人知道怎么能吗?
回复

使用道具 举报

 楼主| | 显示全部楼层
请老大出手帮助啊!
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-15 12:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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