Bug 218964 - dev-libs/xerces-c-2.8.0 fails to compile at IconvGNUTransService.cpp
Bug#: 218964 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cpp@gentoo.org Reported By: webmaster@thw-theorie.de
Component: Library
URL: 
Summary: dev-libs/xerces-c-2.8.0 fails to compile at IconvGNUTransService.cpp
Keywords:  
Status Whiteboard: 
Opened: 2008-04-22 22:37 0000
Description:   Opened: 2008-04-22 22:37 0000
When merging dev-libs/xerces-c-2.8.0 WITH the "iconv" USE flag, but WITHOUT the
"threads" USE flag, compilation fails at the file IconvGNUTransService.cpp with
the following error:

  (C++) IconvGNUTransService.o
IconvGNUTransService.cpp: In function ‘void
xercesc_2_8::reinitIconvGNUMutex()’:
IconvGNUTransService.cpp:433: error: ‘gIconvMutex’ was not declared in this
scope

Any other combination of USE flags results in successful compilation. This
error has already been fixed upstream for 3.0, see

https://issues.apache.org/jira/browse/XERCESC-1709

A modified patch which works with the current 2.8.0 ebuild is attached.

Reproducible: Always




Workaround: merge the package with

USE="-iconv" emerge -1 dev-libs/xerces-c
- or-
USE="threads" emerge -1 dev-libs/xerces-c

------- Comment #1 From Kai Blaschke 2008-04-22 22:38:46 0000 -------
Created an attachment (id=150661) [details]
Upstream patch fixing the described issue

------- Comment #2 From Tiziano Müller 2008-06-07 19:53:27 0000 -------
Added. Thanks a lot for the help!