Package: rekall
Version: 2.2.3-2-2
Severity: serious
Tags: patch

When building 'rekall' on amd64/unstable,
I get the following error:

/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. 
-I. -I../.. -I/usr/include/kde -I/usr/share/qt3/include -I.   
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef 
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion 
-Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -g -Wall -O2 
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
-fno-common  -c -o hash.lo hash.cpp
hash.cpp: In member function 'VALUE* HASH::entry(const VALUE&, int)':
hash.cpp:144: error: cast from 'ELShared*' to 'int' loses precision
make[4]: *** [hash.lo] Error 1
make[4]: Leaving directory `/rekall-2.2.3-2/libs/el32'

With the attached patch 'rekall' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/rekall-2.2.3-2/debian/patches/00list 
./debian/patches/00list
--- ../tmp-orig/rekall-2.2.3-2/debian/patches/00list    2005-09-02 
17:30:49.000000000 +0000
+++ ./debian/patches/00list     2005-09-02 17:29:48.000000000 +0000
@@ -1,3 +1,4 @@
 12_kbase-driver-xbase
 20_de-po
 30_pg-user
+40_gcc4
diff -urN ../tmp-orig/rekall-2.2.3-2/debian/patches/40_gcc4.dpatch 
./debian/patches/40_gcc4.dpatch
--- ../tmp-orig/rekall-2.2.3-2/debian/patches/40_gcc4.dpatch    1970-01-01 
00:00:00.000000000 +0000
+++ ./debian/patches/40_gcc4.dpatch     2005-09-02 17:29:12.000000000 +0000
@@ -0,0 +1,145 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 40_gcc4.dpatch by Andreas Jochens <[EMAIL PROTECTED]>
+##
+## DP: compilation fixes for gcc-4.0
+
[EMAIL PROTECTED]@
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/el32/hash.cpp ./libs/el32/hash.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/el32/hash.cpp      2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/el32/hash.cpp       2005-09-02 15:33:18.000000000 +0000
+@@ -141,7 +141,7 @@
+                       /* otherwise use just the tag (pretty useless   */
+                       /* but so what, not a common case).             */
+                       if ((key.tag->flags & TF_SHARED) == 0)
+-                              hval    = (int)key.val.shared ;
++                              hval    = (long)key.val.shared ;
+                       else    hval    = key.tag->tag ;
+                       break   ;
+       }
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_configdlg.cpp 
./libs/kbase/kb_configdlg.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_configdlg.cpp     2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/kbase/kb_configdlg.cpp      2005-09-02 15:52:30.000000000 +0000
+@@ -337,7 +337,7 @@
+       old.clear () ;
+ 
+       QListViewItem   *item   = m_lvConfigs.firstChild() ;
+-      uint            ident   = 0x000ffffff & (uint)(void *)item ;
++      uint            ident   = 0x000ffffff & (long)(void *)item ;
+ 
+       while (item != 0)
+       {
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_formblock.cpp 
./libs/kbase/kb_formblock.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_formblock.cpp     2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/kbase/kb_formblock.cpp      2005-09-02 15:38:10.000000000 +0000
+@@ -1500,7 +1500,7 @@
+               return  false   ;
+       }
+ 
+-      newNode ((int)nSpec) ;
++      newNode ((long)nSpec) ;
+       return  true    ;
+ }
+ 
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_framer.cpp 
./libs/kbase/kb_framer.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_framer.cpp        2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/kbase/kb_framer.cpp 2005-09-02 15:38:54.000000000 +0000
+@@ -321,7 +321,7 @@
+               return  false   ;
+       }
+ 
+-      newNode ((int)nSpec) ;
++      newNode ((long)nSpec) ;
+       return  true    ;
+ }
+ 
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_link.cpp 
./libs/kbase/kb_link.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_link.cpp  2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/kbase/kb_link.cpp   2005-09-02 15:36:36.000000000 +0000
+@@ -771,21 +771,21 @@
+               receiver,
+               SLOT(newNode(int)),
+               0,
+-              (int)&nodeSpecTable
++              (long)&nodeSpecTable
+       )       ;
+       lp->insertItem
+       (       TR("Query link"),
+               receiver,
+               SLOT(newNode(int)),
+               0,
+-              (int)&nodeSpecQuery
++              (long)&nodeSpecQuery
+       )       ;
+       lp->insertItem
+       (       TR("SQL link"  ),
+               receiver,
+               SLOT(newNode(int)),
+               0,
+-              (int)&nodeSpecSQL
++              (long)&nodeSpecSQL
+       )       ;
+ 
+       popup->insertItem (TR("New &Link"), lp) ;
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_overridedlg.cpp 
./libs/kbase/kb_overridedlg.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_overridedlg.cpp   2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/kbase/kb_overridedlg.cpp    2005-09-02 15:59:05.000000000 +0000
+@@ -333,7 +333,7 @@
+       old.clear () ;
+ 
+       QListViewItem   *item   = m_lvOverride.firstChild() ;
+-      uint            ident   = 0x000ffffff & (uint)(void *)item ;
++      uint            ident   = 0x000ffffff & (long)(void *)item ;
+ 
+       while (item != 0)
+       {
+diff -urN ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_parse.cpp 
./libs/kbase/kb_parse.cpp
+--- ../tmp-orig/rekall-2.2.3-2/libs/kbase/kb_parse.cpp 2004-12-15 
21:21:40.000000000 +0000
++++ ./libs/kbase/kb_parse.cpp  2005-09-02 15:35:18.000000000 +0000
+@@ -971,7 +971,7 @@
+                       receiver,
+                       SLOT (newNode(int)),
+                       0,
+-                      (int)nsItem
++                      (long)nsItem
+               )       ;
+ 
+               sep     = true  ;
+@@ -1025,7 +1025,7 @@
+                       receiver,
+                       SLOT (newNode(int)),
+                       0,
+-                      (int)nsItem
++                      (long)nsItem
+               )       ;
+       }
+ 
+@@ -1043,7 +1043,7 @@
+                               receiver,
+                               SLOT (newNode(int)),
+                               0,
+-                              (int)exItem
++                              (long)exItem
+                       )       ;
+               )
+ 
+diff -urN ../tmp-orig/rekall-2.2.3-2/script/python/lib/tkc_pydebugbase.cpp 
./script/python/lib/tkc_pydebugbase.cpp
+--- ../tmp-orig/rekall-2.2.3-2/script/python/lib/tkc_pydebugbase.cpp   
2004-12-15 21:21:40.000000000 +0000
++++ ./script/python/lib/tkc_pydebugbase.cpp    2005-09-02 16:01:00.000000000 
+0000
+@@ -550,7 +550,7 @@
+       if (PyModule_Check (pyObj) || PyCode_Check (pyObj))
+               if (findTracePoint (pyObj, lineNo) == 0)
+               {
+-                      fprintf (stderr, "Set trace: %08x:%d\n", (uint)pyObj, 
lineNo) ;
++                      fprintf (stderr, "Set trace: %16lx:%d\n", (long)pyObj, 
lineNo) ;
+                       tracePoints.append (new TKCPyTracePoint (pyObj, 
userPtr, lineNo)) ;
+                       enable  () ;
+               }
+@@ -573,7 +573,7 @@
+       if (PyModule_Check (pyObj) || PyCode_Check (pyObj))
+               if ((tp = findTracePoint (pyObj, lineNo)) != 0)
+               {
+-                      fprintf (stderr, "Rem trace: %08x:%d\n", (uint)pyObj, 
lineNo) ;
++                      fprintf (stderr, "Rem trace: %16lx:%d\n", (long)pyObj, 
lineNo) ;
+                       tracePoints.remove (tp) ;
+                       delete  tp ;
+                       disable () ;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to