Bug 162523 - compile against dev-libs/log4cxx- crashes using >=gcc-4
Bug#: 162523 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cpp@gentoo.org Reported By: god4saken@gmail.com
Component: Applications
URL: 
Summary: compile against dev-libs/log4cxx- crashes using >=gcc-4
Keywords:  
Status Whiteboard: 
Opened: 2007-01-17 11:48 0000
Description:   Opened: 2007-01-17 11:48 0000
The TCHAR macro is twice defined in a log4cxx include file, I submit here a
patch for including this macro into a #ifdef sentence that solves the error

Reproducible: Always

Steps to Reproduce:
1. emerge \>=gcc-4 log4cxx
2. Create a program in c++ that uses log4cxx
3. Compile it with -llog4cxx

Actual Results:  
error: multiple types in one declaration

Expected Results:  
no errors

------- Comment #1 From pedro 2007-01-17 11:49:43 0000 -------
Created an attachment (id=107262) [details]
A modification of the log4cxx-0.9.7-gcc41.patch that solves this bug

------- Comment #2 From Tiziano Müller 2007-03-15 22:48:55 0000 -------
Fixed. Thanks!