Package: log4cpp
Version: 1.0-2
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.

I think the problem here is that you define a class ostringstream but
C++ already has a class with that name.  I guess you just need to
rename log4cpp's class.  Brian (CCed), can you confirm this is the
problem?

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of log4cpp_1.0-2 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I../include -I../include -g -Wall -O2 -O2 -DNDEBUG 
> -Wall -Wno-unused -pedantic -c Appender.cpp  -fPIC -DPIC -o .libs/Appender.o
> In file included from 
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/strstream:51,
>                  from ../include/log4cpp/Portability.hh:40,
>                  from PortabilityImpl.hh:12,
>                  from Appender.cpp:10:
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2:
>  warning: #warning This file includes at least one deprecated or antiquated 
> header. Please consider use of an equivalent, non-deprecated interface for 
> the requested functionality. A list of valid replacements is as follows: Use: 
> Instead of: <sstream>, basic_stringbuf <strstream>, strstreambuf <sstream>, 
> basic_istringstream <strstream>, istrstream <sstream>, basic_ostringstream 
> <strstream>, ostrstream <sstream>, basic_stringstream <strstream>, strstream 
> <unordered_set>, unordered_set <ext/hash_set>, hash_set <unordered_set>, 
> unordered_multiset <ext/hash_set>, hash_multiset <unordered_map>, 
> unordered_map <ext/hash_set>, hash_map <unordered_map>, unordered_multimap 
> <ext/hash_set>, hash_multimap <functional>, bind <functional>, binder1st 
> <functional>, bind <functional>, binder2nd <functional>, bind <functional>, 
> bind1st <functional>, bind <functional>, bind2nd <memory>, unique_ptr 
> <memory>, auto_ptr To disable this warning use -Wno-deprecated.
> In file included from PortabilityImpl.hh:12,
>                  from Appender.cpp:10:
> ../include/log4cpp/Portability.hh:42: error: using typedef-name 
> 'std::ostringstream' after 'class'
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/iosfwd:139:
>  error: 'std::ostringstream' has a previous declaration here
> make[2]: *** [Appender.lo] Error 1
> make[2]: Leaving directory `/build/tbm/log4cpp-1.0/src'
> make[1]: *** [all-recursive] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/


Reply via email to