Hi all, I have upgraded my gcc3 to 3.0.4 and trying to compile all the older versions of lyx prior to 1.0.0.
Until the moment I have succeed compiling all the 1.0.x series, with one small change (that I have reported yesterday). I configure like this: CC=gcc3 CXX=g++3 ./configure --program-suffix=-1.0.0 --disable-nls And then: time make -j4 1.0.0: real 1m53.720s user 1m49.330s sys 0m4.100s 1.0.1: real 1m56.946s user 1m52.570s sys 0m4.120s 1.0.2: real 1m56.884s user 1m53.010s sys 0m3.850s 1.0.3: real 1m58.431s user 1m53.870s sys 0m4.310s 1.0.4: real 2m0.737s user 1m56.810s sys 0m3.660s The problem comes when I try to compile the 1.1 series, I have problems with 1.1.2, 1.1.4, 1.1.5* I attach the log that I get with errors. Since this happens in DebugStream do you have any clue Lars? Should I upgrade my compiler? I'm not joking here. :-) Since 3.0.4 appears not to fulfill the modern stl stream condition that you imposed. Any hints? -- José Abílio
make[3]: Entering directory `/home/jamatos/lyx/lyx-1.1.2.old/src/support' g++3 -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I/usr/X11R6/include -g -O2 -fno-exceptions -fno-rtti -c DebugStream.C /usr/include/g++-v3/bits/std_streambuf.h: In member function `virtual int teebuf::sync()': /usr/include/g++-v3/bits/std_streambuf.h:461: `int std::basic_streambuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:70: within this context /usr/include/g++-v3/bits/std_streambuf.h:461: `int std::basic_streambuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:71: within this context /usr/include/g++-v3/bits/streambuf.tcc: In member function `virtual streamsize teebuf::xsputn(const char*, int)': /usr/include/g++-v3/bits/streambuf.tcc:155: `streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, int) [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:80: within this context /usr/include/g++-v3/bits/streambuf.tcc:155: `streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, int) [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:81: within this context /usr/include/g++-v3/bits/std_streambuf.h: In member function `virtual int teebuf::overflow(int)': /usr/include/g++-v3/bits/std_streambuf.h:501: `typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type = _Traits::eof()) [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:90: within this context /usr/include/g++-v3/bits/std_streambuf.h:501: `typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type = _Traits::eof()) [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:91: within this context /usr/include/g++-v3/bits/std_streambuf.h: In member function `virtual int debugbuf::sync()': /usr/include/g++-v3/bits/std_streambuf.h:461: `int std::basic_streambuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:113: within this context /usr/include/g++-v3/bits/streambuf.tcc: In member function `virtual streamsize debugbuf::xsputn(const char*, int)': /usr/include/g++-v3/bits/streambuf.tcc:155: `streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, int) [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:121: within this context /usr/include/g++-v3/bits/std_streambuf.h: In member function `virtual int debugbuf::overflow(int)': /usr/include/g++-v3/bits/std_streambuf.h:501: `typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type = _Traits::eof()) [with _CharT = char, _Traits = std::char_traits<char>]' is protected DebugStream.C:129: within this context DebugStream.C: At global scope: DebugStream.C:140: field `fbuf' has incomplete type DebugStream.C: In constructor `DebugStream::DebugStream(const char*, Debug::type)': DebugStream.C:155: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C:157: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C: In member function `void DebugStream::logFile(const char*)': DebugStream.C:173: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C:177: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C:179: `struct DebugStream::debugstream_internal' has no member named `fbuf' make[3]: *** [DebugStream.o] Error 1 make[3]: Target `all' not remade because of errors. make[3]: Leaving directory `/home/jamatos/lyx/lyx-1.1.2.old/src/support' make[3]: Entering directory `/home/jamatos/lyx/lyx-1.1.2.old/src' g++3 -DHAVE_CONFIG_H -I. -I. -I. -I../images -I/usr/X11R6/include -g -O2 -fno-exceptions -fno-rtti -c vspace.C /usr/include/g++-v3/bits/stl_iterator_base_types.h: In instantiation of `std::iterator_traits<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': /usr/include/g++-v3/bits/stl_iterator_base_funcs.h:171: instantiated from `void std::advance(_InputIterator&, _Distance) [with _InputIterator = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Distance = int]' vspace.C:76: instantiated from here /usr/include/g++-v3/bits/stl_iterator_base_types.h:140: no type named `iterator_category' in `class std::basic_string<char, std::char_traits<char>, std::allocator<char> >' /usr/include/g++-v3/bits/stl_iterator_base_funcs.h: In function `void std::advance(_InputIterator&, _Distance) [with _InputIterator = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Distance = int]': vspace.C:76: instantiated from here /usr/include/g++-v3/bits/stl_iterator_base_funcs.h:171: no matching function for call to `iterator_category(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' make[3]: *** [vspace.o] Error 1