Summary: | sci-misc/boinc-6.10.18 fails to build with -Wl,--as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | Current packages | Assignee: | Tomáš Chvátal (RETIRED) <scarabeus> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | sci |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://boinc.berkeley.edu/trac/ticket/959 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Change library order |
Description
Martin von Gagern
2009-11-13 13:44:00 UTC
It's the order which is causing trouble here: ../lib/.libs/libboinc.so has to come after libboinc_crypt.a so that the linker knows what symbols to look for. And it's indeed an issue related to -Wl,--as-needed, as without it, the link succeeds even if the arguments are in the wrong order. Created attachment 210126 [details, diff] Change library order With this patch in place, I still don't get boinc compiled, but at least I reach the error messages from bug #292784, so I assume it solves the issue I wrote about above. Reported upstream: http://boinc.berkeley.edu/trac/ticket/959 Martin, i guess the package should build fine without your patch on --as-needed when you use -server, plz try. (In reply to comment #4) > Martin, i guess the package should build fine without your patch on --as-needed > when you use -server, plz try. It does. (In reply to comment #5) > (In reply to comment #4) > > without your patch on --as-needed > > It does. Sorry, misread your comment: read "with" instead of "without". Trying now without, but as the lib directory is for clients as well, as far as I understand it, this should affect a client-only build as well. Let's see. (In reply to comment #4) > Martin, i guess the package should build fine without your patch on --as-needed > when you use -server, plz try. This time for real: works. Dunno why, don't care. Thanks! Ok since i killed server build i wont apply the patch and just close this. At some point upstream might have some brain and we will introduce the server option back. Anyway i just hope they will apply it and your work didnt go to /dev/null. Cheers |