On all my Gentoo boxen, aMule fails to compile in the following way:
if i386-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=i686 -O2 -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 -I./libs -mcpu=i686 -O2 -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2 -MT libmuleappgui_a-MuleListCtrl.o -MD -MP -MF ".deps/libmuleappgui_a-MuleListCtrl.Tpo" -c -o libmuleappgui_a-MuleListCtrl.o `test -f 'MuleListCtrl.cpp' || echo './'`MuleListCtrl.cpp; \
then mv -f ".deps/libmuleappgui_a-MuleListCtrl.Tpo" ".deps/libmuleappgui_a-MuleListCtrl.Po"; else rm -f ".deps/libmuleappgui_a-MuleListCtrl.Tpo"; exit 1; fi
In file included from /usr/include/wx-2.6/wx/defs.h:21,
from MuleListCtrl.cpp:26:
/usr/include/wx-2.6/wx/platform.h:22:5: warning: "__MWERKS__" is not defined
In file included from MuleListCtrl.cpp:26:
/usr/include/wx-2.6/wx/defs.h:628:5: warning: "wxUSE_COMPATIBLE_COORD_TYPES" is not defined
In file included from /usr/include/wx-2.6/wx/event.h:37,
from /usr/include/wx-2.6/wx/window.h:23,
from /usr/include/wx-2.6/wx/menu.h:28,
from MuleListCtrl.cpp:27:
/usr/include/wx-2.6/wx/dynarray.h: In member function `int
wxArrayShort::Index(short int, bool) const':
/usr/include/wx-2.6/wx/dynarray.h:963: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayShort::Add(short int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:963: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayShort::Insert(short int, unsigned int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:963: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayShort::Remove(short int)':
/usr/include/wx-2.6/wx/dynarray.h:963: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `int
wxArrayInt::Index(int, bool) const':
/usr/include/wx-2.6/wx/dynarray.h:964: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayInt::Add(int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:964: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayInt::Insert(int, unsigned int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:964: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayInt::Remove(int)':
/usr/include/wx-2.6/wx/dynarray.h:964: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `int
wxArrayLong::Index(long int, bool) const':
/usr/include/wx-2.6/wx/dynarray.h:965: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayLong::Add(long int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:965: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayLong::Insert(long int, unsigned int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:965: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayLong::Remove(long int)':
/usr/include/wx-2.6/wx/dynarray.h:965: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `int
wxArrayPtrVoid::Index(void*, bool) const':
/usr/include/wx-2.6/wx/dynarray.h:966: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayPtrVoid::Add(void*, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:966: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayPtrVoid::Insert(void*, unsigned int, unsigned int)':
/usr/include/wx-2.6/wx/dynarray.h:966: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/dynarray.h: In member function `void
wxArrayPtrVoid::Remove(void*)':
/usr/include/wx-2.6/wx/dynarray.h:966: warning: declaration of `Item' shadows a
member of `this'
In file included from /usr/include/wx-2.6/wx/window.h:23,
from /usr/include/wx-2.6/wx/menu.h:28,
from MuleListCtrl.cpp:27:
/usr/include/wx-2.6/wx/event.h:85:5: warning: "WXWIN_COMPATIBILITY_EVENT_TYPES" is not defined
/usr/include/wx-2.6/wx/event.h:125:5: warning: "WXWIN_COMPATIBILITY_EVENT_TYPES" is not defined
/usr/include/wx-2.6/wx/event.h:144:5: warning: "WXWIN_COMPATIBILITY_EVENT_TYPES" is not defined
/usr/include/wx-2.6/wx/event.h:305:6: warning: "WXWIN_COMPATIBILITY_EVENT_TYPES" is not defined
/usr/include/wx-2.6/wx/event.h:2125:5: warning: "WXWIN_COMPATIBILITY_EVENT_TYPES" is not defined
In file included from /usr/include/wx-2.6/wx/window.h:23,
from /usr/include/wx-2.6/wx/menu.h:28,
from MuleListCtrl.cpp:27:
/usr/include/wx-2.6/wx/event.h: In member function `int
wxEventTableEntryPointerArray::Index(const wxEventTableEntry*, bool) const':
/usr/include/wx-2.6/wx/event.h:2238: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/event.h: In member function `void
wxEventTableEntryPointerArray::Add(const wxEventTableEntry*, unsigned int)':
/usr/include/wx-2.6/wx/event.h:2238: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/event.h: In member function `void
wxEventTableEntryPointerArray::Insert(const wxEventTableEntry*, unsigned
int, unsigned int)':
/usr/include/wx-2.6/wx/event.h:2238: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/event.h: In member function `void
wxEventTableEntryPointerArray::Remove(const wxEventTableEntry*)':
/usr/include/wx-2.6/wx/event.h:2238: warning: declaration of `Item' shadows a
member of `this'
In file included from /usr/include/wx-2.6/wx/textfile.h:23,
from /usr/include/wx-2.6/wx/fileconf.h:24,
from /usr/include/wx-2.6/wx/config.h:27,
from MuleListCtrl.cpp:28:
/usr/include/wx-2.6/wx/textbuf.h: In member function `int
wxArrayLinesType::Index(wxTextFileType, bool) const':
/usr/include/wx-2.6/wx/textbuf.h:46: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/textbuf.h: In member function `void
wxArrayLinesType::Add(wxTextFileType, unsigned int)':
/usr/include/wx-2.6/wx/textbuf.h:46: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/textbuf.h: In member function `void
wxArrayLinesType::Insert(wxTextFileType, unsigned int, unsigned int)':
/usr/include/wx-2.6/wx/textbuf.h:46: warning: declaration of `Item' shadows a
member of `this'
/usr/include/wx-2.6/wx/textbuf.h: In member function `void
wxArrayLinesType::Remove(wxTextFileType)':
/usr/include/wx-2.6/wx/textbuf.h:46: warning: declaration of `Item' shadows a
member of `this'
In file included from /usr/include/wx-2.6/wx/textfile.h:27,
from /usr/include/wx-2.6/wx/fileconf.h:24,
from /usr/include/wx-2.6/wx/config.h:27,
from MuleListCtrl.cpp:28:
/usr/include/wx-2.6/wx/file.h: In constructor `wxFile::wxFile(int)':
/usr/include/wx-2.6/wx/file.h:82: warning: declaration of `fd' shadows a member
of `this'
/usr/include/wx-2.6/wx/file.h: In member function `void wxFile::Attach(int)':
/usr/include/wx-2.6/wx/file.h:94: warning: declaration of `fd' shadows a member
of `this'
In file included from libs/common/StringFunctions.h:29,
from MuleListCtrl.cpp:34:
Types.h: In member function `int ArrayOfUInts16::Index(short unsigned int,
bool) const':
Types.h:88: warning: declaration of `Item' shadows a member of `this'
Types.h: In member function `void ArrayOfUInts16::Add(short unsigned int,
unsigned int)':
Types.h:88: warning: declaration of `Item' shadows a member of `this'
Types.h: In member function `void ArrayOfUInts16::Insert(short unsigned int,
unsigned int, unsigned int)':
Types.h:88: warning: declaration of `Item' shadows a member of `this'
Types.h: In member function `void ArrayOfUInts16::Remove(short unsigned int)':
Types.h:88: warning: declaration of `Item' shadows a member of `this'
In file included from /usr/include/wx-2.6/wx/filename.h:39,
from libs/common/StringFunctions.h:33,
from MuleListCtrl.cpp:34:
/usr/include/wx-2.6/wx/datetime.h: In member function `void
wxDateTimeArray::push_back(const _wxObjArraywxDateTimeArray&)':
/usr/include/wx-2.6/wx/datetime.h:1429: warning: declaration of `Item' shadows
a member of `this'
/usr/include/wx-2.6/wx/datetime.h: In member function `int
wxHolidayAuthoritiesArray::Index(wxDateTimeHolidayAuthority*, bool) const':
/usr/include/wx-2.6/wx/datetime.h:1441: warning: declaration of `Item' shadows
a member of `this'
/usr/include/wx-2.6/wx/datetime.h: In member function `void
wxHolidayAuthoritiesArray::Add(wxDateTimeHolidayAuthority*, unsigned int)':
/usr/include/wx-2.6/wx/datetime.h:1441: warning: declaration of `Item' shadows
a member of `this'
/usr/include/wx-2.6/wx/datetime.h: In member function `void
wxHolidayAuthoritiesArray::Insert(wxDateTimeHolidayAuthority*, unsigned int,
unsigned int)':
/usr/include/wx-2.6/wx/datetime.h:1441: warning: declaration of `Item' shadows
a member of `this'
/usr/include/wx-2.6/wx/datetime.h: In member function `void
wxHolidayAuthoritiesArray::Remove(wxDateTimeHolidayAuthority*)':
/usr/include/wx-2.6/wx/datetime.h:1441: warning: declaration of `Item' shadows
a member of `this'
MuleListCtrl.cpp:37:67: OPCodes.h: No such file or directory
MuleListCtrl.cpp:38:69: GetTickCount.h: No such file or directory
MuleListCtrl.cpp:43:31: pixmaps/sort_dn.xpm: No such file or directory
MuleListCtrl.cpp:44:31: pixmaps/sort_up.xpm: No such file or directory
MuleListCtrl.cpp:45:33: pixmaps/sort_dnx2.xpm: No such file or directory
MuleListCtrl.cpp:46:33: pixmaps/sort_upx2.xpm: No such file or directory
MuleListCtrl.cpp: At global scope:
MuleListCtrl.cpp:66: error: `MP_LISTCOL_1' was not declared in this scope
MuleListCtrl.cpp:66: error: `MP_LISTCOL_15' was not declared in this scope
MuleListCtrl.cpp: In constructor `CMuleListCtrl::CMuleListCtrl(wxWindow*, int,
const wxPoint&, const wxSize&, long int, const wxValidator&, const
wxString&)':
MuleListCtrl.cpp:85: error: `sort_dn_xpm' undeclared (first use this function)
MuleListCtrl.cpp:85: error: (Each undeclared identifier is reported only once
for each function it appears in.)
MuleListCtrl.cpp:86: error: `sort_up_xpm' undeclared (first use this function)
MuleListCtrl.cpp:87: error: `sort_dnx2_xpm' undeclared (first use this
function)
MuleListCtrl.cpp:88: error: `sort_upx2_xpm' undeclared (first use this
function)
MuleListCtrl.cpp: In member function `void
CMuleListCtrl::OnColumnRClick(wxListEvent&)':
MuleListCtrl.cpp:237: error: `MP_LISTCOL_1' undeclared (first use this
function)
MuleListCtrl.cpp: In member function `void CMuleListCtrl::OnChar(wxKeyEvent&)':
MuleListCtrl.cpp:452: error: `GetTickCount' undeclared (first use this
function)
MuleListCtrl.cpp: In member function `void
CMuleListCtrl::OnAllItemsDeleted(wxListEvent&)':
MuleListCtrl.cpp:524: warning: unused parameter `wxListEvent&evt'
cc1plus: Permission denied: opening dependency file
.deps/libmuleappgui_a-MuleListCtrl.Tpo
make[3]: *** [libmuleappgui_a-MuleListCtrl.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.0/work/aMule-2.1.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.0/work/aMule-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.0/work/aMule-2.1.0'
make: *** [all] Error 2
On my main box I've worked around this by rebuilding the whole system, but I'd like to know what causes this problem before doing the same on the other machines.