Package: ext3grep
Severity: minor
Tags: patch
User: [email protected]
Usertags: clang-ftbfs
Hello,
Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).
We detected this kinf of error:
http://clang.debian.net/status.php?version=3.4.2&key=NO_MEMBER
Full build log is available here:
http://clang.debian.net/logs/2014-06-16/ext3grep_0.10.1-3.2_unstable_clang.log
Thanks,
Alexander
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- ./src/debug.h 2008-06-27 19:01:19.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/debug.h 2014-07-22 01:05:16.437618293 +0400
@@ -31,6 +31,7 @@
#include <iostream>
#include <cstdlib> // std::exit, EXIT_FAILURE
+#include <stdint.h>
#define AllocTag1(p)
#define AllocTag2(p, desc)
--- ./src/is_blockdetection.h 2008-07-11 04:23:37.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/is_blockdetection.h 2014-07-22 00:54:41.677871057 +0400
@@ -43,7 +43,7 @@
int M_number_of_entries; // Number of entries in chain to the end.
__u8 M_unlikely_character_count[256]; // Character count of filenames.
public:
- DirectoryBlockStats(void) { std::memset(this, 0, sizeof(DirectoryBlockStats)); }
+ DirectoryBlockStats(void) { memset(this, 0, sizeof(DirectoryBlockStats)); }
int number_of_entries(void) const { return M_number_of_entries; }
void increment_number_of_entries(void) { ++M_number_of_entries; }
--- ./src/init_files.cc 2008-06-29 06:39:33.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/init_files.cc 2014-07-22 01:17:36.533637073 +0400
@@ -26,6 +26,7 @@
#include <iomanip>
#endif
+#include <algorithm>
#include "init_files.h"
#include "directories.h"
#include "init_directories.h"
--- ./src/indirect_blocks.cc 2008-10-20 22:45:29.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/indirect_blocks.cc 2014-07-22 01:15:13.176171966 +0400
@@ -48,6 +48,8 @@
#include "sys.h"
#endif
+#include <stdint.h>
+#include <set>
#include "indirect_blocks.h"
#include "get_block.h"
#include "is_blockdetection.h"
@@ -353,7 +355,7 @@
if (vmax - vmin < max_array_size)
{
char t[max_array_size];
- std::memset(t, 0, sizeof(t));
+ memset(t, 0, sizeof(t));
for (int i = 0; i < values_per_block; ++i)
{
--- ./src/journal.cc 2008-10-18 05:06:35.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/journal.cc 2014-07-22 01:21:08.929876367 +0400
@@ -29,6 +29,7 @@
#include "debug.h"
#endif
+#include <algorithm>
#include "journal.h"
#include "endian_conversion.h"
#include "globals.h"
@@ -506,7 +507,7 @@
}
}
std::cout << " done\n";
- std::cout << "The oldest inode block that is still in the journal, appears to be from " << oldtime << " = " << std::ctime(&oldtime);
+ std::cout << "The oldest inode block that is still in the journal, appears to be from " << oldtime << " = " << ctime(&oldtime);
if (wrapped_journal_sequence)
{
static bool printed = false;
--- ./src/dir_inode_to_block.cc 2008-06-28 17:40:06.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/dir_inode_to_block.cc 2014-07-22 01:06:57.632950812 +0400
@@ -31,6 +31,7 @@
#include <cerrno>
#endif
+#include <limits>
#include "blocknr_vector_type.h"
#include "globals.h"
#include "superblock.h"
@@ -87,7 +88,7 @@
ASSERT(sizeof(size_t) == sizeof(blocknr_vector_type));
dir_inode_to_block_cache = new blocknr_vector_type [inode_count_ + 1];
- std::memset(dir_inode_to_block_cache, 0, sizeof(blocknr_vector_type) * (inode_count_ + 1));
+ memset(dir_inode_to_block_cache, 0, sizeof(blocknr_vector_type) * (inode_count_ + 1));
std::string device_name_basename = device_name.substr(device_name.find_last_of('/') + 1);
std::string cache_stage1 = device_name_basename + ".ext3grep.stage1";
struct stat sb;
--- ./src/ostream_operators.cc 2008-10-20 22:45:29.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/ostream_operators.cc 2014-07-22 01:31:16.747083138 +0400
@@ -70,9 +70,9 @@
os << "Number of fragments per group: " << super_block.s_frags_per_group << '\n';
os << "Number of inodes per group: " << inodes_per_group(super_block) << '\n';
time_t mtime = super_block.s_mtime;
- os << "Mount time: " << std::ctime(&mtime);
+ os << "Mount time: " << ctime(&mtime);
time_t wtime = super_block.s_wtime;
- os << "Write time: " << std::ctime(&wtime);
+ os << "Write time: " << ctime(&wtime);
os << "Mount count: " << super_block.s_mnt_count << '\n';
os << "Maximal mount count: " << super_block.s_max_mnt_count << '\n';
os << "Magic signature: " << std::hex << "0x" << super_block.s_magic << std::dec << '\n';
--- ./src/custom.cc 2008-10-23 02:20:32.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/custom.cc 2014-07-22 01:01:05.834443305 +0400
@@ -27,6 +27,7 @@
#include "ext3.h"
#include "debug.h"
#endif
+#include <sys/time.h>
#include "commandline.h"
#include "globals.h"
@@ -1377,7 +1378,7 @@
int group_end = first_block + blocks_per_group(super_block);
std::cout << "group_end = " << group_end << '\n';
int freq[1025];
- std::memset(freq, 0, sizeof(freq));
+ memset(freq, 0, sizeof(freq));
for (int b = first_block; b < group_end; ++b)
{
get_block(b, block_buf);
--- ./src/init_directories.cc 2008-06-29 23:08:31.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/init_directories.cc 2014-07-22 01:14:16.473173984 +0400
@@ -30,6 +30,7 @@
#include <sstream>
#endif
+#include <limits>
#include "locate.h"
#include "init_directories.h"
#include "blocknr_vector_type.h"
@@ -621,7 +622,7 @@
}
ASSERT(!dir_inode_to_block_cache);
dir_inode_to_block_cache = new blocknr_vector_type [inode_count_ + 1];
- std::memset(dir_inode_to_block_cache, 0, sizeof(blocknr_vector_type) * (inode_count_ + 1));
+ memset(dir_inode_to_block_cache, 0, sizeof(blocknr_vector_type) * (inode_count_ + 1));
std::stringstream buf;
int count = 0;
while (cache >> inode)
--- ./src/inode.cc 2008-06-29 06:44:39.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/inode.cc 2014-07-22 01:16:07.079219232 +0400
@@ -29,6 +29,7 @@
#include "ext3.h"
#endif
+#include <limits>
#include "load_meta_data.h"
#include "globals.h"
#include "conversion.h"
--- ./src/histogram.cc 2008-06-28 18:13:31.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/histogram.cc 2014-07-22 01:29:58.432476180 +0400
@@ -28,6 +28,7 @@
#include "debug.h"
#endif
+#include <strings.h>
#include "commandline.h"
//-----------------------------------------------------------------------------
@@ -52,7 +53,10 @@
S_bs = 1;
while ((max - 1 - min) / S_bs > histsize - 1)
++S_bs;
- std::memset(histo, 0, sizeof(histo));
+ for (size_t i = 0; i < sizeof(histo) / sizeof(histo[0]); i++)
+ {
+ histo[i] = 0;
+ }
S_maxcount = 0;
}
--- ./src/show_journal_inodes.cc 2008-10-18 05:06:35.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/show_journal_inodes.cc 2014-07-22 01:34:14.307922105 +0400
@@ -28,6 +28,7 @@
#include "ext3.h"
#endif
+#include <limits>
#include "journal.h"
#include "print_inode_to.h"
--- ./src/init_consts.cc 2008-09-10 16:44:44.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/init_consts.cc 2014-07-22 01:30:51.043540397 +0400
@@ -27,6 +27,7 @@
#include "debug.h"
#endif
+#include <unistd.h>
#include "globals.h"
#include "superblock.h"
#include "forward_declarations.h"
@@ -107,16 +108,16 @@
all_inodes = new Inode const* [groups_];
#if USE_MMAP
// We use this array to know of which groups we mmapped, therefore zero it out.
- std::memset(all_inodes, 0, sizeof(Inode*) * groups_);
+ memset(all_inodes, 0, sizeof(Inode*) * groups_);
all_mmaps = new void* [groups_];
nr_mmaps = 0;
refs_to_mmap = new int [groups_];
// We use this array to know of which mmap inodes are being used, therefore zero it out.
- std::memset(refs_to_mmap, 0, sizeof(int) * groups_);
+ memset(refs_to_mmap, 0, sizeof(int) * groups_);
#endif
block_bitmap = new bitmap_t* [groups_];
// We use this array to know of which groups we loaded the metadata. Therefore zero it out.
- std::memset(block_bitmap, 0, sizeof(bitmap_t*) * groups_);
+ memset(block_bitmap, 0, sizeof(bitmap_t*) * groups_);
inode_bitmap = new bitmap_t* [groups_];
// Initialize group_descriptor_table.
--- ./src/restore.cc 2008-10-18 19:30:54.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/restore.cc 2014-07-22 01:36:47.053200348 +0400
@@ -32,6 +32,7 @@
#include "ext3.h"
#endif
+#include <fcntl.h>
#include "inode.h"
#include "journal.h"
#include "commandline.h"
@@ -216,7 +217,7 @@
if (is_regular_file(inode))
{
int out;
- out = ::open(outputdir_outfile.c_str(), O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777);
+ out = open(outputdir_outfile.c_str(), O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777);
if (out == -1)
{
std::cout << "Failed to open \"" << outputdir_outfile << "\".\n";
--- ./src/commandline.cc 2008-12-14 18:25:53.000000000 +0300
+++ ../ext3grep-0.10.1-my/./src/commandline.cc 2014-07-22 01:13:05.022435635 +0400
@@ -28,6 +28,7 @@
#include <getopt.h>
#endif
+#include <limits>
#include "commandline.h"
#include "globals.h"
#include "restore.h"
@@ -559,8 +560,8 @@
{
std::cout << "Only show/process deleted entries if they are deleted ";
outputwritten = true;
- std::string after(std::ctime(&commandline_after));
- std::string before(std::ctime(&commandline_before));
+ std::string after(ctime(&commandline_after));
+ std::string before(ctime(&commandline_before));
if (commandline_after)
std::cout << "on or after " << after.substr(0, after.length() - 1);
if (commandline_before && commandline_after)
--- ./src/ext3grep.cc 2008-12-14 18:25:58.000000000 +0300
+++ ../ext3grep-0.10.1-my/./src/ext3grep.cc 2014-07-22 01:35:16.710810402 +0400
@@ -268,7 +268,7 @@
if (EXTERNAL_BLOCK && commandline_block == 0)
{
assert(block_size_ == sizeof(someones_block));
- std::memcpy(block, someones_block, block_size_);
+ memcpy(block, someones_block, block_size_);
DirectoryBlockStats stats;
int blocknr = commandline_block;
commandline_block = -1;
@@ -625,7 +625,7 @@
if (start)
{
#if 1
- if (std::memcmp(block_buf, pattern, len) == 0)
+ if (memcmp(block_buf, pattern, len) == 0)
found = true;
#else
if (std::isdigit(block_buf[0]) && std::isdigit(block_buf[1]) && std::isdigit(block_buf[2]) && block_buf[3] == ' ' && std::isdigit(block_buf[4]) &&
@@ -640,7 +640,7 @@
{
if (*ptr == *pattern &&
(len == 1 || (ptr[1] == pattern[1] &&
- (len == 2 || (ptr[2] == pattern[2] && std::memcmp(ptr, pattern, len) == 0)))))
+ (len == 2 || (ptr[2] == pattern[2] && memcmp(ptr, pattern, len) == 0)))))
{
found = true;
break;
@@ -701,7 +701,7 @@
}
InodePointer ino = get_inode(inode);
static char zeroes[128] = {0, };
- if (is_allocated(inode) && std::memcmp(&ino, zeroes, sizeof(zeroes)) == 0)
+ if (is_allocated(inode) && memcmp(&ino, zeroes, sizeof(zeroes)) == 0)
std::cout << ' ' << inode << std::flush;
}
std::cout << '\n';
--- ./src/last_undeleted_directory_inode_refering_to_block.cc 2008-07-11 21:18:57.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/last_undeleted_directory_inode_refering_to_block.cc 2014-07-22 01:20:36.190456320 +0400
@@ -26,6 +26,7 @@
#include <stdint.h>
#endif
+#include <limits>
#include "is_blockdetection.h"
#include "inode_refers_to.h"
#include "journal.h"
--- ./src/directories.cc 2008-10-16 02:45:31.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/directories.cc 2014-07-22 01:02:51.488407185 +0400
@@ -26,6 +26,7 @@
#include "ext3.h"
#endif
+#include <algorithm>
#include "Parent.h"
#include "commandline.h"
#include "is_blockdetection.h"
@@ -93,7 +94,7 @@
if (inode->has_valid_dtime() && inode->block()[0] != 0 && (is_regular_file(inode) || is_directory(inode)))
{
time_t dtime = inode->dtime();
- std::string dtime_str(std::ctime(&dtime));
+ std::string dtime_str(ctime(&dtime));
std::cout << "Note: Inode " << dir_entry.inode << " has non-zero dtime (" << inode->dtime() <<
" " << dtime_str.substr(0, dtime_str.length() - 1) << ") but non-zero block list (" << inode->block()[0] <<
") [ext3grep does" << (inode->is_deleted() ? "" : " not") << " consider this inode to be deleted]\n";
@@ -218,7 +219,7 @@
{
ext3_dir_entry_2 const* dir_entry;
ext3_dir_entry_2 const* map[EXT3_MAX_BLOCK_SIZE / EXT3_DIR_PAD];
- std::memset(map, 0, sizeof(map));
+ memset(map, 0, sizeof(map));
if (action == read_block_action)
++no_filtering;
--- ./src/print_inode_to.cc 2008-10-17 05:27:15.000000000 +0400
+++ ../ext3grep-0.10.1-my/./src/print_inode_to.cc 2014-07-22 01:33:12.669020698 +0400
@@ -64,26 +64,26 @@
os << "\nInode Times:\n";
os << "Accessed: ";
if (atime > 0)
- os << atime << " = " << std::ctime(&atime);
+ os << atime << " = " << ctime(&atime);
else
os << "0\n";
- time_t ctime = inode.ctime();
+ time_t ctime_var = inode.ctime();
os << "File Modified: ";
- if (ctime > 0)
- os << ctime << " = " << std::ctime(&ctime);
+ if (ctime_var > 0)
+ os << ctime_var << " = " << ctime(&ctime_var);
else
os << "0\n";
time_t mtime = inode.mtime();
os << "Inode Modified: ";
if (mtime > 0)
- os << mtime << " = " << std::ctime(&mtime);
+ os << mtime << " = " << ctime(&mtime);
else
os << "0\n";
os << "Deletion time: ";
if (inode.has_valid_dtime())
{
time_t dtime = inode.dtime();
- os << dtime << " = " << std::ctime(&dtime);
+ os << dtime << " = " << ctime(&dtime);
}
else if (inode.is_orphan())
os << "ORPHAN (next inode: " << inode.dtime() << ")\n";
_______________________________________________
forensics-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/forensics-devel