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
|
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
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.
i tried, but i get the same error as before...
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.
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.
We should change the current ebuild to require wxgtk 2.4. At least until they
release a version that works with wxgtk 2.6.
Well, it looks like boinc 4.35 only works with wxgtk>=2.6 so we should release
a
new ebuild...
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.
I can confirm this error is due to Unicode in wxGTK. 4.45 doesn't solve the
problem, unfortunately (at least for me).
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.
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.
boinc-4.72 works well... but i can't find the initscript for starting it at
boot...
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.
k thanks it works... anyway i think the init script should be automatically
installed when boinc-4.72 is emerged...
Boinc 4.72 effectively fixes this and is now in Portage. Thanks to everyone
for the feedback.