Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195677 - >=sci-misc/boinc-5.4.11 does not respect --with-wx-config
Summary: >=sci-misc/boinc-5.4.11 does not respect --with-wx-config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-13 05:46 UTC by Ryan Hill (RETIRED)
Modified: 2009-02-01 15:49 UTC (History)
2 users (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 Ryan Hill (RETIRED) gentoo-dev 2007-10-13 05:46:59 UTC
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.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-12-23 22:52:09 UTC
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
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2008-04-18 18:06:57 UTC
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
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-09 15:04:42 UTC
# 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.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-01 15:49:16 UTC
The only version in the tree currently is 6.4.5 and it works with wxwidgets as expected. so closing this one as fixed.