aMule Forum

English => Compilation problems => Topic started by: wuischke on November 09, 2006, 04:43:34 PM

Title: wxGTK 2.7.1 and MuleGifCtrl
Post by: wuischke on November 09, 2006, 04:43:34 PM
There's a problem when compiling aMule SVN against wxGTK 2.7.1 (unstable). (Seems like wx' fault to me as they seem to have changed a function)

Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-release-2.7 -I/usr/include/wx-2.7 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I./libs -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -O2  -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-MuleGifCtrl.o -MD -MP -MF ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" -c -o libmuleappgui_a-MuleGifCtrl.o `test -f 'MuleGifCtrl.cpp' || echo './'`MuleGifCtrl.cpp; \
        then mv -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" ".deps/libmuleappgui_a-MuleGifCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo"; exit 1; fi
/usr/include/wx-2.7/wx/hashmap.h: In member function ‘wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const’:
/usr/include/wx-2.7/wx/hashmap.h:706: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.7/wx/gdicmn.h: In member function ‘bool wxRect::Inside(int, int) const’:
/usr/include/wx-2.7/wx/gdicmn.h:485: warning: declaration of ‘y’ shadows a member of 'this'
/usr/include/wx-2.7/wx/gdicmn.h:485: warning: declaration of ‘x’ shadows a member of 'this'
/usr/include/wx-2.7/wx/gdicmn.h: In member function ‘wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.7/wx/gdicmn.h:539: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.7/wx/image.h: In member function ‘wxImageHistogramBase_wxImplementation_HashTable::Node** wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned int&) const’:
/usr/include/wx-2.7/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.7/wx/clntdata.h: In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.7/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.7/wx/clntdata.h: In member function ‘wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.7/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
MuleGifCtrl.cpp: In member function ‘bool MuleGifCtrl::LoadData(const char*, int)’:
MuleGifCtrl.cpp:68: error: no matching function for call to ‘wxGIFDecoder::wxGIFDecoder(wxMemoryInputStream*, int)’
/usr/include/wx-2.7/wx/gifdecod.h:111: note: candidates are: wxGIFDecoder::wxGIFDecoder(const wxGIFDecoder&)
/usr/include/wx-2.7/wx/gifdecod.h:88: note:                 wxGIFDecoder::wxGIFDecoder()
MuleGifCtrl.cpp:69: error: ‘class wxGIFDecoder’ has no member named ‘ReadGIF’
MuleGifCtrl.cpp:75: error: ‘class wxGIFDecoder’ has no member named ‘GoFirstFrame’
MuleGifCtrl.cpp:77: error: no matching function for call to ‘wxGIFDecoder::ConvertToImage(wxImage*)’
/usr/include/wx-2.7/wx/gifdecod.h:103: note: candidates are: virtual bool wxGIFDecoder::ConvertToImage(size_t, wxImage*) const
MuleGifCtrl.cpp: In member function ‘void MuleGifCtrl::Start()’:
MuleGifCtrl.cpp:88: error: ‘class wxGIFDecoder’ has no member named ‘GoLastFrame’
MuleGifCtrl.cpp: In member function ‘virtual wxSize MuleGifCtrl::GetBestSize()’:
MuleGifCtrl.cpp:104: error: ‘class wxGIFDecoder’ has no member named ‘GetLogicalScreenWidth’
MuleGifCtrl.cpp:104: error: ‘class wxGIFDecoder’ has no member named ‘GetLogicalScreenHeight’
MuleGifCtrl.cpp: In member function ‘void MuleGifCtrl::OnTimer(wxTimerEvent&)’:
MuleGifCtrl.cpp:112: error: ‘class wxGIFDecoder’ has no member named ‘GoNextFrame’
MuleGifCtrl.cpp:115: error: no matching function for call to ‘wxGIFDecoder::ConvertToImage(wxImage*)’
/usr/include/wx-2.7/wx/gifdecod.h:103: note: candidates are: virtual bool wxGIFDecoder::ConvertToImage(size_t, wxImage*) const
MuleGifCtrl.cpp:121: error: no matching function for call to ‘wxGIFDecoder::GetDelay()’
/usr/include/wx-2.7/wx/gifdecod.h:80: note: candidates are: virtual long int wxGIFDecoder::GetDelay(size_t) const
MuleGifCtrl.cpp: In member function ‘void MuleGifCtrl::OnPaint(wxPaintEvent&)’:
MuleGifCtrl.cpp:131: error: ‘class wxGIFDecoder’ has no member named ‘GetLogicalScreenWidth’
MuleGifCtrl.cpp:132: error: ‘class wxGIFDecoder’ has no member named ‘GetLogicalScreenHeight’
MuleGifCtrl.cpp:136: error: ‘class wxGIFDecoder’ has no member named ‘GetLeft’
MuleGifCtrl.cpp:136: error: ‘class wxGIFDecoder’ has no member named ‘GetTop’
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: skolnick on November 12, 2006, 05:31:48 PM
Same error for me, using self-compiled wxGTK 2.7.2, and aMule SVN from Nov. 5th. Any ideas on how to fix it?

Thanks!
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: Kry on November 18, 2006, 05:03:17 AM
Fixed on today's tarball.

OMFG I AM CODING!
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: OldFrog on November 18, 2006, 09:15:56 AM
Using today's tarball with 2.6.3, just now, I get this one:

Code: [Select]
extern/wxWidgets/listctrl.cpp: In member function ‘int MuleExtern::wxListLineDat
aArray::Index(const MuleExtern::_wxObjArraywxListLineDataArray&, bool) const’:
extern/wxWidgets/listctrl.cpp:363: warning: declaration of ‘Item’ shadows a memb
er of 'this'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-releas
e-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS
=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I./libs -DUSE_EMBEDDED_CRYPTO -W -Wall -Ws
hadow -Wundef   -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-MuleGifCtrl.o -MD -MP -M
F ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" -c -o libmuleappgui_a-MuleGifCtrl.o `t
est -f 'MuleGifCtrl.cpp' || echo './'`MuleGifCtrl.cpp; \
        then mv -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" ".deps/libmuleappgui_
a-MuleGifCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo"; exit 1; f
i
MuleGifCtrl.cpp: In destructor ‘virtual MuleGifCtrl::~MuleGifCtrl()’:
MuleGifCtrl.cpp:94: warning: possible problem detected in invocation of delete o
perator:
MuleGifCtrl.cpp:94: warning: invalid use of undefined type ‘struct MuleGIFDecode
r’
MuleGifCtrl.h:33: warning: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:94: note: neither the destructor nor the class-specific operator
 delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp: In member function ‘bool MuleGifCtrl::LoadData(const char*, int
)’:
MuleGifCtrl.cpp:104: warning: possible problem detected in invocation of delete
operator:
MuleGifCtrl.cpp:104: warning: invalid use of undefined type ‘struct MuleGIFDecod
er’
MuleGifCtrl.h:33: warning: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:104: note: neither the destructor nor the class-specific operato
r delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp:109: error: cannot convert ‘wxGIFDecoder*’ to ‘MuleGIFDecoder*’
in assignment
MuleGifCtrl.cpp:110: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:111: warning: possible problem detected in invocation of delete
operator:
MuleGifCtrl.cpp:111: warning: invalid use of undefined type ‘struct MuleGIFDecod
er’
MuleGifCtrl.h:33: warning: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:111: note: neither the destructor nor the class-specific operato
r delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp:116: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:118: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp: In member function ‘void MuleGifCtrl::Start()’:
MuleGifCtrl.cpp:127: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:129: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp: In member function ‘virtual wxSize MuleGifCtrl::GetBestSize()’:
MuleGifCtrl.cpp:145: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:145: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp: In member function ‘void MuleGifCtrl::OnTimer(wxTimerEvent&)’:
MuleGifCtrl.cpp:152: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:153: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:156: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:161: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:162: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp: In member function ‘void MuleGifCtrl::OnPaint(wxPaintEvent&)’:
MuleGifCtrl.cpp:172: error: invalid use of undefined type ‘struct MuleGIFDecoder

MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:173: error: invalid use of undefined type ‘struct MuleGIFDecoder                                                           ’
MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:177: error: invalid use of undefined type ‘struct MuleGIFDecoder                                                           ’
MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’
MuleGifCtrl.cpp:177: error: invalid use of undefined type ‘struct MuleGIFDecoder                                                           ’
MuleGifCtrl.h:33: error: forward declaration of ‘struct MuleGIFDecoder’

Had problems before with wxGTK2.7.1 in Mandriva 2007, and even worse with 2.7.2, so back to 2.6.3.
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: IhmSelbst on November 18, 2006, 09:21:13 AM
Confirming for SuSE 9.3 and SuSE10. - Sorry, today's svn doesn't compile any longer on SuSE 9.3 and SuSE10 using wxGTK 2.6.3 stable:

SuSE 9.3:
Code: [Select]
extern/wxWidgets/listctrl.cpp:363: Warnung: declaration of `Item' shadows a
   member of `this'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/lib/wx/include/gtk2-unicode-
release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE
_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1   -I./libs -DUSE_EMBEDDED_C
RYPTO -W -Wall -Wshadow -Wundef   -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-MuleGi
fCtrl.o -MD -MP -MF ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" -c -o libmuleappgui_
a-MuleGifCtrl.o `test -f 'MuleGifCtrl.cpp' || echo './'`MuleGifCtrl.cpp; \
then mv -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" ".deps/libmuleappgui_a-MuleGi
fCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo"; exit 1; fi
MuleGifCtrl.cpp: In destructor `virtual MuleGifCtrl::~MuleGifCtrl()':
MuleGifCtrl.cpp:94: Warnung: possible problem detected in invocation of delete
   operator:
MuleGifCtrl.cpp:94: Warnung: invalid use of undefined type `struct
   MuleGIFDecoder'
MuleGifCtrl.h:33: Warnung: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:94: note: neither the destructor nor the class-specific
   operator delete will be called, even if they are declared when the class is
   defined.
MuleGifCtrl.cpp: In member function `bool MuleGifCtrl::LoadData(const char*,
   int)':
MuleGifCtrl.cpp:104: Warnung: possible problem detected in invocation of delete
   operator:
MuleGifCtrl.cpp:104: Warnung: invalid use of undefined type `struct
   MuleGIFDecoder'
MuleGifCtrl.h:33: Warnung: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:104: note: neither the destructor nor the class-specific
   operator delete will be called, even if they are declared when the class is
   defined.
MuleGifCtrl.cpp:109: error: cannot convert `wxGIFDecoder*' to `MuleGIFDecoder*'
   in assignment
MuleGifCtrl.cpp:110: error: `ReadGIF' undeclared (first use this function)
MuleGifCtrl.cpp:110: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
MuleGifCtrl.cpp:111: Warnung: possible problem detected in invocation of delete
   operator:
MuleGifCtrl.cpp:111: Warnung: invalid use of undefined type `struct
   MuleGIFDecoder'
MuleGifCtrl.h:33: Warnung: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:111: note: neither the destructor nor the class-specific
   operator delete will be called, even if they are declared when the class is
   defined.
MuleGifCtrl.cpp:116: error: `GoFirstFrame' undeclared (first use this function)
MuleGifCtrl.cpp:118: error: `ConvertToImage' undeclared (first use this
   function)
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::Start()':
MuleGifCtrl.cpp:127: error: `IsAnimation' undeclared (first use this function)
MuleGifCtrl.cpp:129: error: `GoLastFrame' undeclared (first use this function)
MuleGifCtrl.cpp: In member function `virtual wxSize MuleGifCtrl::GetBestSize()
   ':
MuleGifCtrl.cpp:145: error: `GetLogicalScreenWidth' undeclared (first use this
   function)
MuleGifCtrl.cpp:145: error: `GetLogicalScreenHeight' undeclared (first use this
   function)
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::OnTimer(wxTimerEvent&)':
MuleGifCtrl.cpp:152: error: `IsAnimation' undeclared (first use this function)
MuleGifCtrl.cpp:153: error: `GoNextFrame' undeclared (first use this function)
MuleGifCtrl.cpp:156: error: `ConvertToImage' undeclared (first use this
   function)
MuleGifCtrl.cpp:162: error: `GetDelay' undeclared (first use this function)
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::OnPaint(wxPaintEvent&)':
MuleGifCtrl.cpp:172: error: `GetLogicalScreenWidth' undeclared (first use this
   function)
MuleGifCtrl.cpp:173: error: `GetLogicalScreenHeight' undeclared (first use this
   function)
MuleGifCtrl.cpp:177: error: `GetLeft' undeclared (first use this function)
MuleGifCtrl.cpp:177: error: `GetTop' undeclared (first use this function)
make[3]: *** [libmuleappgui_a-MuleGifCtrl.o] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Fehler 2
error: Bad exit status from /var/tmp/rpm-tmp.83384 (%build)

SuSE10.0:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -I./libs -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC   -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-MuleGifCtrl.o -MD -MP -MF ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" -c -o libmuleappgui_a-MuleGifCtrl.o `test -f 'MuleGifCtrl.cpp' || echo './'`MuleGifCtrl.cpp; \
then mv -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" ".deps/libmuleappgui_a-MuleGifCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo"; exit 1; fi
extern/wxWidgets/listctrl.cpp: In member function »int MuleExtern::wxListLineDataArray::Index(const MuleExtern::_wxObjArraywxListLineDataArray&, bool) const«:
extern/wxWidgets/listctrl.cpp:363: Warnung: Deklaration von »Item« überdeckt ein Element von 'this'
MuleGifCtrl.cpp: In destructor »virtual MuleGifCtrl::~MuleGifCtrl()«:
MuleGifCtrl.cpp:94: Warnung: mögliches Problem bei Aufruf des »delete«-Operators erkannt
MuleGifCtrl.cpp:94: Warnung: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Warnung: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:94: Anmerkung: weder der Destruktor noch der klassenspezifische Operator »delete« wird aufgerufen, auch wenn sie bei der Klassendefinition deklariert werden
MuleGifCtrl.cpp: In member function »bool MuleGifCtrl::LoadData(const char*, int)«:
MuleGifCtrl.cpp:104: Warnung: mögliches Problem bei Aufruf des »delete«-Operators erkannt
MuleGifCtrl.cpp:104: Warnung: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Warnung: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:104: Anmerkung: weder der Destruktor noch der klassenspezifische Operator »delete« wird aufgerufen, auch wenn sie bei der Klassendefinition deklariert werden
MuleGifCtrl.cpp:109: Fehler: »wxGIFDecoder*« kann nicht nach »MuleGIFDecoder*« in assignment umgewandelt werden
MuleGifCtrl.cpp:110: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:111: Warnung: mögliches Problem bei Aufruf des »delete«-Operators erkannt
MuleGifCtrl.cpp:111: Warnung: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Warnung: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:111: Anmerkung: weder der Destruktor noch der klassenspezifische Operator »delete« wird aufgerufen, auch wenn sie bei der Klassendefinition deklariert werden
MuleGifCtrl.cpp:116: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:118: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp: In member function »void MuleGifCtrl::Start()«:
MuleGifCtrl.cpp:127: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:129: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp: In member function »virtual wxSize MuleGifCtrl::GetBestSize()«:
MuleGifCtrl.cpp:145: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:145: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp: In member function »void MuleGifCtrl::OnTimer(wxTimerEvent&)«:
MuleGifCtrl.cpp:152: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:153: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:156: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:161: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:162: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp: In member function »void MuleGifCtrl::OnPaint(wxPaintEvent&)«:
MuleGifCtrl.cpp:172: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:173: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:177: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
MuleGifCtrl.cpp:177: Fehler: invalid use of undefined type »struct MuleGIFDecoder«
MuleGifCtrl.h:33: Fehler: forward declaration of »struct MuleGIFDecoder«
make[3]: *** [libmuleappgui_a-MuleGifCtrl.o] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Fehler 2
error: Bad exit status from /var/tmp/rpm-tmp.63701 (%build)

cu
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: hasardeur @ aMule on November 18, 2006, 02:58:47 PM
same problem here: (Gentoo Box today's snapshot)

Code: [Select]
extern/wxWidgets/listctrl.cpp: In member function `int MuleExtern::wxListLineDataArray::Index(const MuleExtern::_wxObjArraywxListLineDataArray&, bool) const':
extern/wxWidgets/listctrl.cpp:363: warning: declaration of 'Item' shadows a member of 'this'
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I./libs -march=pentium4 -O2 -pipe  -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -O2  -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-MuleGifCtrl.o -MD -MP -MF ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" -c -o libmuleappgui_a-MuleGifCtrl.o `test -f 'MuleGifCtrl.cpp' || echo './'`MuleGifCtrl.cpp; \
        then mv -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" ".deps/libmuleappgui_a-MuleGifCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo"; exit 1; fi
MuleGifCtrl.cpp: In destructor `virtual MuleGifCtrl::~MuleGifCtrl()':
MuleGifCtrl.cpp:94: warning: possible problem detected in invocation of delete operator:
MuleGifCtrl.cpp:94: warning: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: warning: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:94: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp: In member function `bool MuleGifCtrl::LoadData(const char*, int)':
MuleGifCtrl.cpp:104: warning: possible problem detected in invocation of delete operator:
MuleGifCtrl.cpp:104: warning: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: warning: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:104: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp:109: error: cannot convert `wxGIFDecoder*' to `MuleGIFDecoder*' in assignment
MuleGifCtrl.cpp:110: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:111: warning: possible problem detected in invocation of delete operator:
MuleGifCtrl.cpp:111: warning: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: warning: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:111: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp:116: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:118: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::Start()':
MuleGifCtrl.cpp:127: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:129: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp: In member function `virtual wxSize MuleGifCtrl::GetBestSize()':
MuleGifCtrl.cpp:145: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:145: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::OnTimer(wxTimerEvent&)':
MuleGifCtrl.cpp:152: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:153: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:156: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:161: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:162: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::OnPaint(wxPaintEvent&)':
MuleGifCtrl.cpp:172: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:173: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:177: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
MuleGifCtrl.cpp:177: error: invalid use of undefined type `struct MuleGIFDecoder'
MuleGifCtrl.h:33: error: forward declaration of `struct MuleGIFDecoder'
make[3]: *** [libmuleappgui_a-MuleGifCtrl.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-cvs-2/work/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-cvs-2/work/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-cvs-2/work/amule-cvs'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-cvs-2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  amule-cvs-2.ebuild, line 108:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage/aMule-overlay'

tried: wxGTK 2.6.2-r1 and wxGTK 2.6.3.3 -> error persits... :(

is there a workaround?
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: Kry on November 18, 2006, 04:39:28 PM
Yes, I broke < 2.7.1. Heh.
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: ivangotoy on November 18, 2006, 11:02:54 PM
ubuntu edgy eft here - wxgtk works fine : wxgtk 2.7.0
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: OldFrog on November 19, 2006, 09:27:19 AM
Same player shoots again today with 2.6.3 :
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-releas
e-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS
=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I./libs -DUSE_EMBEDDED_CRYPTO -W -Wall -Ws
hadow -Wundef   -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-MuleGifCtrl.o -MD -MP -M
F ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" -c -o libmuleappgui_a-MuleGifCtrl.o `t
est -f 'MuleGifCtrl.cpp' || echo './'`MuleGifCtrl.cpp; \
        then mv -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo" ".deps/libmuleappgui_
a-MuleGifCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleGifCtrl.Tpo"; exit 1; f
i
MuleGifCtrl.cpp: In member function ‘bool MuleGifCtrl::LoadData(const char*, int                                                           )’:
MuleGifCtrl.cpp:75: error: ‘MuleGIFDecoder::MuleGIFDecoder(wxInputStream*, bool)                                                           ’ is private
MuleGifCtrl.cpp:111: error: within this context
make[3]: *** [libmuleappgui_a-MuleGifCtrl.o] Erreur 1

Using wxGTK2.7.2, compiles and runs fine. (If anyone interested in RPMs of wxGTK-2.7.2 for Madriva 2007, just PM me).
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: ivangotoy on November 19, 2006, 10:20:30 AM
When i tried to get amule cvs from 18.11.2006 (yesterday's) work i compiled wxgtk 2.7.2. , cause i saw what Kry said: Yes, I broke < 2.7.1. Heh.
So ... removing the older wxgtk was done according to the wiki forced uninstall with the manual removing - six lines removing + ldconfig at the end - because make uninstall of wxgtk in the source dir says : nothing to be made for uninstall or similar message , then ldconfig , then wxgtk 2.7.2 with unicode , in the end ldconfig.Amule compiles and .... some errors appear but i still execute make install hoping it would work , then amule says : cannot find wxgtk....2.6.0.so (shared libraries issue i guess). Right now i am away from my machine to show the exact values but if that is a lame stupid problem like most of mine i would gladly hear a solution.
Amule while configuring detects wxgtk 2.7.2 though ... i will try harder when i am home again.
excuse me if i have interrupted/bugged somebody's work
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: ivangotoy on November 19, 2006, 08:53:02 PM
i tried "harder" and now i get amule running with wxgtk 2.7.2 , no search / message tabs crashes , the changes made to the tarball for such a short time ... that seemed unbelievable but thank you :)
 amule team kicks ass
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: skolnick on November 25, 2006, 03:19:01 AM
I compiled aMule SVN from Nov. 24/06 with wxGTK 2.7.2 and now aMule crashes when updating IPFilter.dat. This is the backtrace (I know it's not a full backtrace :()

Code: [Select]
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule CVS using wxGTK2 v2.7.2 (Snapshot: Fri Nov 24 07:01:57 CET 2006)
Running on: Linux 2.6.18-1.2798.fc6 i686

[2] CamuleApp::OnFatalException() in amule [0x806c4a1]
[3] wxFatalSignalHandler in /usr/local/lib/libwx_baseu-2.7.so.1[0xef7476]
[4] ?? in [0x8b7420]
[5] wxGIFDecoder::GetFrameSize(unsigned int) const in /usr/local/lib/libwx_gtk2u_core-2.7.so.1[0x5578c2]
[6] wxGIFDecoder::ConvertToImage(unsigned int, wxImage*) const in /usr/local/lib/libwx_gtk2u_core-2.7.so.1[0x55790e]
[7] MuleGifCtrl::OnTimer(wxTimerEvent&) in amule [0x827f0bd]
[8] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/local/lib/libwx_baseu-2.7.so.1[0xe50695]
[9] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/local/lib/libwx_baseu-2.7.so.1[0xef31af]
[10] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/local/lib/libwx_baseu-2.7.so.1[0xef32fd]
[11] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/local/lib/libwx_baseu-2.7.so.1[0xef3466]
[12] wxTimerBase::Notify() in /usr/local/lib/libwx_gtk2u_core-2.7.so.1[0x59f131]
[13] ?? in /usr/local/lib/libwx_gtk2u_core-2.7.so.1 [0x492d85]
[14] ?? in /lib/libglib-2.0.so.0 [0x6ef4916]
[15] g_main_context_dispatch in /lib/libglib-2.0.so.0[0x6ef4342]
[16] ?? in /lib/libglib-2.0.so.0 [0x6ef731f]
[17] g_main_loop_run in /lib/libglib-2.0.so.0[0x6ef76c9]
[18] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x7296be4]
[19] wxEventLoop::Run() in /usr/local/lib/libwx_gtk2u_core-2.7.so.1[0x4896ec]
[20] wxAppBase::MainLoop() in /usr/local/lib/libwx_gtk2u_core-2.7.so.1[0x51af4e]
[21] wxAppBase::OnRun() in /usr/local/lib/libwx_gtk2u_core-2.7.so.1[0x51a501]
[22] wxEntry(int&, wchar_t**) in /usr/local/lib/libwx_baseu-2.7.so.1[0xe8c49a]
[23] wxEntry(int&, char**) in /usr/local/lib/libwx_baseu-2.7.so.1[0xe8c546]
[24] main in amule [0x81275c0]
[25] __libc_start_main in /lib/libc.so.6[0xbf9f2c]
[26] wxTextCtrl::GetSelection(long*, long*) const in amule[0x8067391]


--------------------------------------------------------------------------------
Aborted
Title: Re: wxGTK 2.7.1 and MuleGifCtrl
Post by: Kry on November 25, 2006, 10:25:12 AM
Doesn't crash here :/