# g++ --version g++ (Debian 4.4.0-1~exp2) 4.4.0 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # make -ki g++ -I. -I. -I.. -g -W -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Winline -DDEBUG -DUSE_MMAP=1 -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc extundelete.cc:1049:4: warning: #warning --dump-names is not implemented In file included from extundelete.cc:61: undel-priv.h:22: error: 'uint32_t' does not name a type undel-priv.h:24: error: 'uint32_t' does not name a type undel-priv.h:25: error: 'uint16_t' does not name a type undel-priv.h:26: error: 'uint32_t' does not name a type undel-priv.h:27: error: 'uint32_t' does not name a type undel-priv.h:39: error: 'uint32_t' was not declared in this scope undel-priv.h:39: error: template argument 1 is invalid undel-priv.h:39: error: template argument 2 is invalid undel-priv.h:39: error: invalid type in declaration before ';' token undel-priv.h:40: error: 'uint32_t' was not declared in this scope undel-priv.h:40: error: template argument 1 is invalid undel-priv.h:40: error: template argument 2 is invalid undel-priv.h:40: error: invalid type in declaration before ';' token undel-priv.h:41: error: 'uint32_t' was not declared in this scope undel-priv.h:41: error: template argument 1 is invalid undel-priv.h:41: error: template argument 2 is invalid undel-priv.h:41: error: invalid type in declaration before ';' token undel-priv.h:42: error: 'uint32_t' was not declared in this scope undel-priv.h:42: error: template argument 1 is invalid undel-priv.h:42: error: template argument 2 is invalid undel-priv.h:42: error: invalid type in declaration before ';' token extundelete.cc: In function 'int block_to_inode(struct_ext2_filsys*, int)': extundelete.cc:130: error: 'block_size_' was not declared in this scope extundelete.cc:130: error: 'inodes_per_group_' was not declared in this scope extundelete.cc:130: error: 'inode_size_' was not declared in this scope extundelete.cc: In function 'long unsigned int numdatablocks(ext2_inode*)': extundelete.cc:138: error: 'block_size_' was not declared in this scope extundelete.cc: In function 'long unsigned int numblocks(ext2_inode*)': extundelete.cc:145: error: 'block_size_' was not declared in this scope extundelete.cc: At global scope: extundelete.cc:153: error: 'uint64_t' does not name a type extundelete.cc:170: error: 'uint32_t' does not name a type extundelete.cc:181: error: 'uint16_t' does not name a type extundelete.cc:191: error: 'uint16_t' does not name a type extundelete.cc:201: error: 'uint32_t' does not name a type extundelete.cc: In function 'void journal_revoke_header_to_cpu(unsigned char*)': extundelete.cc:222: error: 'uint16_t' was not declared in this scope extundelete.cc:222: error: expected primary-expression before ')' token extundelete.cc:222: error: 'be16_to_cpu' was not declared in this scope extundelete.cc:224: error: 'uint32_t' was not declared in this scope extundelete.cc:224: error: expected primary-expression before ')' token extundelete.cc:224: error: 'be32_to_cpu' was not declared in this scope extundelete.cc:226: error: 'uint64_t' was not declared in this scope extundelete.cc:226: error: expected primary-expression before ')' token extundelete.cc:226: error: 'be64_to_cpu' was not declared in this scope extundelete.cc:220: warning: unused variable 'tmp' extundelete.cc: In function 'void journal_block_tag_to_cpu(unsigned char*)': extundelete.cc:235: error: 'uint32_t' was not declared in this scope extundelete.cc:236: error: expected primary-expression before ')' token extundelete.cc:236: error: 'be32_to_cpu' was not declared in this scope extundelete.cc:237: error: expected primary-expression before ')' token extundelete.cc: In function 'void journal_header_to_cpu(unsigned char*)': extundelete.cc:244: error: 'uint32_t' was not declared in this scope extundelete.cc:245: error: expected primary-expression before ')' token extundelete.cc:245: error: 'be32_to_cpu' was not declared in this scope extundelete.cc:246: error: expected primary-expression before ')' token extundelete.cc:247: error: expected primary-expression before ')' token extundelete.cc: In function 'void journal_superblock_to_cpu(unsigned char*)': extundelete.cc:254: error: 'uint32_t' was not declared in this scope extundelete.cc:255: error: expected primary-expression before ')' token extundelete.cc:255: error: 'be32_to_cpu' was not declared in this scope extundelete.cc:256: error: expected primary-expression before ')' token extundelete.cc:257: error: expected primary-expression before ')' token extundelete.cc:258: error: expected primary-expression before ')' token extundelete.cc:259: error: expected primary-expression before ')' token extundelete.cc:260: error: expected primary-expression before ')' token extundelete.cc:261: error: expected primary-expression before ')' token extundelete.cc:262: error: expected primary-expression before ')' token extundelete.cc:263: error: expected primary-expression before ')' token extundelete.cc:264: error: expected primary-expression before ')' token extundelete.cc:265: error: expected primary-expression before ')' token extundelete.cc:266: error: expected primary-expression before ')' token extundelete.cc:268: error: expected primary-expression before ')' token extundelete.cc:269: error: expected primary-expression before ')' token extundelete.cc:270: error: expected primary-expression before ')' token extundelete.cc:271: error: expected primary-expression before ')' token extundelete.cc:272: error: expected primary-expression before ')' token extundelete.cc: In function 'void load_super_block(struct_ext2_filsys*)': extundelete.cc:873: error: 'block_size_' was not declared in this scope extundelete.cc:875: error: 'inodes_per_group_' was not declared in this scope extundelete.cc:876: error: 'inode_size_' was not declared in this scope extundelete.cc:877: error: 'inode_count_' was not declared in this scope extundelete.cc:878: error: 'block_count_' was not declared in this scope extundelete.cc:884: error: 'uint32_t' was not declared in this scope extundelete.cc:884: error: expected ')' before 'groups_' extundelete.cc:884: error: expected ')' before ';' token extundelete.cc: In function 'int read_block(struct_ext2_filsys*, blk_t*, e2_blkcnt_t, blk_t, int, void*)': extundelete.cc:987: error: 'block_size_' was not declared in this scope extundelete.cc: In function 'void classify_block(struct_ext2_filsys*)': extundelete.cc:996: error: 'block_size_' was not declared in this scope extundelete.cc: In function 'bool is_journal(struct_ext2_filsys*, blk_t)': extundelete.cc:1036: error: 'uint32_t' was not declared in this scope extundelete.cc:1036: error: expected ';' before 'n' extundelete.cc:1036: error: 'n' was not declared in this scope extundelete.cc: In function 'void run_program(struct_ext2_filsys*)': extundelete.cc:1105: error: 'block_size_' was not declared in this scope extundelete.cc:1135: error: 'uint32_t' was not declared in this scope extundelete.cc:1135: error: expected ')' before 'commandline_inode' extundelete.cc:1138: error: 'inode_count_' was not declared in this scope extundelete.cc:1165: error: 'uint32_t' was not declared in this scope extundelete.cc:1165: error: expected ')' before 'commandline_show_journal_inodes' extundelete.cc:1169: error: 'inode_count_' was not declared in this scope extundelete.cc:1232: error: 'inode_size_' was not declared in this scope extundelete.cc: In function 'void init_journal(struct_ext2_filsys*, journal_superblock_t*)': extundelete.cc:1551: error: 'block_size_' was not declared in this scope extundelete.cc:1557: error: 'uint32_t' was not declared in this scope extundelete.cc:1557: error: expected ';' before 'number_of_descriptors' extundelete.cc:1558: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1558: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1558: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1558: error: template argument 1 is invalid extundelete.cc:1558: error: template argument 2 is invalid extundelete.cc:1558: error: template argument 3 is invalid extundelete.cc:1558: error: template argument 1 is invalid extundelete.cc:1558: error: template argument 2 is invalid extundelete.cc:1558: error: invalid type in declaration before ';' token extundelete.cc:1567: error: expected ';' before 'seq' extundelete.cc:1568: error: 'number_of_descriptors' was not declared in this scope extundelete.cc:1578: error: expected ';' before 'flags' extundelete.cc:1583: error: expected ')' before 'numblocks' extundelete.cc:1587: error: expected ';' before 'tmp' extundelete.cc:1588: error: 'be32_to_cpu' was not declared in this scope extundelete.cc:1593: error: request for member 'push_back' in 'j_tags', which is of non-class type 'int' extundelete.cc:1593: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1593: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1593: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1593: error: template argument 1 is invalid extundelete.cc:1593: error: template argument 2 is invalid extundelete.cc:1593: error: template argument 3 is invalid extundelete.cc:1593: error: 'seq' was not declared in this scope extundelete.cc:1599: error: 'flags' was not declared in this scope extundelete.cc:1605: error: 'flags' was not declared in this scope extundelete.cc:1628: error: 'block' was not declared in this scope extundelete.cc:1628: error: expected primary-expression before ')' token extundelete.cc:1629: error: 'be32_to_cpu' was not declared in this scope extundelete.cc:1630: error: request for member 'push_back' in 'rvk_block', which is of non-class type 'int' extundelete.cc:1664: error: request for member 'sort' in 'j_tags', which is of non-class type 'int' extundelete.cc:1665: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1665: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1665: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1665: error: template argument 1 is invalid extundelete.cc:1665: error: template argument 2 is invalid extundelete.cc:1665: error: template argument 3 is invalid extundelete.cc:1665: error: template argument 1 is invalid extundelete.cc:1665: error: template argument 2 is invalid extundelete.cc:1665: error: expected initializer before 'it' extundelete.cc:1665: error: 'it' was not declared in this scope extundelete.cc:1665: error: request for member 'end' in 'j_tags', which is of non-class type 'int' extundelete.cc:1666: error: request for member 'push_back' in 'tag_seq', which is of non-class type 'int' extundelete.cc:1667: error: request for member 'push_back' in 'tag_jblk', which is of non-class type 'int' extundelete.cc:1668: error: request for member 'push_back' in 'tag_fsblk', which is of non-class type 'int' extundelete.cc:1675: error: 'number_of_descriptors' was not declared in this scope extundelete.cc: In function 'int journ_read_dir_block(struct_ext2_filsys*, blk_t, void*)': extundelete.cc:1698: error: 'uint32_t' was not declared in this scope extundelete.cc:1698: error: template argument 1 is invalid extundelete.cc:1698: error: template argument 2 is invalid extundelete.cc:1698: error: invalid type in declaration before ';' token extundelete.cc:1699: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1699: error: template argument 1 is invalid extundelete.cc:1699: error: template argument 2 is invalid extundelete.cc:1699: error: expected initializer before 'it' extundelete.cc:1700: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1700: error: template argument 1 is invalid extundelete.cc:1700: error: template argument 2 is invalid extundelete.cc:1700: error: expected initializer before 'itj' extundelete.cc:1702: error: request for member 'size' in 'tag_fsblk', which is of non-class type 'int' extundelete.cc:1703: error: 'it' was not declared in this scope extundelete.cc:1703: error: 'itj' was not declared in this scope extundelete.cc:1705: error: request for member 'push_back' in 'oldblks', which is of non-class type 'int' extundelete.cc:1710: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1710: error: template argument 1 is invalid extundelete.cc:1710: error: template argument 2 is invalid extundelete.cc:1710: error: expected initializer before 'rit' extundelete.cc:1711: error: 'rit' was not declared in this scope extundelete.cc:1711: error: request for member 'rbegin' in 'oldblks', which is of non-class type 'int' extundelete.cc: In function 'int find_string(const std::string&, const unsigned char*)': extundelete.cc:1726: error: 'uint32_t' was not declared in this scope extundelete.cc:1726: error: expected ';' before 'off' extundelete.cc:1730: error: 'off' was not declared in this scope extundelete.cc:1739: error: expected ';' before 'num' extundelete.cc:1740: error: 'num' was not declared in this scope extundelete.cc:1745: error: 'off' was not declared in this scope extundelete.cc:1745: error: 'block_size_' was not declared in this scope extundelete.cc: In function 'void restore_file(struct_ext2_filsys*, const std::string&)': extundelete.cc:1815: error: 'block_size_' was not declared in this scope extundelete.cc:1819: error: 'uint32_t' was not declared in this scope extundelete.cc:1819: error: expected ';' before 'n' extundelete.cc:1819: error: 'n' was not declared in this scope extundelete.cc:1828: error: expected ';' before 'n' extundelete.cc:1828: error: 'n' was not declared in this scope extundelete.cc:1839: error: expected ';' before 'n' extundelete.cc:1839: error: 'n' was not declared in this scope extundelete.cc:1849: error: expected ';' before 'n' extundelete.cc:1849: error: 'n' was not declared in this scope extundelete.cc:1859: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1859: error: template argument 1 is invalid extundelete.cc:1859: error: template argument 2 is invalid extundelete.cc:1859: error: expected initializer before 'rit' extundelete.cc:1860: error: 'rit' was not declared in this scope extundelete.cc:1860: error: request for member 'rbegin' in 'rvk_block', which is of non-class type 'int' extundelete.cc:1860: error: request for member 'rend' in 'rvk_block', which is of non-class type 'int' extundelete.cc:1895: error: expected ';' before 'n' extundelete.cc:1895: error: 'n' was not declared in this scope extundelete.cc:1905: error: expected ';' before 'n' extundelete.cc:1905: error: 'n' was not declared in this scope extundelete.cc:1917: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1917: error: template argument 1 is invalid extundelete.cc:1917: error: template argument 2 is invalid extundelete.cc:1917: error: expected initializer before 'rit' extundelete.cc:1918: error: 'rit' was not declared in this scope extundelete.cc:1918: error: request for member 'rbegin' in 'rvk_block', which is of non-class type 'int' extundelete.cc:1918: error: request for member 'rend' in 'rvk_block', which is of non-class type 'int' extundelete.cc: In function 'void recover_inode(struct_ext2_filsys*, int, ext2_inode*&)': extundelete.cc:1974: error: 'uint32_t' was not declared in this scope extundelete.cc:1974: error: template argument 1 is invalid extundelete.cc:1974: error: template argument 2 is invalid extundelete.cc:1974: error: expected initializer before 'it' extundelete.cc:1975: error: 'inodes_per_group_' was not declared in this scope extundelete.cc:1977: error: 'inode_size_' was not declared in this scope extundelete.cc:1977: error: 'block_size_' was not declared in this scope extundelete.cc:1982: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1982: error: template argument 1 is invalid extundelete.cc:1982: error: template argument 2 is invalid extundelete.cc:1982: error: invalid type in declaration before ';' token extundelete.cc:1983: error: 'it' was not declared in this scope extundelete.cc:1983: error: request for member 'begin' in 'tag_fsblk', which is of non-class type 'int' extundelete.cc:1984: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1984: error: template argument 1 is invalid extundelete.cc:1984: error: template argument 2 is invalid extundelete.cc:1984: error: expected initializer before 'itj' extundelete.cc:1985: error: request for member 'size' in 'tag_fsblk', which is of non-class type 'int' extundelete.cc:1986: error: 'itj' was not declared in this scope extundelete.cc:1987: error: request for member 'push_back' in 'oldblks', which is of non-class type 'int' extundelete.cc:1996: error: 'uint32_t' cannot appear in a constant-expression extundelete.cc:1996: error: template argument 1 is invalid extundelete.cc:1996: error: template argument 2 is invalid extundelete.cc:1996: error: expected initializer before 'rit' extundelete.cc:1998: error: 'rit' was not declared in this scope extundelete.cc:1998: error: request for member 'rbegin' in 'oldblks', which is of non-class type 'int' extundelete.cc:1998: error: request for member 'rend' in 'oldblks', which is of non-class type 'int' extundelete.cc: In function 'void restore_inode(struct_ext2_filsys*, int, const std::string&)': extundelete.cc:2044: error: 'block_size_' was not declared in this scope extundelete.cc: In function 'void parse_inode_block(ext2_inode*, const unsigned char*, int)': extundelete.cc:2088: error: 'block_size_' was not declared in this scope extundelete.cc:2088: error: 'inode_size_' was not declared in this scope extundelete.cc:2090: error: 'uint16_t' was not declared in this scope extundelete.cc:2091: error: expected primary-expression before ')' token extundelete.cc:2091: error: 'le16_to_cpu' was not declared in this scope extundelete.cc:2092: error: expected primary-expression before ')' token extundelete.cc:2093: error: 'uint32_t' was not declared in this scope extundelete.cc:2093: error: expected primary-expression before ')' token extundelete.cc:2093: error: 'le32_to_cpu' was not declared in this scope extundelete.cc:2094: error: expected primary-expression before ')' token extundelete.cc:2095: error: expected primary-expression before ')' token extundelete.cc:2096: error: expected primary-expression before ')' token extundelete.cc:2097: error: expected primary-expression before ')' token extundelete.cc:2098: error: expected primary-expression before ')' token extundelete.cc:2099: error: expected primary-expression before ')' token extundelete.cc:2100: error: expected primary-expression before ')' token extundelete.cc:2101: error: expected primary-expression before ')' token extundelete.cc:2106: error: expected primary-expression before ')' token make: [all] Error 1 (ignored) g++ -I. -I. -I.. -g -W -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Winline -DDEBUG -DUSE_MMAP=1 -c -o block.o `test -f 'block.c' || echo './'`block.c g++ -I. -I. -I.. -g -W -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Winline -DDEBUG -DUSE_MMAP=1 -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc insertionops.cc: In function 'std::ostream& operator<<(std::ostream&, const journal_header_t&)': insertionops.cc:158: error: 'uint32_t' was not declared in this scope insertionops.cc:158: error: expected ';' before 'blktype' insertionops.cc:159: error: 'blktype' was not declared in this scope insertionops.cc:181: error: expected ';' before 'seq' insertionops.cc:182: error: 'seq' was not declared in this scope insertionops.cc: At global scope: insertionops.cc:155: warning: unused parameter 'journal_header' insertionops.cc: In function 'std::ostream& operator<<(std::ostream&, journal_revoke_header_t)': insertionops.cc:195: error: 'assert' was not declared in this scope insertionops.cc:199: error: 'uint32_t' was not declared in this scope insertionops.cc:199: error: expected ';' before 'b' insertionops.cc:199: error: 'b' was not declared in this scope insertionops.cc: In function 'std::ostream& operator<<(std::ostream&, const journal_superblock_t&)': insertionops.cc:235: error: 'assert' was not declared in this scope make: [all] Error 1 (ignored) g++ -lext2fs -o extundelete extundelete.o block.o insertionops.o g++: extundelete.o: No such file or directory g++: insertionops.o: No such file or directory make: [all] Error 1 (ignored)