Skip to content

Instantly share code, notes, and snippets.

@kmarekspartz
Created September 6, 2012 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmarekspartz/3651492 to your computer and use it in GitHub Desktop.
Save kmarekspartz/3651492 to your computer and use it in GitHub Desktop.
STDERR
<stdin>:1:10: fatal error: 'asm/types.h' file not found
#include <asm/types.h>
^
1 error generated.
asm_types.c:3:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(int argc, char **argv)
^~~~
asm_types.c:12:2: warning: __U8_TYPEDEF not defined [-W#warnings]
#warning __U8_TYPEDEF not defined
^
asm_types.c:21:2: warning: __S8_TYPEDEF not defined [-W#warnings]
#warning __S8_TYPEDEF not defined
^
asm_types.c:30:2: warning: __U16_TYPEDEF not defined [-W#warnings]
#warning __U16_TYPEDEF not defined
^
asm_types.c:39:2: warning: __S16_TYPEDEF not defined [-W#warnings]
#warning __S16_TYPEDEF not defined
^
asm_types.c:49:2: warning: __U32_TYPEDEF not defined [-W#warnings]
#warning __U32_TYPEDEF not defined
^
asm_types.c:58:2: warning: __S32_TYPEDEF not defined [-W#warnings]
#warning __S32_TYPEDEF not defined
^
asm_types.c:68:2: warning: __U64_TYPEDEF not defined [-W#warnings]
#warning __U64_TYPEDEF not defined
^
asm_types.c:77:2: warning: __S64_TYPEDEF not defined [-W#warnings]
#warning __S64_TYPEDEF not defined
^
9 warnings generated.
csum.c:633:18: error: no member named 'i_checksum_lo' in 'struct ext2_inode_large'; did you mean 'i_checksum_hi'?
old_lo = inode->i_checksum_lo;
^~~~~~~~~~~~~
i_checksum_hi
./ext2_fs.h:463:8: note: 'i_checksum_hi' declared here
__u16 i_checksum_hi; /* crc32c(uuid+inum+inode) */
^
csum.c:634:9: error: no member named 'i_checksum_lo' in 'struct ext2_inode_large'; did you mean 'i_checksum_hi'?
inode->i_checksum_lo = 0;
^~~~~~~~~~~~~
i_checksum_hi
./ext2_fs.h:463:8: note: 'i_checksum_hi' declared here
__u16 i_checksum_hi; /* crc32c(uuid+inum+inode) */
^
csum.c:647:9: error: no member named 'i_checksum_lo' in 'struct ext2_inode_large'; did you mean 'i_checksum_hi'?
inode->i_checksum_lo = old_lo;
^~~~~~~~~~~~~
i_checksum_hi
./ext2_fs.h:463:8: note: 'i_checksum_hi' declared here
__u16 i_checksum_hi; /* crc32c(uuid+inum+inode) */
^
csum.c:669:39: error: no member named 'i_checksum_lo' in 'struct ext2_inode_large'; did you mean 'i_checksum_hi'?
provided = ext2fs_le16_to_cpu(inode->i_checksum_lo);
^~~~~~~~~~~~~
i_checksum_hi
../../lib/ext2fs/bitops.h:46:40: note: expanded from macro 'ext2fs_le16_to_cpu'
#define ext2fs_le16_to_cpu(x) ((__u16)(x))
^
./ext2_fs.h:463:8: note: 'i_checksum_hi' declared here
__u16 i_checksum_hi; /* crc32c(uuid+inum+inode) */
^
csum.c:716:9: error: no member named 'i_checksum_lo' in 'struct ext2_inode_large'; did you mean 'i_checksum_hi'?
inode->i_checksum_lo = ext2fs_cpu_to_le16(crc & 0xFFFF);
^~~~~~~~~~~~~
i_checksum_hi
./ext2_fs.h:463:8: note: 'i_checksum_hi' declared here
__u16 i_checksum_hi; /* crc32c(uuid+inum+inode) */
^
5 errors generated.
make[2]: *** [csum.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-libs-recursive] Error 1
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment