Bug 165434 - dev-libs/xalan-c-1.10.0 fails to compile with --as-needed
Bug#: 165434 Product:  Gentoo Linux Version: 2006.1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cpp@gentoo.org Reported By: polynomial-c@gentoo.org
Component: Development
URL:  https://issues.apache.org/jira/browse/XALANC-643
Summary: dev-libs/xalan-c-1.10.0 fails to compile with --as-needed
Keywords:  
Status Whiteboard: 
Opened: 2007-02-05 12:08 0000
Description:   Opened: 2007-02-05 12:08 0000
Hi,

when trying to emerge dev-libs/xalan-c-1.10.0 with --as-needed LDFLAG,
compilation bombs out short after beginning. I'll attack the errormessage.

Cheers
Poly-C

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Lars Wendler (Polynomial-C) 2007-02-05 12:10:57 0000 -------
Created an attachment (id=109223) [details]
emerge --info

------- Comment #2 From Lars Wendler (Polynomial-C) 2007-02-05 12:11:44 0000 -------
Created an attachment (id=109225) [details]
xalan-c build errormessages

------- Comment #3 From Lars Wendler (Polynomial-C) 2007-02-05 12:17:16 0000 -------
whoops, funny typo :) I meant "attach" not "attack" ;)

------- Comment #4 From Alex 2007-03-17 15:31:03 0000 -------
Confirmed here too.

------- Comment #5 From Daniel Lin 2007-03-31 19:38:23 0000 -------
Created an attachment (id=115078) [details]
xalan-c--as-needed.patch

This patch should fix the build.

------- Comment #6 From Lars Wendler (Polynomial-C) 2007-04-01 02:01:42 0000 -------
Patch works for me. Thank you Daniel.

------- Comment #7 From Petteri Räty 2007-05-18 08:52:37 0000 -------
(In reply to comment #5)
> Created an attachment (id=115078) [edit] [details]
> xalan-c--as-needed.patch
> 
> This patch should fix the build.
> 

Adjusted the patch for trunk and reported upstream. To be on the safe side you
might want to comment on the bug giving ASF your consent to use it too.
https://issues.apache.org/jira/browse/XALANC-643

------- Comment #8 From Petteri Räty 2007-05-18 09:23:35 0000 -------
(In reply to comment #7)
> 
> Adjusted the patch for trunk and reported upstream. To be on the safe side you
> might want to comment on the bug giving ASF your consent to use it too.
> https://issues.apache.org/jira/browse/XALANC-643
> 

Patch committed as there has been no response from the cpp herd in a month. I
also fixed LICENSE to Apache-2.0.

------- Comment #9 From Jakub Moc (RETIRED) 2007-05-18 11:21:33 0000 -------
*** Bug 178981 has been marked as a duplicate of this bug. ***