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

Bug 217755

Summary: dev-libs/log4cpp-1.0 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.debian.org/455336
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: 1.0-gcc43.patch

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.