When I try to emerge amule, it says to me: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[6]: Entering directory `/home/aronchi/aMule-2.0.0rc7/src/utils/aLinkCreator/src' if g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT alc-ed2khash.o -MD -MP -MF ".deps/alc-ed2khash.Tpo" \ -c -o alc-ed2khash.o `test -f 'ed2khash.cpp' || echo './'`ed2khash.cpp; \ then mv -f ".deps/alc-ed2khash.Tpo" ".deps/alc-ed2khash.Po"; \ else rm -f ".deps/alc-ed2khash.Tpo"; exit 1; \ fi ed2khash.cpp: In member function `bool Ed2kHash::SetED2KHashFromFile(const wxFileName&, bool (*)(int))': ed2khash.cpp:86: error: no matching function for call to `wxFFile::wxFFile(wxString, const wchar_t[4])' /usr/include/wx/ffile.h:106: note: candidates are: wxFFile::wxFFile(const wxFFile&) /usr/include/wx/ffile.h:47: note: wxFFile::wxFFile(FILE*) /usr/include/wx/ffile.h:45: note: wxFFile::wxFFile(const wxChar*, const char*) /usr/include/wx/ffile.h:43: note: wxFFile::wxFFile() make[6]: *** [alc-ed2khash.o] Error 1 make[6]: Leaving directory `/home/aronchi/aMule-2.0.0rc7/src/utils/aLinkCreator/src' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/home/aronchi/aMule-2.0.0rc7/src/utils/aLinkCreator' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/aronchi/aMule-2.0.0rc7/src/utils' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/aronchi/aMule-2.0.0rc7/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/aronchi/aMule-2.0.0rc7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/aronchi/aMule-2.0.0rc7' make: *** [all] Error 2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reproducible: Always Steps to Reproduce: 1. emerge aMule Actual Results: this error: ed2khash.cpp:86: error: no matching function for call to `wxFFile::wxFFile(wxString, const wchar_t[4])' Expected Results: emerge cleanly I've solved this problem with this simple patch to the clean aMule-2.0.0rc7.tar.bz2 from aMule site: #~~~~~~~~~~~~~~~~~cut here~~~~~~~~~~~~~~~~~~~~~~~~ diff -ur aMule-2.0.0rc7/src/utils/aLinkCreator/src/ed2khash.cpp aMule-2.0.0rc7-ar/src/utils/aLinkCreator/src/ed2khash.cpp --- aMule-2.0.0rc7/src/utils/aLinkCreator/src/ed2khash.cpp 2004-08-09 19:01:34.000000000 +0200 +++ aMule-2.0.0rc7-ar/src/utils/aLinkCreator/src/ed2khash.cpp 2004-12-01 00:43:15.061834816 +0100 @@ -83,7 +83,7 @@ { // Open file and let wxFFile destructor close the file // Closing it explicitly may crash on Win32 ... - wxFFile file(filename.GetFullPath(), wxT("rbS")); + wxFFile file( (const wxChar*) filename.GetFullPath(), (const char*) wxT("rbS")); if (! file.IsOpened()) { wxLogError (_("Unable to open %s"),unicode2char(filename.GetFullPath())); diff -ur aMule-2.0.0rc7/src/utils/aLinkCreator/src/md4.cpp aMule-2.0.0rc7-ar/src/utils/aLinkCreator/src/md4.cpp --- aMule-2.0.0rc7/src/utils/aLinkCreator/src/md4.cpp 2004-08-30 00:27:04.000000000 +0200 +++ aMule-2.0.0rc7-ar/src/utils/aLinkCreator/src/md4.cpp 2004-12-01 00:43:15.037838464 +0100 @@ -336,7 +336,7 @@ // Open file and let wxFFile destructor close the file // Closing it explicitly may crash on Win32 ... - wxFFile file(filename, wxT("rbS")); + wxFFile file((const wxChar*) filename, (const char*) wxT("rbS")); if (! file.IsOpened()) { return wxEmptyString; #~~~~~~~~~~~~~~~~~cut here~~~~~~~~~~~~~~~~~~~~~~~~ How can I contribute that to the project?
Created attachment 45041 [details, diff] This patch solves the problem
Is it possible to contribute an ebuild for gentoo wich solves the problem? How can I do that?
Ebuild done: http://bugs.gentoo.org/show_bug.cgi?id=73738
Created attachment 45480 [details] amule-2.0.0_rc7.ebuild
*** Bug 73738 has been marked as a duplicate of this bug. ***
Am I wrong or you just added ~ppc to KEYWORDS?
Also commented a GTK2 check.
don't comment it out that check, it's needed because wxGTK 2.4 doesn't work well with gtk2. wait for the unmasking of wxGTK 2.5.3, there's already an ebuild, bug #71108
I have wxGTK-2.4.2-r3 and GTK2 and emule works perfectly (I used it a week without an error).
and in my system (-O2 -pipe, no strange hyper-optimiziations) I've got 100% CPU usage and 250mb ram occupied in ~10-12 hours. wxGTK 2.4 aren't stable with gtk2 according to wxGTK developers and amule developers. If you've got a patch, just inherit eutils in the ebuild and patch the sources when ppc keywords is on.
Added patch to portage. Thanks for help. If you still expirience 100% CPU usage problems try new release (2.0.1).