Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60529 - xmule-1.8.4 fails to compile, and ebuild suggestion
Summary: xmule-1.8.4 fails to compile, and ebuild suggestion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Highest major (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 01:24 UTC by Stuart Shelton
Modified: 2004-08-16 09:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2004-08-16 01:24:23 UTC
Given the problems with wxGTK/unicode/xmule(/etc.), shouldn't the xmule-1.8.4 ebuild be altered to use the wxwidgets eclass, then do a "need-widgets gtk" (or gtk2) to select the libraries to use, rather than the pkg_setup test?

In any case, I can't get xmule-1.8.4 to build - I get this:

make[1]: Entering directory `/var/tmp/portage/xmule-1.8.4/work/xmule-1.8.4/src'
make[2]: Entering directory `/var/tmp/portage/xmule-1.8.4/work/xmule-1.8.4/src/wx/xrc'
Compiling wx/xrc/xmlrole.c...
Compiling AddFriend.cpp...
Compiling wx/xrc/xmltok.c...
Compiling wx/xrc/xmlparse.c...
Compiling wx/xrc/xh_bmpbt.cpp...
In file included from ListenSocket.h:27,
                 from updownclient.h:27,
                 from Friend.h:25,
                 from AddFriend.h:25,
                 from AddFriend.cpp:31:
Preferences.h: In member function `CString CPreferences::GetIRCNick()':
Preferences.h:1027: error: no matching function for call to `CString::CString(
   char[30])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetIRCServer()':
Preferences.h:1035: error: no matching function for call to `CString::CString(
   char[50])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetIRCChanNameFilter()
   ':
Preferences.h:1051: error: no matching function for call to `CString::CString(
   char[50])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetIrcPerformString()
   ':
Preferences.h:1075: error: no matching function for call to `CString::CString(
   char[255])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetMessageFilter()':
Preferences.h:1186: error: no matching function for call to `CString::CString(
   char[512])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetCommentFilter()':
Preferences.h:1190: error: no matching function for call to `CString::CString(
   char[512])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetDateTimeFormat()':
Preferences.h:1204: error: no matching function for call to `CString::CString(
   char[32])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetWSPass()':
Preferences.h:1217: error: no matching function for call to `CString::CString(
   char[256])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetWSLowPass()':
Preferences.h:1257: error: no matching function for call to `CString::CString(
   char[256])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Preferences.h: In member function `CString CPreferences::GetTemplate()':
Preferences.h:1285: error: no matching function for call to `CString::CString(
   char[2048])'
mfc.h:478: error: candidates are: CString::CString(const CString&)
mfc.h:454: error:                 CString::CString(const wxChar*)
mfc.h:450: error:                 CString::CString(wxChar*)
mfc.h:446: error:                 CString::CString()
Compiling wx/xrc/xh_bmp.cpp...
In file included from Friend.h:25,
                 from AddFriend.h:25,
                 from AddFriend.cpp:31:
updownclient.h: In member function `void CUpDownClient::SetFileComment(char*)':
updownclient.h:288: error: no matching function for call to `CString::Format(
   const char[3], char*&)'
mfc.h:466: error: candidates are: void CString::Format(const wxChar*, ...)
Compiling wx/xrc/xh_bttn.cpp...
Compiling wx/xrc/xh_cald.cpp...
AddFriend.cpp: In member function `void CAddFriend::OnAddBtn(wxCommandEvent&)':
AddFriend.cpp:119: error: no matching function for call to `CString::Format(
   const char[3], const wxChar*)'
mfc.h:466: error: candidates are: void CString::Format(const wxChar*, ...)
AddFriend.cpp:124: error: no matching function for call to `CString::Format(
   const char[3], const wxChar*)'
mfc.h:466: error: candidates are: void CString::Format(const wxChar*, ...)
AddFriend.cpp:136: error: cannot convert `const wxChar*' to `const char*' for 
   argument `1' to `int atoi(const char*)'
AddFriend.cpp:136: error: cannot convert `const wxChar*' to `const char*' for 
   argument `1' to `int atoi(const char*)'
AddFriend.cpp:166: error: cannot convert `const wxChar*' to `const char*' for 
   argument `1' to `int sscanf(const char*, const char*, ...)'
make[1]: *** [AddFriend.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Compiling wx/xrc/xh_chckb.cpp...
Compiling wx/xrc/xh_chckl.cpp...
Compiling wx/xrc/xh_choic.cpp...
Compiling wx/xrc/xh_combo.cpp...
Compiling wx/xrc/xh_dlg.cpp...
Compiling wx/xrc/xh_frame.cpp...
Compiling wx/xrc/xh_gauge.cpp...
Compiling wx/xrc/xh_gdctl.cpp...
Compiling wx/xrc/xh_html.cpp...
Compiling wx/xrc/xh_listb.cpp...
Compiling wx/xrc/xh_listc.cpp...
Compiling wx/xrc/xh_menu.cpp...
Compiling wx/xrc/xh_notbk.cpp...
Compiling wx/xrc/xh_panel.cpp...
Compiling wx/xrc/xh_radbt.cpp...
Compiling wx/xrc/xh_radbx.cpp...
Compiling wx/xrc/xh_scrol.cpp...
Compiling wx/xrc/xh_scwin.cpp...
Compiling wx/xrc/xh_sizer.cpp...
Compiling wx/xrc/xh_slidr.cpp...
Compiling wx/xrc/xh_spin.cpp...
Compiling wx/xrc/xh_split.cpp...
Compiling wx/xrc/xh_stbmp.cpp...
Compiling wx/xrc/xh_stbox.cpp...
Compiling wx/xrc/xh_stlin.cpp...
Compiling wx/xrc/xh_sttxt.cpp...
Compiling wx/xrc/xh_text.cpp...
Compiling wx/xrc/xh_toolb.cpp...
Compiling wx/xrc/xh_tree.cpp...
Compiling wx/xrc/xh_unkwn.cpp...
Compiling wx/xrc/xh_wizrd.cpp...
Compiling wx/xrc/xml.cpp...
Compiling wx/xrc/xmlres.cpp...
Compiling wx/xrc/xmlrsall.cpp...
Linking wx/xrc/libxrc.a...
make[2]: Leaving directory `/var/tmp/portage/xmule-1.8.4/work/xmule-1.8.4/src/wx/xrc'
make[1]: Leaving directory `/var/tmp/portage/xmule-1.8.4/work/xmule-1.8.4/src'
make: *** [all] Error 2

!!! ERROR: net-p2p/xmule-1.8.4 failed.
!!! Function src_compile, Line 53, Exitcode 2
!!! (no error message)

Can anyone give me any pointers as to what's going wrong?  Are we just missing a shedload of casts here?

Cheers,

    Stuart
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2004-08-16 09:59:57 UTC
Thanks, Stuart. Fixed in CVS to use new wxwidgets eclass and newer wxGTK.