On Sat, Sep 16, 2006 at 07:32:17PM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | There's still this compile problem with anything using gzip > | strams with gcc 4.0.2 (i.e. stock SuSE 10.0 compiler). > | > | It complains about the anonymity of the enum in > | boost/iostreams/filter/symmetric.hpp:234 > | > | If it gets a name (anyh name for that matter) it'll compile. > | > | I have no idea whether boost or gcc is wrong here. > > I cannot remember having seen that problem. You have to show some > more...
I send the error message alraedy a few days ago: [EMAIL PROTECTED]:/usr/src/lyx/build/src > make buffer.o if g++ -DHAVE_CONFIG_H -I. -I../../trunk/src -I. -Winvalid-pch --include=../../trunk/src/pch.h -I../../trunk/boost -Wextra -Wall -I/usr/X11R6/include -g -O -MT buffer.o -MD -MP -MF ".deps/buffer.Tpo" -c -o buffer.o ../../trunk/src/buffer.C; \ then mv -f ".deps/buffer.Tpo" ".deps/buffer.Po"; else rm -f ".deps/buffer.Tpo"; exit 1; fi ../../trunk/src/buffer.C:1441:2: warning: #warning this function should be moved to buffer_pimpl.C ../../trunk/boost/boost/iostreams/filter/gzip.hpp:135: warning: unused parameter âcommentâ ../../trunk/boost/boost/iostreams/filter/gzip.hpp:135: warning: unused parameter âcommentâ ../../trunk/boost/boost/iostreams/filter/symmetric.hpp: In member function âstd::streamsize boost::iostreams::symmetric_filter<SymmetricFilter, Alloc>::read(Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, SymmetricFilter = boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, Alloc = std::allocator<char>]â: ../../trunk/boost/boost/iostreams/filter/gzip.hpp:199: instantiated from âstd::streamsize boost::iostreams::basic_gzip_compressor<Alloc>::read(Source&, char*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, Alloc = std::allocator<char>]â ../../trunk/boost/boost/iostreams/read.hpp:215: instantiated from âstatic std::streamsize boost::iostreams::detail::read_filter_impl<boost::iostreams::multichar_tag>::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]â ../../trunk/boost/boost/iostreams/read.hpp:56: instantiated from âstd::streamsize boost::iostreams::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]â ../../trunk/boost/boost/iostreams/detail/adapter/concept_adapter.hpp:247: instantiated from âstatic std::streamsize boost::iostreams::detail::flt_wrapper_impl<boost::iostreams::input>::read(Filter&, Source*, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Filter = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]â ../../trunk/boost/boost/iostreams/detail/adapter/concept_adapter.hpp:74: instantiated from âstd::streamsize boost::iostreams::detail::concept_adapter<T>::read(typename boost::iostreams::char_type_of<T>::type*, std::streamsize, Source*) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >]â ../../trunk/boost/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:250: instantiated from âtypename boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::underflow() [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Tr = std::char_traits<char>, Alloc = std::allocator<char>, Mode = boost::iostreams::output]â ../../trunk/src/buffer.C:1636: instantiated from here ../../trunk/boost/boost/iostreams/filter/symmetric.hpp:112: error: âboost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, std::allocator<char> >::<anonymous enum>â is/uses >anonymous type [***************] ../../trunk/boost/boost/iostreams/filter/symmetric.hpp:112: error: trying to instantiate âtemplate<class T> struct boost::is_integralâ ../../trunk/boost/boost/iostreams/filter/symmetric.hpp:124: error: âboost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, std::allocator<char> >::<anonymous enum>â is/uses >anonymous type ../../trunk/boost/boost/iostreams/filter/symmetric.hpp:124: error: trying to instantiate âtemplate<class T> struct boost::is_integralâ ../../trunk/boost/boost/iostreams/filter/symmetric.hpp:131: error: âboost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, std::allocator<char> >::<anonymous enum>â is/uses >anonymous type ../../trunk/boost/boost/iostreams/filter/symmetric.hpp:131: error: trying to instantiate âtemplate<class T> struct boost::is_integralâ make: *** [buffer.o] Error 1 Note that this explicitly complains about that anonymous type. > And probably boost-devel should get a heads up unless they have > already got one. I trust you'll do that for me... Andre' >