Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162523 - compile against dev-libs/log4cxx- crashes using >=gcc-4
Summary: compile against dev-libs/log4cxx- crashes using >=gcc-4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2007-01-17 11:48 UTC by pedro
Modified: 2007-03-15 22:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A modification of the log4cxx-0.9.7-gcc41.patch that solves this bug (log4cxx-0.9.7-gcc41.patch,873 bytes, patch)
2007-01-17 11:49 UTC, pedro
Details | Diff

Note You need to log in before you can comment on or make changes to 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!