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
Created attachment 150661 [details, diff] Upstream patch fixing the described issue
Added. Thanks a lot for the help!