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:
Created attachment 149763 [details, diff] 1.0-gcc43.patch Fixes the problem. Snatched from Debian.
Fixed. Thanks.