Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217755 - dev-libs/log4cpp-1.0 fails w/ gcc-4.3.0
Summary: dev-libs/log4cpp-1.0 fails w/ gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL: http://bugs.debian.org/455336
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-04-15 05:14 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-05-07 08:29 UTC (History)
1 user (show)

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


Attachments
1.0-gcc43.patch (1.0-gcc43.patch,1.14 KB, patch)
2008-04-15 05:15 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-15 05:14:31 UTC
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -I../include -pthread -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -O2 -DNDEBUG -Wall -Wno-unused -pedantic -MT BasicLayout.lo -MD -MP -MF .deps/BasicLayout.Tpo -c BasicLayout.cpp  -fPIC -DPIC -o .libs/BasicLayout.o
mv -f .deps/RemoteSyslogAppender.Tpo .deps/RemoteSyslogAppender.Plo
/bin/bash ../libtool --tag=CXX   --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -I../include    -pthread -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -O2 -DNDEBUG -Wall -Wno-unused -pedantic -MT PatternLayout.lo -MD -MP -MF .deps/PatternLayout.Tpo -c -o PatternLayout.lo PatternLayout.cpp
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -I../include -pthread -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -O2 -DNDEBUG -Wall -Wno-unused -pedantic -MT PatternLayout.lo -MD -MP -MF .deps/PatternLayout.Tpo -c PatternLayout.cpp  -fPIC -DPIC -o .libs/PatternLayout.o
BasicLayout.cpp:37: error: expected constructor, destructor, or type conversion before ‘<’ token
make[1]: *** [BasicLayout.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
PatternLayout.cpp: In member function ‘virtual void log4cpp::PatternLayout::setConversionPattern(const std::string&)’:
PatternLayout.cpp:373: error: call of overloaded ‘abs(int&)’ is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:103: note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:107: note:                 long double std::abs(long double)
make[1]: *** [PatternLayout.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/log4cpp-1.0/work/log4cpp-1.0/src'
make: *** [all-recursive] Error 1


Reproducible: Always

Steps to Reproduce:
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-15 05:15:28 UTC
Created attachment 149763 [details, diff]
1.0-gcc43.patch

Fixes the problem. Snatched from Debian.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2008-05-07 08:29:46 UTC
Fixed. Thanks.