i ran into a problem building boinc-5.4.11 on a system with both wxGTK-2.6 and wxGTK-2.8 installed. the ebuild requests 2.6 properly but configure seems to just use the latest installed version. in 5.4.11 this results in a build error since that version does not work with 2.8, but every later version is also affected. i'm not really sure how it's finding 2.8 in the first place to be honest. ebuild: if use X; then WX_GTK_VER=2.6 if use unicode; then need-wxwidgets unicode else need-wxwidgets gtk2 fi wxconf="--with-wx-config=${WX_CONFIG}" fi econf \ --enable-client \ --disable-static-client \ ${wxconf} \ $(use_enable unicode) \ $(use_enable server) \ $(use_with X x) || die "econf failed" configure: [...] ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-client --disable-static-client --with-wx-config=/usr/lib/wx/config/gtk2-unicode-debug-2.6 --enable-unicode --disable-server --with-x --build=i686-pc-linux-gnu --- Configuring BOINC 5.4.11 (Release) --- [...] checking for wx-config... /usr/lib/wx/config/gtk2-unicode-debug-2.6 checking for wxWidgets version >= 2.6.0... yes (version 2.8.6) checking for wxWidgets static library... no [...] i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -pthread -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_IODBC_ -D__WXGTK__ -I../wizards -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -pthread -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_IODBC_ -D__WXGTK__ -pthread -I../wizards -O2 -g -march=prescott -fomit-frame-pointer -pipe -I/usr/include -I/usr/include/openssl -pthread -MT boinc_gui-MainFrame.o -MD -MP -MF .deps/boinc_gui-MainFrame.Tpo -c -o boinc_gui-MainFrame.o `test -f 'MainFrame.cpp' || echo './'`MainFrame.cpp MainFrame.cpp: In member function 'bool CMainFrame::CreateNotebookPage(T)': MainFrame.cpp:623: error: invalid use of incomplete type 'struct wxImageList' /usr/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList' MainFrame.cpp:628: error: invalid use of incomplete type 'struct wxImageList' /usr/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration of 'struct wxImageList' MainFrame.cpp: In member function 'bool CMainFrame::DeleteNotebook()': MainFrame.cpp:671: warning: possible problem detected in invocation of delete operator: MainFrame.cpp:662: warning: 'pImageList' has incomplete type /usr/include/wx-2.8/wx/generic/listctrl.h:16: warning: forward declaration of 'struct wxImageList' MainFrame.cpp:671: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. make[2]: *** [boinc_gui-MainFrame.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sci-misc/boinc-5.4.11/work/boinc-5.4.11/clientgui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sci-misc/boinc-5.4.11/work/boinc-5.4.11' make: *** [all] Error 2 * * ERROR: sci-misc/boinc-5.4.11 failed.
current situation now is the client just won't be built. it looks like configure looks for a static version of wxGTK, which we don't install. dnl check for wxWidgets if test "${enable_client_release}" = yes ; then echo 'Portable client-build: checking for *static* wx-libs ...' if test "${enable_debug}" = yes ; then AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --static=yes --debug=yes) else AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --static=yes --debug=no) fi else if test "${enable_debug}" = yes ; then AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --debug=yes) else AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --debug=no) fi fi
Hi Ryan, The most recent boinc-5.10.45 seems to install fine with wxGTK-2.8 (at least for me). Could you give it a try sometime? Thanks, Markus
# ChangeLog for sci-misc/boinc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.45 2009/01/02 20:40:21 cryos Exp $ 02 Jan 2009; Marcus D. Hanwell <cryos@gentoo.org> metadata.xml: Removed myself as maintainer.
The only version in the tree currently is 6.4.5 and it works with wxwidgets as expected. so closing this one as fixed.