|
我按照 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 |
|