So I've tried to compile aMule-CVS from 05.03.2006 with GCC-4.1 on my gentoo-notebook.
USE-Flags:
[ebuild R ] net-p2p/amule-cvs-1 USE="X gtk2 kad nls optimize remote remote-gui unicode -amuled -debug -nosystray -stats" 0 kB [1][
So i got:
make all-am
make[5]: Entering directory `/mnt/main/portage-tmp/portage/amule-cvs-1/work/amule-cvs/src/libs/ec'
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 -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I../../../src -I../../../src/libs -O2 -march=pentium-m -pipe -msse2 -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -O2 -MT libec_a-ECPacket.o -MD -MP -MF ".deps/libec_a-ECPacket.Tpo" -c -o libec_a-ECPacket.o `test -f 'ECPacket.cpp' || echo './'`ECPacket.cpp; \
then mv -f ".deps/libec_a-ECPacket.Tpo" ".deps/libec_a-ECPacket.Po"; else rm -f ".deps/libec_a-ECPacket.Tpo"; exit 1; fi
/usr/include/wx-2.6/wx/string.h:175: error: 'wstring' in namespace 'std' does not name a type
/usr/include/wx-2.6/wx/string.h:663: error: expected ',' or '...' before '&' token
/usr/include/wx-2.6/wx/string.h:663: error: ISO C++ forbids declaration of 'wxStdString' with no type
/usr/include/wx-2.6/wx/string.h:663: error: 'wxString::wxString(int)' cannot be overloaded
/usr/include/wx-2.6/wx/string.h:633: error: with 'wxString::wxString(int)'
/usr/include/wx-2.6/wx/string.h: In constructor 'wxString::wxString(int)':
/usr/include/wx-2.6/wx/string.h:664: error: 's' was not declared in this scope
/usr/include/wx-2.6/wx/hashmap.h: In member function 'wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const':
/usr/include/wx-2.6/wx/hashmap.h:684: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.6/wx/clntdata.h: In member function 'wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
/usr/include/wx-2.6/wx/clntdata.h:26: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.6/wx/clntdata.h: In member function 'wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
/usr/include/wx-2.6/wx/clntdata.h:31: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.6/wx/gdicmn.h: In member function 'wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
/usr/include/wx-2.6/wx/gdicmn.h:476: warning: dereferencing type-punned pointer will break strict-aliasing rules
/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
make[5]: *** [libec_a-ECPacket.o] Error 1
make[5]: Leaving directory `/mnt/main/portage-tmp/portage/amule-cvs-1/work/amule-cvs/src/libs/ec'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/mnt/main/portage-tmp/portage/amule-cvs-1/work/amule-cvs/src/libs/ec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/main/portage-tmp/portage/amule-cvs-1/work/amule-cvs/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/main/portage-tmp/portage/amule-cvs-1/work/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/main/portage-tmp/portage/amule-cvs-1/work/amule-cvs'
make: *** [all] Error 2
With GCC-3.4.5 it works fine.
