Package: exmap
Version: 0.8-1
Severity: normal
Tags: patch

When building 'exmap' on ppc64/unstable, I get the following error:

g++ -o t_exmap t_exmap.o Exmap.o Range.o Elf.o `pkg-config --libs gtkmm-2.4` 
-lpcre -ljutil -L../jutil 
etags *.cpp *.hpp
/bin/sh: etags: command not found
make[2]: *** [TAGS] Error 127
make[2]: Leaving directory `/exmap-0.8/src'
make[2]: Entering directory `/exmap-0.8/tools'
cc -g -Wall -O2   -c -o mapper.o mapper.c
mapper.c: In function 'main':
mapper.c:163: error: syntax error before numeric constant
make[2]: *** [mapper.o] Error 1
make[2]: Leaving directory `/exmap-0.8/tools'

With the attached patch 'exmap' can be compiled on ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/exmap-0.8/tools/mapper.c ./tools/mapper.c
--- ../tmp-orig/exmap-0.8/tools/mapper.c        2006-01-13 11:01:28.000000000 
+0000
+++ ./tools/mapper.c    2006-04-05 19:15:00.000000000 +0000
@@ -160,7 +160,7 @@
 int main(int argc, char **argv)
 {
      char *fname = NULL;
-     const int PAGE_SIZE = 4096;
+     const int page_size = 4096;
      int num_pages = 100, num_children = 5, sleep_secs = 60;
      enum WorkType wt = READ;
      enum MapType mt = SHARED;
@@ -217,7 +217,7 @@
          }
      }
 
-     map_size = PAGE_SIZE * num_pages;
+     map_size = page_size * num_pages;
 
      shared_anon_map = (fname == NULL && mt == SHARED);
      


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

Reply via email to