aMule Bug Tracker - aMule
View Issue Details
0001624aMuleMiscpublic2010-09-09 20:322010-09-12 12:03
FoxDie 
sturedman 
normalmajoralways
resolvedfixed 
2.2.6 
2.3.1 
10263
Any
0001624: net-p2p/amule-2.2.6 - wxcasframe.cpp:292:58: error: cannot call constructor 'wxFont::wxFont' directly
This happens with gcc 4.5, glibc 2.12.1-r1 (gentoo amd64):

Compiling wxcascte.cpp
wxcasframe.cpp: In member function 'wxImage* WxCasFrame::GetStatImage() const':
wxcasframe.cpp:292:58: error: cannot call constructor 'wxFont::wxFont' directly
wxcasframe.cpp:292:58: error: for a function-style cast, remove the redundant
'::wxFont'
make[5]: *** [wxcasframe.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2
Index: wxcasframe.cpp
===================================================================
--- wxcasframe.cpp (revision 10262)
+++ wxcasframe.cpp (revision 10263)
@@ -285,11 +285,11 @@
 #ifdef __WXMSW__
 
     memdc.
- SetFont ( wxFont::wxFont ( 6, wxSWISS, wxNORMAL, wxBOLD ) );
+ SetFont ( wxFont ( 6, wxSWISS, wxNORMAL, wxBOLD ) );
 #else
 
     memdc.
- SetFont ( wxFont::wxFont ( 8, wxSWISS, wxNORMAL, wxBOLD ) );
+ SetFont ( wxFont ( 8, wxSWISS, wxNORMAL, wxBOLD ) );
 #endif
 
     memdc.
No tags attached.
Issue History
2010-09-09 20:32FoxDieNew Issue
2010-09-09 20:32FoxDieOperating System => Any
2010-09-12 12:03sturedmanFixed in Revision => 10263
2010-09-12 12:03sturedmanNote Added: 0003489
2010-09-12 12:03sturedmanAssigned To => sturedman
2010-09-12 12:03sturedmanSeveritycrash => major
2010-09-12 12:03sturedmanReproducibilityhave not tried => always
2010-09-12 12:03sturedmanStatusnew => resolved
2010-09-12 12:03sturedmanResolutionopen => fixed
2010-09-12 12:03sturedmanFixed in Version => 2.3.1
2010-09-12 12:03sturedmanAdditional Information Updated

Notes
(0003489)
sturedman   
2010-09-12 12:03   
Fixed in SVN.
If you want to build 2.2.6 wxCas, just remove the silly 'wxFont::' from the two lines that give the error.