aMule Forum

English => Compilation problems => Topic started by: OldFrog on June 18, 2007, 07:55:50 AM

Title: Troublme compiling on Mandriva Spring for CVS as of 20070618
Post by: OldFrog on June 18, 2007, 07:55:50 AM
Quote
In file included from Preferences.cpp:1648:
ClientList.h:343:3: warning: #warning ALSO FIX THIS, NOW!!!
/usr/include/wx-2.8/wx/hashmap.h: In member function ‘wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const’:
/usr/include/wx-2.8/wx/hashmap.h:714: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/clntdata.h: In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.8/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/clntdata.h: In member function ‘wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.8/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/protocol/http.h: In member function ‘wxStringToStringHashMap_wxImplementation_HashTable::Node** wxStringToStringHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/usr/include/wx-2.8/wx/protocol/http.h:21: warning: dereferencing type-punned pointer will break strict-aliasing rules
Preferences.cpp: In static member function ‘static void CPreferences::BuildItemList(const wxString&)’:
Preferences.cpp:1035: error: expected type-specifier before ‘Cfg_Skin’
Preferences.cpp:1035: error: expected `)' before ‘Cfg_Skin’
Preferences.cpp:1035: error: cannot convert ‘int*’ to ‘Cfg_Base*’ in assignment
Preferences.cpp:1065: error: expected type-specifier before ‘Cfg_Skin’
Preferences.cpp:1065: error: expected `)' before ‘Cfg_Skin’
Preferences.cpp:1065: error: cannot convert ‘int*’ to ‘Cfg_Base*’ in assignment
ClientList.h: At global scope:
ClientList.h:344: warning: unused parameter ‘ip’
make[3]: *** [amuled-Preferences.o] Erreur 1

gcc --version
gcc (GCC) 4.1.2 20070302 (prerelease) (4.1.2-1mdv2007.1)

wx-config --version
2.8.4
Title: Re: Troublme compiling on Mandriva Spring for CVS as of 20070618
Post by: wuischke on June 18, 2007, 04:25:17 PM
Whatever is the cause, it is my fault and I'll try to fix it asap.

Edit: Will be fixed tomorrow.
Title: Re: Troublme compiling on Mandriva Spring for CVS as of 20070618
Post by: OldFrog on June 18, 2007, 07:17:02 PM
Thanks for the fast answer. I can wait  ;)