When I try to emerge amule 1.0.8 it returns a lot of errors and finally fails. Reproducible: Always Steps to Reproduce: 1. emerge net-p2p/amule/amule-1.0.8.ebuild Actual Results: emerge fails with the last lines showing: make[3]: Entering directory `/var/tmp/portage/amule-1.0.8/work/aMule-1.0.8/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GTK2__ -march=pentium3 -O3 -pipe -f prefetch-loop-arrays -funroll-loops -g -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_ NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/ gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1 .0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/ lib/glib-2.0/include -Isrc -MT AddFriend.o -MD -MP -MF ".deps/AddFriend.Tpo" \ -c -o AddFriend.o `test -f 'AddFriend.cpp' || echo './'`AddFriend.cpp; \ then mv ".deps/AddFriend.Tpo" ".deps/AddFriend.Po"; \ else rm -f ".deps/AddFriend.Tpo"; exit 1; \ fi In file included from ServerList.h:24, from ServerListCtrl.h:4, from sockets.h:27, from amuleDlg.h:24, from amule.h:30, from AddFriend.cpp:23: Preferences.h: In member function `CString CPreferences::GetIRCNick()': Preferences.h:469: error: no matching function for call to `CString::CString( char[30])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetIRCServer()': Preferences.h:471: error: no matching function for call to `CString::CString( char[50])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetIRCChanNameFilter() ': Preferences.h:475: error: no matching function for call to `CString::CString( char[50])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetIrcPerformString() ': Preferences.h:481: error: no matching function for call to `CString::CString( char[255])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetVideoPlayer()': Preferences.h:520: error: conversion from `const char*' to non-scalar type ` CString' requested Preferences.h:520: error: no matching function for call to `CString::CString( char[256])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetMessageFilter()': Preferences.h:558: error: no matching function for call to `CString::CString( char[512])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetCommentFilter()': Preferences.h:559: error: no matching function for call to `CString::CString( char[512])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetDateTimeFormat()': Preferences.h:564: error: no matching function for call to `CString::CString( char[32])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetWSPass()': Preferences.h:588: error: no matching function for call to `CString::CString( char[256])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetWSLowPass()': Preferences.h:598: error: no matching function for call to `CString::CString( char[256])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetTemplate()': Preferences.h:610: error: no matching function for call to `CString::CString( char[2048])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() In file included from PreferencesDlg.h:10, from amuleDlg.h:31, from amule.h:30, from AddFriend.cpp:23: PPgNotify.h: At global scope: PPgNotify.h:43: error: invalid type `const char[1]' for default argument to ` wxString' In file included from PartFile.h:25, from SharedFileList.h:32, from SharedFilesCtrl.h:22, from SharedFilesWnd.h:22, from amuleDlg.h:32, from amule.h:30, from AddFriend.cpp:23: ED2KLink.h: In member function `const char* CED2KFileLink::GetName() const': ED2KLink.h:74: error: cannot convert `const wxString' to `const char*' in return ED2KLink.h: In member function `long int CED2KFileLink::GetSize() const': ED2KLink.h:75: error: cannot convert `const wxString' to `const char*' for argument `1' to `long int atol(const char*)' ED2KLink.h: In member function `const char* CED2KServerListLink::GetAddress() const': ED2KLink.h:98: error: cannot convert `const wxString' to `const char*' in return In file included from StatisticsDlg.h:23, from amuleDlg.h:36, from amule.h:30, from AddFriend.cpp:23: OScopeCtrl.h: At global scope: OScopeCtrl.h:32: error: invalid type `const char[1]' for default argument to ` CString' OScopeCtrl.h:32: error: invalid type `const char[1]' for default argument to ` CString' OScopeCtrl.h:31: error: invalid type `const char[1]' for default argument to ` CString' OScopeCtrl.h:31: error: invalid type `const char[1]' for default argument to ` CString' In file included from UploadQueue.h:23, from amule.h:38, from AddFriend.cpp:23: updownclient.h: In member function `void CUpDownClient::SetFileComment(char*)': updownclient.h:236: error: no matching function for call to `CString::Format( const char[3], char*&)' mfc.h:336: error: candidates are: void CString::Format(const wxChar*, ...) AddFriend.cpp: In member function `void CAddFriend::OnAddBtn(wxEvent&)': AddFriend.cpp:77: error: no matching function for call to `CString::Format( const char[3], const wxChar*)' mfc.h:336: error: candidates are: void CString::Format(const wxChar*, ...) AddFriend.cpp:80: error: no matching function for call to `CString::Format( const char[3], const wxChar*)' mfc.h:336: error: candidates are: void CString::Format(const wxChar*, ...) AddFriend.cpp:87: error: cannot convert `const wxChar*' to `const char*' for argument `1' to `int atoi(const char*)' AddFriend.cpp:87: error: cannot convert `const wxChar*' to `const char*' for argument `1' to `int atoi(const char*)' AddFriend.cpp:94: error: cannot convert `const wxChar*' to `const char*' for argument `1' to `int sscanf(const char*, const char*, ...)' make[3]: *** [AddFriend.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/amule-1.0.8/work/aMule-1.0.8/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/amule-1.0.8/work/aMule-1.0.8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/amule-1.0.8/work/aMule-1.0.8' make: *** [all] Error 2 !!! ERROR: net-p2p/amule-1.0.8 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/amule-1.0.8 to / >>> md5 src_uri ;-) aMule-1.0.8.tar.bz2 Expected Results: Normal emerge of amule 1.0.8 Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.6.0-test7-bk3) ================================================================= System uname: 2.6.0-test7-bk3 i686 Celeron (Coppermine) Gentoo Base System version 1.4.3.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fprefetch-loop-arrays -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fprefetch-loop-arrays -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache" GENTOO_MIRRORS="http://gentoo.linux.no http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls oggvorbis pdflib png sdl spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga X gpm tcpd pam libwww ssl perl python esd imlib gtk opengl ldap aalib acl alsa amd apache2 autofs dedicated dga directfb dvb dvd ethereal evo flac flash gd gstreamer gtk2 gtkhtml imagemagick imap imlib2 ipv6 java javascript junit kerberos krb4 mozilla music mysql nas offensive pcap pcmcia pnp samba scanner tcltk tetex tiff transcode trusted unicode usb videos vim-with-x wxwindows xchattext xml xvid -arts -kde -motif -qt -quicktime"
Created attachment 19305 [details] Complete output of emerge net-p2p/amule/amule-1.0.8.ebuild
Hmmm, worked fine for me (on "x86"), Which versions of wxPython and wxGTK are you using?
I am using wxGTK 2.4.2 and wxPython is not installed, I'm emerging it right now.
I've emerged wxPython, but amule stille fails with the same error.
root@blutbad: -> emerge -s amule wxGTK Searching... [ Results for search key : amule ] [ Applications found : 1 ] * net-p2p/amule Latest version available: 1.0.8 Latest version installed: 1.0.8 Size of downloaded files: 1,884 kB Homepage: http://sourceforge.net/projects/amule Description: aNOTHER wxWindows based eMule P2P Client Searching... [ Results for search key : wxGTK ] [ Applications found : 1 ] * x11-libs/wxGTK Latest version available: 2.4.1-r1 Latest version installed: 2.4.1-r1 Size of downloaded files: 5,222 kB Homepage: http://www.wxwindows.org/ Description: GTK+ version of wxWindows, a cross-platform C++ GUI toolkit. -------------------------------------------------------------------------------- Maybe someone with a bit more coding knowledge could take a look at this? Only thing I know is it compiled on my stable system and it works fine here too. Just try to downgrade wxGTK (just guessing).
Well, I'm not in favor for downgrading my software. Then rather mark amule not working with wxGTK > 2.4.1. But I't still a bug until either the amule developers have made amule working with 2.4.2, or It's been marked not working with newer versions in portage.
Either try with wxGTK-2.4.1 or find someone else who is using wxGTK-2.4.2 .. I havn't heard of any incompatibilities between 2.4.1 and 2.4.2. I don't think you can judge that this is a bug in amule/wxGTK or whatever if you didn't try other/older versions...it could as well be a bug in gcc-3.3.1 or how your wxGTK is linked again Gtk+ etc. could you please try again with amule-1.0.9 ?
I'm not judging, just saying that _if_ it's a problem with amule and wxGTK > 2.4.1 it should be marked a so. I've just tried emerging amule 1.0.9, and it failed as well with the following result (tell me if you want the complete output): make[3]: Entering directory `/var/tmp/portage/amule-1.0.9/work/aMule-1.0.9/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GTK2__ -march=pentium3 -O3 -pipe -fprefetch-loop-arrays -funroll-loops -g -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_C ASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/incl ude -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Isrc -MT AddFriend.o -MD -MP -MF ".deps/AddFriend.Tpo" \ -c -o AddFriend.o `test -f 'AddFriend.cpp' || echo './'`AddFriend.cpp; \ then mv ".deps/AddFriend.Tpo" ".deps/AddFriend.Po"; \ else rm -f ".deps/AddFriend.Tpo"; exit 1; \ fi In file included from ServerList.h:24, from ServerListCtrl.h:4, from sockets.h:27, from amuleDlg.h:24, from amule.h:30, from AddFriend.cpp:23: Preferences.h: In member function `CString CPreferences::GetIRCNick()': Preferences.h:471: error: no matching function for call to `CString::CString( char[30])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetIRCServer()': Preferences.h:473: error: no matching function for call to `CString::CString( char[50])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetIRCChanNameFilter() ': Preferences.h:477: error: no matching function for call to `CString::CString( char[50])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetIrcPerformString() ': Preferences.h:483: error: no matching function for call to `CString::CString( char[255])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetVideoPlayer()': Preferences.h:522: error: conversion from `const char*' to non-scalar type ` CString' requested Preferences.h:522: error: no matching function for call to `CString::CString( char[256])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetMessageFilter()': Preferences.h:561: error: no matching function for call to `CString::CString( char[512])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetCommentFilter()': Preferences.h:562: error: no matching function for call to `CString::CString( char[512])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetDateTimeFormat()': Preferences.h:567: error: no matching function for call to `CString::CString( char[32])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetWSPass()': Preferences.h:591: error: no matching function for call to `CString::CString( char[256])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetWSLowPass()': Preferences.h:601: error: no matching function for call to `CString::CString( char[256])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() Preferences.h: In member function `CString CPreferences::GetTemplate()': Preferences.h:613: error: no matching function for call to `CString::CString( char[2048])' mfc.h:346: error: candidates are: CString::CString(const CString&) mfc.h:331: error: CString::CString(const wxChar*) mfc.h:329: error: CString::CString(wxChar*) mfc.h:327: error: CString::CString() In file included from PreferencesDlg.h:10, from amuleDlg.h:31, from amule.h:30, from AddFriend.cpp:23: PPgNotify.h: At global scope: PPgNotify.h:43: error: invalid type `const char[1]' for default argument to ` wxString' In file included from PartFile.h:25, from SharedFileList.h:32, from SharedFilesCtrl.h:22, from SharedFilesWnd.h:22, from amuleDlg.h:32, from amule.h:30, from AddFriend.cpp:23: ED2KLink.h: In member function `const char* CED2KFileLink::GetName() const': ED2KLink.h:74: error: cannot convert `const wxString' to `const char*' in return ED2KLink.h: In member function `long int CED2KFileLink::GetSize() const': ED2KLink.h:75: error: cannot convert `const wxString' to `const char*' for argument `1' to `long int atol(const char*)' ED2KLink.h: In member function `const char* CED2KServerListLink::GetAddress() const': ED2KLink.h:98: error: cannot convert `const wxString' to `const char*' in return In file included from StatisticsDlg.h:23, from amuleDlg.h:36, from amule.h:30, from AddFriend.cpp:23: OScopeCtrl.h: At global scope: OScopeCtrl.h:32: error: invalid type `const char[1]' for default argument to ` CString' OScopeCtrl.h:32: error: invalid type `const char[1]' for default argument to ` CString' OScopeCtrl.h:31: error: invalid type `const char[1]' for default argument to ` CString' OScopeCtrl.h:31: error: invalid type `const char[1]' for default argument to ` CString' In file included from UploadQueue.h:23, from amule.h:38, from AddFriend.cpp:23: updownclient.h: In member function `void CUpDownClient::SetFileComment(char*)': updownclient.h:236: error: no matching function for call to `CString::Format( const char[3], char*&)' mfc.h:336: error: candidates are: void CString::Format(const wxChar*, ...) AddFriend.cpp: In member function `void CAddFriend::OnAddBtn(wxEvent&)': AddFriend.cpp:79: error: no matching function for call to `CString::Format( const char[3], const wxChar*)' mfc.h:336: error: candidates are: void CString::Format(const wxChar*, ...) AddFriend.cpp:82: error: no matching function for call to `CString::Format( const char[3], const wxChar*)' mfc.h:336: error: candidates are: void CString::Format(const wxChar*, ...) AddFriend.cpp:89: error: cannot convert `const wxChar*' to `const char*' for argument `1' to `int atoi(const char*)' AddFriend.cpp:89: error: cannot convert `const wxChar*' to `const char*' for argument `1' to `int atoi(const char*)' AddFriend.cpp:96: error: cannot convert `const wxChar*' to `const char*' for argument `1' to `int sscanf(const char*, const char*, ...)' make[3]: *** [AddFriend.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/amule-1.0.9/work/aMule-1.0.9/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/amule-1.0.9/work/aMule-1.0.9/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/amule-1.0.9/work/aMule-1.0.9' make: *** [all] Error 2 !!! ERROR: net-p2p/amule-1.0.9 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/amule-1.0.9 to / >>> md5 src_uri ;-) aMule-1.0.9.tar.bz2
your wxGTK seems to be linked against Gtk+2 and the amule developers don't support wxGTK linked against Gtk+2 because they say "wxGTK is not ready for it", so it could also be a problem of wxGTK being linked against Gtk+2 (that would only fail on wxGTK >=2.4.2 then since <=2.4.1 linked against Gtk+-2 works). To be honest, amule doesn't have much priority right now, so don't expect me to check this out anytime soon. It would be helpful if you could try it for yourself or find someone else with wxGTK-2.4.2 and check wether it works when it's linked against Gtk+-1 or just drop the amule developers a request to work towards Gtk+2 :) Applications using wxGTK are sometimes generally a bit complicated to handle, but I really don't have the time at the moment to look into the various problems all the *mule clients have. (Also don't expect amule to leave ~ anytime soon)
Thanks for looking at it, I'll ask the amule team to make it compile against GTK+2. And I'll se if I can get it working on another machine. I've just filled another bugreport on xmule, which returns an error which seems like the same error as I get with amule, properly because one is a fork of the other. The bugreport is at http://bugs.gentoo.org/show_bug.cgi?id=31446, I'll take is as if the same applies to xmule.
I just checked in a check function in all xmule and amule ebuilds, please test it
I've just reemerged wxGTK without unicode support, and amule compiles against it perfectly.
Unfortunatly we cannot do anything about it, it's the developers job to fix unicode support in their application, so you have to live with that work-around. I added a check function to the ebuilds wether wxGTK was compiled with unicode support and there is nothing more we can do about this at the moment. resolved / fixed
*** Bug 305789 has been marked as a duplicate of this bug. ***