Package: amule
Version: 2.0.1-1
Severity: normal
Tags: patch

When building 'amule' on amd64/unstable with gcc-4.0,
I get the following error:

if x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I..      
-I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include    -Os -DUSE_EMBEDDED_CRYPTO  
-O2  -MT amule-amule.o -MD -MP -MF ".deps/amule-amule.Tpo" -c -o amule-amule.o 
`test -f 'amule.cpp' || echo './'`amule.cpp; \
then mv -f ".deps/amule-amule.Tpo" ".deps/amule-amule.Po"; else rm -f 
".deps/amule-amule.Tpo"; exit 1; fi
In file included from amule.cpp:99:
FriendList.h:67:3: warning: #warning THIS MUST BE MADE PRIVATE AFTER EC IS CODED
StatisticsDlg.h:69: error: ISO C++ forbids declaration of 'wxTreeCtrl' with no 
type
StatisticsDlg.h:69: error: expected ';' before '*' token
make[4]: *** [amule-amule.o] Error 1
make[4]: Leaving directory `/amule-2.0.1/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/amule-2.0.1/src/ServerUDPSocket.h ./src/ServerUDPSocket.h
--- ../tmp-orig/amule-2.0.1/src/ServerUDPSocket.h       2005-03-30 
05:38:19.000000000 +0200
+++ ./src/ServerUDPSocket.h     2005-06-18 15:05:02.000000000 +0200
@@ -48,6 +48,7 @@
 class CPacket;
 class CServer;
 class CSafeMemFile;
+class CServerConnect;
 
 #define WM_DNSLOOKUPDONE WM_USER+280
 
diff -urN ../tmp-orig/amule-2.0.1/src/StatisticsDlg.h ./src/StatisticsDlg.h
--- ../tmp-orig/amule-2.0.1/src/StatisticsDlg.h 2005-03-29 03:04:47.000000000 
+0200
+++ ./src/StatisticsDlg.h       2005-06-18 14:56:13.000000000 +0200
@@ -36,6 +36,7 @@
 #include "Statistics.h"
 
 class COScopeCtrl;
+class wxTreeCtrl;
 
 // CStatisticsDlg dialog
 


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

Reply via email to