Package: sleuthkit
Severity: normal
Tags: patch
When building 'sleuthkit' on amd64 with gcc-4.0,
I get the following error:
gcc -DLINUX2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DVER=\"2.00\"
-I../misc -I../imgtools -c -o ntfs.o ntfs.c
ntfs.c: In function 'ntfs_proc_attrseq':
ntfs.c:770: error: invalid lvalue in assignment
make: *** [ntfs.o] Error 1
make: Leaving directory `/sleuthkit-2.00/src/fstools'
With the attached patch 'sleuthkit' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/sleuthkit-2.00/src/fstools/ntfs.c ./src/fstools/ntfs.c
--- ../tmp-orig/sleuthkit-2.00/src/fstools/ntfs.c 2005-03-16
01:42:30.000000000 +0100
+++ ./src/fstools/ntfs.c 2005-03-25 16:22:24.896619434 +0100
@@ -767,7 +767,7 @@
((uintptr_t) attr <= ((uintptr_t) attrseq + len)) &&
(getu32(fs, attr->len) > 0 &&
(getu32(fs, attr->type) != 0xffffffff));
- (uintptr_t) attr = (uintptr_t) attr + getu32(fs, attr->len)) {
+ attr = (uintptr_t) attr + getu32(fs, attr->len)) {
/* Get the type of this attribute */
uint32_t type = getu32(fs, attr->type);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]