I tried compiling the latest sources on an PowerPC (Apple G4) running debian
$user@debianppc:~/work/wt$ cat /etc/debian_version
7.7
user@debianppc:~/work/wt$ gcc --version
gcc (Debian 4.6.3-14) 4.6.3

 compiling Wt  i got the following errors:
http://pastebin.fr/37635
 I have a quick fix in the patch attached. which gets the Wt
compiling. Unsure about the tests.
Please review the patch and let me know if there is a better solution.
Regards.
Lyase
diff --git a/src/web/base64.cpp b/src/web/base64.cpp
index 4d507f0..651bae5 100644
--- a/src/web/base64.cpp
+++ b/src/web/base64.cpp
@@ -2,7 +2,7 @@
 
 namespace base64
 {
-  const char _to_table[64] =
+  const signed char _to_table[64] =
   { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
     'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
     'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
@@ -12,13 +12,13 @@ namespace base64
     'w', 'x', 'y', 'z', '0', '1', '2', '3',
     '4', '5', '6', '7', '8', '9', '+', '/'
   };
-  const char* to_table = _to_table;
+  const signed char* to_table = _to_table;
 
 
-  const char* to_table_end = 
+  const signed char* to_table_end = 
     _to_table + sizeof(_to_table);
 
-  const char _from_table[128] =
+  const  signed char _from_table[128] =
   {
     -1, -1, -1, -1, -1, -1, -1, -1, // 0
     -1, -1, -1, -1, -1, -1, -1, -1, // 8
@@ -37,5 +37,5 @@ namespace base64
     41, 42, 43, 44, 45, 46, 47, 48, // 112
     49, 50, 51, -1, -1, -1, -1, -1  // 120
   };
-  const char* from_table = _from_table;
+  const signed char* from_table = _from_table;
 }
diff --git a/src/web/base64.h b/src/web/base64.h
index 7a91981..760fe61 100644
--- a/src/web/base64.h
+++ b/src/web/base64.h
@@ -59,9 +59,9 @@ namespace base64
   typedef unsigned uint32;
   typedef unsigned char uint8;
 
-  extern WT_API const char* to_table;
-  extern WT_API const char* to_table_end;
-  extern WT_API const char* from_table;
+  extern WT_API const signed char* to_table;
+  extern WT_API const signed char* to_table_end;
+  extern WT_API const signed char* from_table;
 
   template <class InputIterator, class OutputIterator>
   void encode(const InputIterator& begin, 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to