Bug 128605 - sys-devel/distcc --as-needed fix
Bug#: 128605 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: lisa@gentoo.org Reported By: darktama@iinet.net.au
Component: Ebuilds
URL: 
Summary: sys-devel/distcc --as-needed fix
Keywords:  
Status Whiteboard: 
Opened: 2006-04-02 23:36 0000
Description:   Opened: 2006-04-02 23:36 0000
sys-devel/distcc-2.18.3-r7 fails to build with -Wl,--as-needed in LDFLAGS.

Patches on the way.

------- Comment #1 From Ben Skeggs 2006-04-02 23:38:35 0000 -------
Created an attachment (id=83786) [details]
Fix library ordering in Makefile.in

------- Comment #2 From Ben Skeggs 2006-04-02 23:39:06 0000 -------
Created an attachment (id=83787) [details]
Patch to ebuild

------- Comment #3 From Lisa Seelye (RETIRED) 2006-04-03 04:30:22 0000 -------
Can you post emerge info too please and where the build fails.

------- Comment #4 From Lisa Seelye (RETIRED) 2006-04-03 04:38:30 0000 -------
Further(In reply to comment #1)
> Created an attachment (id=83786) [edit] [details]
> Fix library ordering in Makefile.in
> 

What exactly does this patch do? How/In what way does it solve the problem?

------- Comment #5 From Ben Skeggs 2006-04-03 08:11:35 0000 -------
See http://www.gentoo.org/proj/en/qa/asneeded.xml.  In particular, the section
titled "The importance of linking order".

The patch just moves the distcc monitor object files *before* the libraries
they link with.  When --as-needed is used, failure to do so will cause "missing
symbol" errors.  But, the link I posted explains it better than I do.

------- Comment #6 From Steev Klimaszewski 2006-04-04 02:39:00 0000 -------
This patch is only needed when the gnome useflag is in use

------- Comment #7 From Lisa Seelye (RETIRED) 2006-04-15 09:11:23 0000 -------
Sorry it took so long, I was waiting on feedback from another dev. Fixed in
CVS.