Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 587462

Summary: sci-misc/boinc-7.6.33 - linker errors with x11-libs/wxGTK-3.0.2.0-r3
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Sven Eden <sven.eden>
Status: RESOLVED FIXED    
Severity: normal CC: fturco, peter, redwolfe, rob, sci
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info
patch in webview lib

Description Martin von Gagern 2016-06-29 06:21:20 UTC
Created attachment 439110 [details]
build log

Upgrading boinc from 7.6.31-r3 to 7.6.33 I'm encountering linker errors:

boincmgr-NoticeListCtrl.o: In function `wxString::ImplStr(char const*, wxMBConv const&)':
/usr/include/wx-3.0/wx/string.h:477: undefined reference to `wxWebViewNameStr'
/usr/include/wx-3.0/wx/string.h:477: undefined reference to `wxWebViewBackendDefault'
/usr/include/wx-3.0/wx/string.h:477: undefined reference to `wxWebViewDefaultURLStr'
boincmgr-NoticeListCtrl.o: In function `CNoticeListCtrl::Create(wxWindow*)':
/var/tmp/portage/sci-misc/boinc-7.6.33/work/boinc-client_release-7.6-7.6.33/clientgui/NoticeListCtrl.cpp:87: undefined reference to `wxWebView::New(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, wxString const&, long, wxString const&)'
boincmgr-NoticeListCtrl.o: In function `wxEventTableEntry::wxEventTableEntry(int const&, int, int, wxEventFunctor*, wxObject*)':
/usr/include/wx-3.0/wx/event.h:3201: undefined reference to `wxEVT_WEBVIEW_NAVIGATING'
/usr/include/wx-3.0/wx/event.h:3201: undefined reference to `wxEVT_WEBVIEW_ERROR'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:683: boincmgr] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-misc/boinc-7.6.33/work/boinc-client_release-7.6-7.6.33/clientgui'
make[1]: *** [Makefile:642: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sci-misc/boinc-7.6.33/work/boinc-client_release-7.6-7.6.33'
make: *** [Makefile:546: all] Error 2
 * ERROR: sci-misc/boinc-7.6.33::gentoo failed (compile phase):
 *   emake failed

This looks like an incompatibility with the wxGTK installed, which in my case is x11-libs/wxGTK-3.0.2.0-r3 in slot 3.0, although I also have 2.8.12.1-r2 installed in slot 2.8.
Comment 1 Martin von Gagern 2016-06-29 06:21:44 UTC
Created attachment 439112 [details]
emerge --info
Comment 2 Sven Eden 2016-07-05 15:45:31 UTC
I get no errors with x11-libs/wxGTK-3.0.2.0-r2. I'll try with -r3 to see what happens.
Comment 3 Sven Eden 2016-07-05 15:51:08 UTC
Okay.

I see that the -r3 adds a patch that *removes* (!!!) the webview library from the standard libraries.

The next step for me is to come up with a patch for boinc to get along with that situation.
Comment 4 peter@prh.myzen.co.uk 2016-07-06 15:20:09 UTC
Meanwhile, a workaround is to add =x11-libs/wxGTK-3.0.2.0-r3 to package.mask. This appears to have worked here anyway.

Surely, removing a whole facility is a bigger job than a -r3 patch is meant for?
Comment 5 G.Wolfe Woodbury 2016-08-23 03:11:36 UTC
I am looking at the GNU building tools (which I have not used before) to try and find where to fix the call to wx-config.

The wx-config for 3.0* needs to be:
     wx-config --libs all

and its ooutput should be placed in the CLIENTGUILIBS variable of configure for passing down to the clientgui sub-tree.  This will make the wx-config program emit the proper libs [with webview].  I hope this give you some direction,

Meanwhile, I just massage the ./configure program after _autosetup in a local copy of the source tree.
Comment 6 Sven Eden 2016-10-26 12:03:50 UTC
Created attachment 451472 [details, diff]
patch in webview lib

This patch fixed the issue for me.

I am rather busy right now, but will add it next week unless someone answers here that this patch is not enough.

Thank you very much.
Comment 7 Sven Eden 2016-11-07 08:42:50 UTC
I have eventually managed to put the patch into commit for a pull request.

https://github.com/gentoo/gentoo/pull/2768/commits/edb3c9cb2a5d87ddb6a8847f47bc9bdb7e710e1d
Comment 8 Sven Eden 2016-11-14 08:16:40 UTC
The fix is in the tree now.
Comment 9 Craig Andrews gentoo-dev 2018-12-05 04:33:46 UTC
This patch should be upstreamed in boinc... I think the appropriate issue is https://github.com/BOINC/boinc/issues/2271