Bug 91930 - boinc-4.32 doesn't compile
Bug#: 91930 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: fctk86@gmail.com
Component: Applications
URL: 
Summary: boinc-4.32 doesn't compile
Keywords:  
Status Whiteboard: 
Opened: 2005-05-08 12:25 0000
Description:   Opened: 2005-05-08 12:25 0000
boinc-4.32 doesn't compile

Reproducible: Always
Steps to Reproduce:
1. emerge boinc
Actual Results:  
/usr/include/wx-2.6/wx/string.h:670: note: candidates are:
wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:643: note:                
wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:640: note:                
wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                
wxString::wxString(int) <near match>
BOINCGUIApp.cpp: In member function `virtual bool CBOINCGUIApp::OnInit()':
BOINCGUIApp.cpp:104: error: invalid conversion from `const wchar_t*' to `char'
BOINCGUIApp.cpp:104: error:   initializing argument 1 of
`std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
BOINCGUIApp.cpp:105: error: invalid conversion from `const wchar_t*' to `char'
BOINCGUIApp.cpp:105: error:   initializing argument 1 of
`std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
BOINCGUIApp.cpp:106: error: invalid conversion from `const wchar_t*' to `char'
BOINCGUIApp.cpp:106: error:   initializing argument 1 of
`std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
BOINCGUIApp.cpp: In member function `bool CBOINCGUIApp::IsBOINCCoreRunning()':
BOINCGUIApp.cpp:315: error: no matching function for call to
`RPC_CLIENT::init(const wchar_t[10])'
../lib/gui_rpc_client.h:404: note: candidates are: int RPC_CLIENT::init(const
char*, bool)
make[2]: *** [boinc_gui-BOINCBaseView.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [boinc_gui-BOINCGUIApp.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/boinc-4.32/work/boinc_public/clientgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/boinc-4.32/work/boinc_public'
make: *** [all] Error 2

!!! ERROR: sci-misc/boinc-4.32 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


Portage 2.0.51.21-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Sempron(tm)  2600+
Gentoo Base System version 1.6.11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.5-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/
ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/lamip"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts cdr crypt cups curl emboss
encode fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java
jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly
nvidia ogg oggvorbis opengl oss pdflib perl png ppds python quicktime readline
scanner sdl slang spell sse ssl svga tcpd tetex tiff truetype truetype-fonts
type1-fonts unicode usb vorbis xml2 xv zlib linguas_it userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

------- Comment #1 From Marcus D. Hanwell 2005-05-08 16:02:04 0000 -------
I have encountered this problem before. There seems to have been an issue with
wxGTK at some point, please try reemerging wxGTK, and then boinc. That should
clear it up.

------- Comment #2 From fctk86@gmail.com 2005-05-09 13:04:12 0000 -------
i tried, but i get the same error as before...

------- Comment #3 From Marcus D. Hanwell 2005-05-09 16:14:55 0000 -------
Does it build if you `USE=-X emerge -v boinc`? What version of wxGTK do you
have installed? This is a large part of the reason that boinc is still in
package.mask - it's build seems to be delicate and it requires much more
testing.

It seems to be an issue with wxGTK and the GUI code - I am using wxGTK-2.4.2-r2
here without any problmes.

------- Comment #4 From fctk86@gmail.com 2005-05-10 06:32:40 0000 -------
now i get the following error message:

t) <near match>
BOINCBaseView.cpp: In member function `virtual wxString CBOINCBaseView::OnDocGetItemAttr(long int) const':
BOINCBaseView.cpp:316: error: call of overloaded `wxString(const char[10])' is ambiguous
/usr/include/wx-2.6/wx/string.h:670: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:643: note:                 wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:640: note:                 wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                 wxString::wxString(int) <near match>
make[2]: *** [boinc_gui-BOINCBaseView.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [boinc_gui-BOINCGUIApp.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/boinc-4.32/work/boinc_public/clientgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/boinc-4.32/work/boinc_public'
make: *** [all] Error 2

!!! ERROR: sci-misc/boinc-4.32 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

------- Comment #5 From Tony Murray 2005-06-21 13:34:42 0000 -------
We should change the current ebuild to require wxgtk 2.4.  At least until they
release a version that works with wxgtk 2.6.

------- Comment #6 From Tony Murray 2005-06-21 13:53:25 0000 -------
Well, it looks like boinc 4.35 only works with wxgtk>=2.6 so we should release
a
new ebuild...

------- Comment #7 From Tony Murray 2005-06-21 23:38:39 0000 -------
Created an attachment (id=61702) [details]
boinc 4.45 ebuild

Here is a new ebuild for boinc 4.45.  They have included both of my patches
upstream, so they have been removed from the ebuild.

I also removed the bit of code that forced it to use the non-unicode version of
wxconfig hoping it has been fixed.  So if you use an unicode version of wxGTK,
please test this and report here.

------- Comment #8 From Olivier Fisette 2005-06-22 19:38:18 0000 -------
I can confirm this error is due to Unicode in wxGTK. 4.45 doesn't solve the 
problem, unfortunately (at least for me). 

------- Comment #9 From fctk86@gmail.com 2005-06-23 08:48:20 0000 -------
still won't compile...

BOINCGUIApp.cpp:104: error: invalid conversion from `const wchar_t*' to `char'
BOINCGUIApp.cpp:104: error:   initializing argument 1 of
`std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
BOINCGUIApp.cpp:105: error: invalid conversion from `const wchar_t*' to `char'
BOINCGUIApp.cpp:105: error:   initializing argument 1 of
`std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
make[2]: *** [boinc_gui-BOINCGUIApp.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/boinc-4.45/work/boinc_public/clientgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/boinc-4.45/work/boinc_public'
make: *** [all] Error 2

!!! ERROR: sci-misc/boinc-4.45 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

------- Comment #10 From Tony Murray 2005-07-25 02:14:26 0000 -------
Created an attachment (id=64234) [details]
boinc 4.72 ebuild

Ok, this compiles and works for me on systems with/without wxGTK on them and
with/without unicode support in wxgtk (this was fixed upstream, yay).  What was
breaking the build was the fact that they now try to build static binaries by
default, so we just tell it not to...

I would like to suggest this for inclusion into cvs. I will also attach id diff
vs boinc-4.32.ebuild for ease.

------- Comment #11 From Tony Murray 2005-07-25 02:16:06 0000 -------
Created an attachment (id=64235) [details]
boinc 4.32 to 4.72 diff

------- Comment #12 From fctk86@gmail.com 2005-07-26 04:16:56 0000 -------
boinc-4.72 works well... but i can't find the initscript for starting it at
boot...

------- Comment #13 From Tony Murray 2005-07-26 09:20:20 0000 -------
You should copy the init.d and conf.d scripts from the
/usr/portage/sci-misc/boinc/files/ directory.  You might also want to glance at
bug #98342, which I suggest checking into portage too.

------- Comment #14 From fctk86@gmail.com 2005-07-26 09:30:00 0000 -------
k thanks it works... anyway i think the init script should be automatically
installed when boinc-4.72 is emerged...

------- Comment #15 From Olivier Fisette 2005-08-13 17:21:37 0000 -------
Boinc 4.72 effectively fixes this and is now in Portage. Thanks to everyone 
for the feedback.