Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 162523

Summary: compile against dev-libs/log4cxx- crashes using >=gcc-4
Product: Gentoo Linux Reporter: pedro <god4saken>
Component: Current packagesAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: A modification of the log4cxx-0.9.7-gcc41.patch that solves this bug

Description pedro 2007-01-17 11:48:26 UTC
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 pedro 2007-01-17 11:49:43 UTC
Created attachment 107262 [details, diff]
A modification of the log4cxx-0.9.7-gcc41.patch that solves this bug
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2007-03-15 22:48:55 UTC
Fixed. Thanks!