Så fik tid til at prøve forklaringen.
ved hjælp af uname fik jeg oplysningen: 2.6.24-16-generic
så jeg brugte første forklaring
Her efter tilføjede jeg linie for linie som forklaret. og ved første kode blok fik jeg følgende fejl:
Kode: Vælg alt
fwcutter_list.h:141: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:141: warning: excess elements in struct initializer
fwcutter_list.h:141: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[23]’)
fwcutter_list.h:141: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:141: warning: excess elements in struct initializer
fwcutter_list.h:141: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[23]’)
fwcutter_list.h:141: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:141: warning: excess elements in struct initializer
fwcutter_list.h:141: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[23]’)
fwcutter_list.h:142: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:142: warning: excess elements in struct initializer
fwcutter_list.h:142: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[24]’)
fwcutter_list.h:142: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:142: warning: excess elements in struct initializer
fwcutter_list.h:142: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[24]’)
fwcutter_list.h:142: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:142: warning: excess elements in struct initializer
fwcutter_list.h:142: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[24]’)
fwcutter_list.h:143: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:143: warning: excess elements in struct initializer
fwcutter_list.h:143: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[25]’)
fwcutter_list.h:143: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:143: warning: excess elements in struct initializer
fwcutter_list.h:143: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[25]’)
fwcutter_list.h:143: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:143: warning: excess elements in struct initializer
fwcutter_list.h:143: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[25]’)
fwcutter_list.h:144: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:144: warning: excess elements in struct initializer
fwcutter_list.h:144: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[26]’)
fwcutter_list.h:144: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:144: warning: excess elements in struct initializer
fwcutter_list.h:144: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[26]’)
fwcutter_list.h:144: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:144: warning: excess elements in struct initializer
fwcutter_list.h:144: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[26]’)
fwcutter_list.h:145: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:145: warning: excess elements in struct initializer
fwcutter_list.h:145: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[27]’)
fwcutter_list.h:145: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:145: warning: excess elements in struct initializer
fwcutter_list.h:145: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[27]’)
fwcutter_list.h:145: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:145: warning: excess elements in struct initializer
fwcutter_list.h:145: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[27]’)
fwcutter_list.h:146: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:146: warning: excess elements in struct initializer
fwcutter_list.h:146: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[28]’)
fwcutter_list.h:146: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:146: warning: excess elements in struct initializer
fwcutter_list.h:146: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[28]’)
fwcutter_list.h:146: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:146: warning: excess elements in struct initializer
fwcutter_list.h:146: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[28]’)
fwcutter_list.h:147: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:147: warning: excess elements in struct initializer
fwcutter_list.h:147: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[29]’)
fwcutter_list.h:147: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:147: warning: excess elements in struct initializer
fwcutter_list.h:147: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[29]’)
fwcutter_list.h:147: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:147: warning: excess elements in struct initializer
fwcutter_list.h:147: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[29]’)
fwcutter_list.h:148: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:148: warning: excess elements in struct initializer
fwcutter_list.h:148: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[30]’)
fwcutter_list.h:148: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:148: warning: excess elements in struct initializer
fwcutter_list.h:148: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[30]’)
fwcutter_list.h:148: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:148: warning: excess elements in struct initializer
fwcutter_list.h:148: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[30]’)
fwcutter_list.h:149: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:149: warning: excess elements in struct initializer
fwcutter_list.h:149: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[31]’)
fwcutter_list.h:149: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:149: warning: excess elements in struct initializer
fwcutter_list.h:149: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[31]’)
fwcutter_list.h:149: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:149: warning: excess elements in struct initializer
fwcutter_list.h:149: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[31]’)
fwcutter_list.h:150: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:150: warning: excess elements in struct initializer
fwcutter_list.h:150: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[32]’)
fwcutter_list.h:150: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:150: warning: excess elements in struct initializer
fwcutter_list.h:150: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[32]’)
fwcutter_list.h:150: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:150: warning: excess elements in struct initializer
fwcutter_list.h:150: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[32]’)
fwcutter_list.h:151: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:151: warning: excess elements in struct initializer
fwcutter_list.h:151: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[33]’)
fwcutter_list.h:151: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:151: warning: excess elements in struct initializer
fwcutter_list.h:151: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[33]’)
fwcutter_list.h:151: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:151: warning: excess elements in struct initializer
fwcutter_list.h:151: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[33]’)
fwcutter_list.h:152: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:152: warning: excess elements in struct initializer
fwcutter_list.h:152: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[34]’)
fwcutter_list.h:152: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:152: warning: excess elements in struct initializer
fwcutter_list.h:152: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[34]’)
fwcutter_list.h:152: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:152: warning: excess elements in struct initializer
fwcutter_list.h:152: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[34]’)
fwcutter_list.h:153: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:153: warning: excess elements in struct initializer
fwcutter_list.h:153: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[35]’)
fwcutter_list.h:153: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:153: warning: excess elements in struct initializer
fwcutter_list.h:153: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[35]’)
fwcutter_list.h:153: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:153: warning: excess elements in struct initializer
fwcutter_list.h:153: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[35]’)
fwcutter_list.h:154: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:154: warning: excess elements in struct initializer
fwcutter_list.h:154: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[36]’)
fwcutter_list.h:154: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:154: warning: excess elements in struct initializer
fwcutter_list.h:154: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[36]’)
fwcutter_list.h:154: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:154: warning: excess elements in struct initializer
fwcutter_list.h:154: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[36]’)
fwcutter_list.h:155: error: unknown field ‘offset’ specified in initializer
fwcutter_list.h:155: warning: excess elements in struct initializer
fwcutter_list.h:155: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[37]’)
fwcutter_list.h:155: error: unknown field ‘type’ specified in initializer
fwcutter_list.h:155: warning: excess elements in struct initializer
fwcutter_list.h:155: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[37]’)
fwcutter_list.h:155: error: unknown field ‘length’ specified in initializer
fwcutter_list.h:155: warning: excess elements in struct initializer
fwcutter_list.h:155: warning: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[37]’)
fwcutter_list.h:156: error: initializer element is not constant
fwcutter_list.h:156: error: (near initialization for ‘_cb8d70972b885b1f8883b943c0261a3c[38].name’)
fwcutter_list.h:171: error: unknown field ‘flags’ specified in initializer
fwcutter_list.h:171: warning: initialization makes pointer from integer without a cast
fwcutter_list.h:181: error: unknown field ‘flags’ specified in initializer
fwcutter_list.h:181: warning: initialization makes pointer from integer without a cast
fwcutter_list.h:191: error: unknown field ‘flags’ specified in initializer
fwcutter_list.h:191: warning: initialization makes pointer from integer without a cast
fwcutter_list.h:200: error: unknown field ‘flags’ specified in initializer
fwcutter_list.h:200: warning: initialization makes pointer from integer without a cast
fwcutter_list.h:209: error: unknown field ‘flags’ specified in initializer
fwcutter_list.h:209: warning: initialization makes pointer from integer without a cast
fwcutter.c: In function ‘file_ok’:
fwcutter.c:65: error: ‘const struct file’ has no member named ‘flags’
fwcutter.c:65: error: invalid operands to binary &
fwcutter.c: At top level:
fwcutter.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘to_be16’
fwcutter.c:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘to_be32’
fwcutter.c:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘from_be32’
fwcutter.c: In function ‘print_ucode_version’:
fwcutter.c:129: error: ‘struct insn’ has no member named ‘opcode’
fwcutter.c:129: warning: comparison between pointer and integer
fwcutter.c:129: error: ‘struct insn’ has no member named ‘opcode’
fwcutter.c:129: warning: comparison between pointer and integer
fwcutter.c:132: error: ‘struct insn’ has no member named ‘op1’
fwcutter.c:132: error: invalid operands to binary &
fwcutter.c:132: error: invalid operands to binary <<
fwcutter.c:132: error: ‘struct insn’ has no member named ‘op2’
fwcutter.c:132: error: invalid operands to binary &
fwcutter.c:132: error: invalid operands to binary |
fwcutter.c:132: warning: assignment makes integer from pointer without a cast
fwcutter.c:138: error: ‘struct insn’ has no member named ‘op3’
fwcutter.c:140: warning: implicit declaration of function ‘printf’
fwcutter.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c: At top level:
fwcutter.c:156: error: expected ‘)’ before ‘in’
fwcutter.c:171: error: expected ‘)’ before ‘in’
fwcutter.c:186: error: expected ‘)’ before ‘in’
fwcutter.c:201: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
fwcutter.c:201: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
fwcutter.c: In function ‘analyse_ucode’:
fwcutter.c:203: error: ‘uint64_t’ undeclared (first use in this function)
fwcutter.c:203: error: (Each undeclared identifier is reported only once
fwcutter.c:203: error: for each function it appears in.)
fwcutter.c:203: error: ‘insns’ undeclared (first use in this function)
fwcutter.c:203: error: invalid operands to binary *
fwcutter.c:203: error: expected expression before ‘)’ token
fwcutter.c:203: error: invalid operands to binary *
fwcutter.c:203: warning: statement with no effect
fwcutter.c:205: error: ‘uint32_t’ undeclared (first use in this function)
fwcutter.c:205: warning: statement with no effect
fwcutter.c:205: error: expected ‘;’ before ‘i’
fwcutter.c:207: error: ‘i’ undeclared (first use in this function)
fwcutter.c:207: error: ‘len’ undeclared (first use in this function)
fwcutter.c:207: error: invalid operands to binary /
fwcutter.c:207: error: lvalue required as increment operand
fwcutter.c:210: warning: implicit declaration of function ‘disasm_ucode_1’
fwcutter.c:210: error: array subscript is not an integer
fwcutter.c:214: warning: implicit declaration of function ‘disasm_ucode_2’
fwcutter.c:214: error: array subscript is not an integer
fwcutter.c:218: warning: implicit declaration of function ‘disasm_ucode_3’
fwcutter.c:218: error: array subscript is not an integer
fwcutter.c: At top level:
fwcutter.c:225: error: expected ‘)’ before ‘*’ token
fwcutter.c: In function ‘swap_endianness_iv’:
fwcutter.c:238: error: ‘struct iv’ has no member named ‘reg’
fwcutter.c:238: warning: implicit declaration of function ‘bswap_16’
fwcutter.c:238: error: ‘struct iv’ has no member named ‘reg’
fwcutter.c:238: warning: statement with no effect
fwcutter.c:239: error: ‘struct iv’ has no member named ‘size’
fwcutter.c:239: error: ‘struct iv’ has no member named ‘size’
fwcutter.c:239: warning: statement with no effect
fwcutter.c:240: error: ‘struct iv’ has no member named ‘val’
fwcutter.c:240: warning: implicit declaration of function ‘bswap_32’
fwcutter.c:240: error: ‘struct iv’ has no member named ‘val’
fwcutter.c:240: warning: statement with no effect
fwcutter.c: At top level:
fwcutter.c:243: error: expected declaration specifiers or ‘...’ before ‘size_t’
fwcutter.c:244: error: expected declaration specifiers or ‘...’ before ‘size_t’
fwcutter.c:246: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
fwcutter.c: In function ‘build_ivs’:
fwcutter.c:250: error: ‘uint32_t’ undeclared (first use in this function)
fwcutter.c:250: warning: statement with no effect
fwcutter.c:250: error: expected ‘;’ before ‘i’
fwcutter.c:251: error: ‘size_t’ undeclared (first use in this function)
fwcutter.c:251: warning: statement with no effect
fwcutter.c:251: error: expected ‘;’ before ‘out_size’
fwcutter.c:254: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:255: warning: implicit declaration of function ‘exit’
fwcutter.c:255: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:258: warning: implicit declaration of function ‘malloc’
fwcutter.c:258: warning: incompatible implicit declaration of built-in function ‘malloc’
fwcutter.c:258: error: ‘in_size’ undeclared (first use in this function)
fwcutter.c:258: warning: passing argument 1 of ‘malloc’ makes integer from pointer without a cast
fwcutter.c:260: warning: implicit declaration of function ‘perror’
fwcutter.c:261: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:264: error: ‘i’ undeclared (first use in this function)
fwcutter.c:264: warning: division by zero
fwcutter.c:264: error: invalid operands to binary /
fwcutter.c:264: error: lvalue required as increment operand
fwcutter.c:264: warning: left-hand operand of comma expression has no effect
fwcutter.c:264: warning: value computed is not used
fwcutter.c:265: error: ‘flags’ undeclared (first use in this function)
fwcutter.c:265: error: invalid operands to binary &
fwcutter.c:268: error: ‘struct iv’ has no member named ‘reg’
fwcutter.c:268: warning: implicit declaration of function ‘to_be16’
fwcutter.c:268: error: invalid operands to binary &
fwcutter.c:269: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:270: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:272: error: ‘struct b43_iv’ has no member named ‘offset_size’
fwcutter.c:272: error: ‘struct iv’ has no member named ‘reg’
fwcutter.c:272: warning: statement with no effect
fwcutter.c:273: error: ‘struct iv’ has no member named ‘size’
fwcutter.c:273: warning: comparison between pointer and integer
fwcutter.c:274: error: ‘struct b43_iv’ has no member named ‘offset_size’
fwcutter.c:274: warning: statement with no effect
fwcutter.c:275: error: ‘struct b43_iv’ has no member named ‘data’
fwcutter.c:275: error: request for member ‘d32’ in something not a structure or union
fwcutter.c:275: error: ‘struct iv’ has no member named ‘val’
fwcutter.c:275: warning: statement with no effect
fwcutter.c:277: error: ‘out_size’ undeclared (first use in this function)
fwcutter.c:277: error: ‘be16_t’ undeclared (first use in this function)
fwcutter.c:277: error: ‘be32_t’ undeclared (first use in this function)
fwcutter.c:277: error: invalid operands to binary +
fwcutter.c:277: warning: statement with no effect
fwcutter.c:278: error: ‘uint8_t’ undeclared (first use in this function)
fwcutter.c:278: error: expected expression before ‘)’ token
fwcutter.c:278: error: invalid operands to binary *
fwcutter.c:279: error: ‘struct iv’ has no member named ‘size’
fwcutter.c:279: warning: comparison between pointer and integer
fwcutter.c:280: error: ‘struct iv’ has no member named ‘val’
fwcutter.c:280: warning: implicit declaration of function ‘to_be32’
fwcutter.c:280: error: invalid operands to binary &
fwcutter.c:281: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:282: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:284: error: ‘struct b43_iv’ has no member named ‘data’
fwcutter.c:284: error: request for member ‘d16’ in something not a structure or union
fwcutter.c:284: warning: implicit declaration of function ‘from_be32’
fwcutter.c:284: error: ‘struct iv’ has no member named ‘val’
fwcutter.c:284: warning: statement with no effect
fwcutter.c:286: error: invalid operands to binary +
fwcutter.c:286: warning: statement with no effect
fwcutter.c:287: error: expected expression before ‘)’ token
fwcutter.c:287: error: invalid operands to binary *
fwcutter.c:289: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:290: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:293: error: ‘struct fw_header’ has no member named ‘size’
fwcutter.c:293: warning: statement with no effect
fwcutter.c:294: error: ‘_out_size’ undeclared (first use in this function)
fwcutter.c:294: error: incompatible types in assignment
fwcutter.c:294: warning: statement with no effect
fwcutter.c: At top level:
fwcutter.c:297: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
fwcutter.c:297: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
fwcutter.c:298: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
fwcutter.c: In function ‘write_file’:
fwcutter.c:300: error: ‘FILE’ undeclared (first use in this function)
fwcutter.c:300: error: ‘f’ undeclared (first use in this function)
fwcutter.c:300: error: invalid operands to binary *
fwcutter.c:300: warning: statement with no effect
fwcutter.c:305: error: ‘flags’ undeclared (first use in this function)
fwcutter.c:305: error: invalid operands to binary &
fwcutter.c:310: warning: implicit declaration of function ‘snprintf’
fwcutter.c:310: warning: incompatible implicit declaration of built-in function ‘snprintf’
fwcutter.c:313: warning: implicit declaration of function ‘fprintf’
fwcutter.c:313: warning: incompatible implicit declaration of built-in function ‘fprintf’
fwcutter.c:313: error: ‘stderr’ undeclared (first use in this function)
fwcutter.c:314: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:317: warning: implicit declaration of function ‘mkdir’
fwcutter.c:318: error: ‘errno’ undeclared (first use in this function)
fwcutter.c:318: error: ‘EEXIST’ undeclared (first use in this function)
fwcutter.c:320: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:326: warning: incompatible implicit declaration of built-in function ‘fprintf’
fwcutter.c:327: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:329: warning: implicit declaration of function ‘fopen’
fwcutter.c:329: warning: statement with no effect
fwcutter.c:332: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:334: warning: implicit declaration of function ‘fwrite’
fwcutter.c:334: warning: incompatible implicit declaration of built-in function ‘fwrite’
fwcutter.c:336: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:338: warning: incompatible implicit declaration of built-in function ‘fwrite’
fwcutter.c:338: error: ‘buf’ undeclared (first use in this function)
fwcutter.c:338: error: ‘len’ undeclared (first use in this function)
fwcutter.c:338: warning: passing argument 3 of ‘fwrite’ makes integer from pointer without a cast
fwcutter.c:338: warning: comparison between pointer and integer
fwcutter.c:340: warning: incompatible implicit declaration of built-in function ‘exit’
fwcutter.c:342: warning: implicit declaration of function ‘fclose’
fwcutter.c: At top level:
fwcutter.c:345: error: expected ‘)’ before ‘*’ token
fwcutter.c: In function ‘print_banner’:
fwcutter.c:415: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c: In function ‘print_file’:
fwcutter.c:423: error: ‘const struct file’ has no member named ‘flags’
fwcutter.c:423: error: invalid operands to binary &
fwcutter.c:424: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:426: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:428: warning: implicit declaration of function ‘strlen’
fwcutter.c:428: warning: incompatible implicit declaration of built-in function ‘strlen’
fwcutter.c:429: warning: implicit declaration of function ‘strncpy’
fwcutter.c:429: warning: incompatible implicit declaration of built-in function ‘strncpy’
fwcutter.c:431: warning: incompatible implicit declaration of built-in function ‘snprintf’
fwcutter.c:433: warning: implicit declaration of function ‘strcpy’
fwcutter.c:433: warning: incompatible implicit declaration of built-in function ‘strcpy’
fwcutter.c:435: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:436: warning: incompatible implicit declaration of built-in function ‘strlen’
fwcutter.c:437: warning: incompatible implicit declaration of built-in function ‘strlen’
fwcutter.c:440: warning: incompatible implicit declaration of built-in function ‘strlen’
fwcutter.c: In function ‘print_supported_files’:
fwcutter.c:452: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:466: error: ‘struct file’ has no member named ‘flags’
fwcutter.c:466: error: invalid operands to binary &
fwcutter.c:469: error: ‘struct file’ has no member named ‘flags’
fwcutter.c:469: error: invalid operands to binary &
fwcutter.c: At top level:
fwcutter.c:474: error: expected ‘)’ before ‘*’ token
fwcutter.c: In function ‘print_usage’:
fwcutter.c:515: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c: In function ‘do_cmp_arg’:
fwcutter.c:543: error: ‘size_t’ undeclared (first use in this function)
fwcutter.c:543: warning: statement with no effect
fwcutter.c:543: error: expected ‘;’ before ‘arg_len’
fwcutter.c:547: error: ‘arg_len’ undeclared (first use in this function)
fwcutter.c:547: warning: incompatible implicit declaration of built-in function ‘strlen’
fwcutter.c:547: warning: statement with no effect
fwcutter.c:548: error: ‘template_len’ undeclared (first use in this function)
fwcutter.c:548: warning: statement with no effect
fwcutter.c:555: warning: implicit declaration of function ‘memcmp’
fwcutter.c:556: error: invalid operands to binary +
fwcutter.c:556: warning: assignment from incompatible pointer type
fwcutter.c:564: warning: implicit declaration of function ‘strcmp’
fwcutter.c:569: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c: In function ‘parse_args’:
fwcutter.c:606: warning: passing argument 5 of ‘cmp_arg’ from incompatible pointer type
fwcutter.c:613: warning: passing argument 5 of ‘cmp_arg’ from incompatible pointer type
fwcutter.c:620: warning: passing argument 5 of ‘cmp_arg’ from incompatible pointer type
fwcutter.c:626: warning: passing argument 5 of ‘cmp_arg’ from incompatible pointer type
fwcutter.c:633: warning: passing argument 4 of ‘cmp_arg’ from incompatible pointer type
fwcutter.c:633: warning: passing argument 5 of ‘cmp_arg’ from incompatible pointer type
fwcutter.c: In function ‘main’:
fwcutter.c:663: error: ‘FILE’ undeclared (first use in this function)
fwcutter.c:663: error: ‘fd’ undeclared (first use in this function)
fwcutter.c:663: error: invalid operands to binary *
fwcutter.c:663: warning: statement with no effect
fwcutter.c:681: warning: statement with no effect
fwcutter.c:683: warning: incompatible implicit declaration of built-in function ‘fprintf’
fwcutter.c:683: error: ‘stderr’ undeclared (first use in this function)
fwcutter.c:688: warning: implicit declaration of function ‘find_file’
fwcutter.c:688: warning: assignment makes pointer from integer without a cast
fwcutter.c:692: error: ‘const struct file’ has no member named ‘flags’
fwcutter.c:692: error: invalid operands to binary &
fwcutter.c:699: warning: incompatible implicit declaration of built-in function ‘printf’
fwcutter.c:702: warning: implicit declaration of function ‘extract_or_identify’
fwcutter.c:702: error: ‘const struct file’ has no member named ‘flags’
make: *** [fwcutter.o] Error 1
og da jeg kører anden del får jeg følgende til sidst: (jeg indtastede mit password da der blev bedt om det)
Kode: Vælg alt
mikael@mikael-laptop:~/broadcom-wl-4.80.53.0/kmod$ sudo ../../b43-fwcutter-011/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o
sudo: unable to resolve host mikael-laptop
[sudo] password for mikael:
sudo: ../../b43-fwcutter-011/b43-fwcutter: command not found
mikael@mikael-laptop:~/broadcom-wl-4.80.53.0/kmod$
Så, hvad nu?
ha en god dag
Mikael Boldt
ps. Det her er faktisk sjovt. minder mig om gamle dage algolw, fortran, og dos ak, ja det er 25 år siden jeg stoppede som underviser i datakundskab i folkeskolen/ungdomsskolen.