First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 73007
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo net-p2p team <net-p2p@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alessandro Ronchi <alessandro.ronchi@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
patch-ar.patch This patch solves the problem patch Alessandro Ronchi 2004-12-01 01:37 0000 1.26 KB Details | Diff
amule-2.0.0_rc7.ebuild amule-2.0.0_rc7.ebuild application/octet-stream Alessandro Ronchi 2004-12-07 18:01 0000 2.15 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 73007 depends on: Show dependency tree
Bug 73007 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-12-01 01:36 0000
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?

------- Comment #1 From Alessandro Ronchi 2004-12-01 01:37:29 0000 -------
Created an attachment (id=45041) [edit]
This patch solves the problem

------- Comment #2 From Alessandro Ronchi 2004-12-06 04:59:51 0000 -------
Is it possible to contribute an ebuild for gentoo wich solves the problem? How
can I do that?

------- Comment #3 From Alessandro Ronchi 2004-12-07 17:59:48 0000 -------
Ebuild done:

http://bugs.gentoo.org/show_bug.cgi?id=73738

------- Comment #4 From Alessandro Ronchi 2004-12-07 18:01:46 0000 -------
Created an attachment (id=45480) [edit]
amule-2.0.0_rc7.ebuild

------- Comment #5 From Olivier Crete 2004-12-07 22:30:33 0000 -------
*** Bug 73738 has been marked as a duplicate of this bug. ***

------- Comment #6 From Giacomo Perale 2004-12-08 02:43:21 0000 -------
Am I wrong or you just added ~ppc to KEYWORDS?

------- Comment #7 From Alessandro Ronchi 2004-12-08 03:26:27 0000 -------
Also commented a GTK2 check.

------- Comment #8 From Giacomo Perale 2004-12-08 03:35:48 0000 -------
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

------- Comment #9 From Alessandro Ronchi 2004-12-08 03:44:35 0000 -------
I have wxGTK-2.4.2-r3 and GTK2 and emule works perfectly (I used it a week
without an error).

------- Comment #10 From Giacomo Perale 2004-12-08 03:53:02 0000 -------
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.

------- Comment #11 From Karol Wojtaszek (RETIRED) 2005-05-31 14:29:53 0000 -------
Added patch to portage. Thanks for help. If you still expirience 100% CPU usage
problems try new release (2.0.1).

First Last Prev Next    No search results available      Search page      Enter new bug