Package: amaya
Version: 9.51-1
Severity: serious
Tags: patch

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

/usr/include/wx-2.6/wx/image.h: In member function 
'wxImageHistogramBase_wxImplementation_HashTable::Node** 
wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned 
int&) const':
/usr/include/wx-2.6/wx/image.h:123: warning: dereferencing type-punned pointer 
will break strict-aliasing rules
../../thotlib/dialogue/AmayaXMLPanel.cpp: In member function 'virtual void 
AmayaXMLPanel::SendDataToPanel(AmayaParams&)':
../../thotlib/dialogue/AmayaXMLPanel.cpp:105: error: cast from 'void*' to 'int' 
loses precision
make[2]: *** [dialogue/AmayaXMLPanel.o] Error 1
make[2]: Leaving directory `/amaya-9.51/Amaya/WX/thotlib'

With the attached patch 'amaya' can be compiled on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/amaya-9.51/Amaya/amaya/MENUconf.c ./Amaya/amaya/MENUconf.c
--- ../tmp-orig/amaya-9.51/Amaya/amaya/MENUconf.c       2006-04-11 
09:10:17.000000000 +0000
+++ ./Amaya/amaya/MENUconf.c    2006-06-14 12:24:32.000000000 +0000
@@ -4645,14 +4645,14 @@
 static void PreferenceCallbackDialog (int ref, int typedata, char *data)
 {
 #ifdef _WX
-  int val;
+  long val;
 
   if (ref == -1)
     TtaDestroyDialogue (PreferenceBase);
   else
     {
       /* has the user changed the options? */
-      val = (int) data;
+      val = (long) data;
       switch (ref - PreferenceBase)
         {
         case 0:
diff -urN ../tmp-orig/amaya-9.51/Amaya/thotlib/dialogue/AmayaXMLPanel.cpp 
./Amaya/thotlib/dialogue/AmayaXMLPanel.cpp
--- ../tmp-orig/amaya-9.51/Amaya/thotlib/dialogue/AmayaXMLPanel.cpp     
2006-01-10 14:18:28.000000000 +0000
+++ ./Amaya/thotlib/dialogue/AmayaXMLPanel.cpp  2006-06-14 12:19:21.000000000 
+0000
@@ -102,7 +102,7 @@
   int nb_el                 = (int)p.param1;
   const char * listBuffer   = (char *)p.param2;
   const char * currentEl    = (char *)p.param3;
-  int ref                   = (int)p.param4;;
+  int ref                   = (long)p.param4;;
   
   m_XMLRef = ref;
   


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

Reply via email to