I finally managed to compile cvs on gcc 2.96 using stlport. I used an approach slightly different from Martin's, that is a small shell wrapper around gcc. This allows to use this as your compiler. The script is attached.
I needed also the attached trivial patch to compile (which I am going to commit right now). I can run both lyx-qt and lyx-xforms, but as soon as I create a new file, I get: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 25851)] 0x08285fdc in _STL::basic_streambuf<char, _STL::char_traits<char> >::sputn ( this=0x84751e0, __s=0x83cc1a3 "text not available!", __n=19) at /afs/rocq/home/preval/common/src/STLport-4.5.3/stlport/stl/_streambuf.h:435 435 __res = this->overflow(traits_type::to_int_type(__c)); Current language: auto; currently c++ (gdb) bt #0 0x08285fdc in _STL::basic_streambuf<char, _STL::char_traits<char> >::sputn ( this=0x84751e0, __s=0x83cc1a3 "text not available!", __n=19) at /afs/rocq/home/preval/common/src/STLport-4.5.3/stlport/stl/_streambuf.h:435 #1 0x0829df9d in _STL::basic_ostream<char, _STL::char_traits<char> >::_M_put_nowiden (this=0x846a380, __s=0x83cc1a3 "text not available!") at /afs/rocq/home/preval/common/src/STLport-4.5.3/stlport/stl/_ostream.c:265 #2 0x0829ca37 in _STL::basic_ostream<char, _STL::char_traits<char> > & _STL::operator<<<_STL::char_traits<char> > ([EMAIL PROTECTED], __s=0x83cc1a3 "text not available!") at /afs/rocq/home/preval/common/src/STLport-4.5.3/stlport/stl/_ostream.h:300 #3 0x0805fb1e in BufferView::Pimpl::resizeCurrentBuffer (this=0x84c8b98) at ../../lyx-devel/src/BufferView_pimpl.C:420 So basically, it dies at the first error it tries to output. Could this be a debugstream bug, or is it that I did not compile correctly? JMarc
stlport
Description: Binary data
Index: src/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v retrieving revision 1.1632 diff -u -p -r1.1632 ChangeLog --- src/ChangeLog 17 Oct 2003 09:32:41 -0000 1.1632 +++ src/ChangeLog 17 Oct 2003 14:05:01 -0000 @@ -1,3 +1,7 @@ +2003-10-14 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * lyxsocket.C: include <cerrno> + 2003-10-17 Lars Gullik Bjønnes <[EMAIL PROTECTED]> * lyxfunc.C (dispatch): remove textcache stuff Index: src/lyxsocket.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxsocket.C,v retrieving revision 1.1 diff -u -p -r1.1 lyxsocket.C --- src/lyxsocket.C 13 Oct 2003 12:25:10 -0000 1.1 +++ src/lyxsocket.C 17 Oct 2003 14:05:01 -0000 @@ -25,6 +25,7 @@ #include "support/socktools.h" #include <iostream> +#include <cerrno> using std::endl; using std::string; Index: src/support/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v retrieving revision 1.225 diff -u -p -r1.225 ChangeLog --- src/support/ChangeLog 16 Oct 2003 16:41:32 -0000 1.225 +++ src/support/ChangeLog 17 Oct 2003 14:05:01 -0000 @@ -1,3 +1,6 @@ +2003-10-14 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * socktools.C: honor CXX_GLOBAL_CSTD 2003-10-16 André Pönitz <[EMAIL PROTECTED]> Index: src/support/socktools.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/socktools.C,v retrieving revision 1.2 diff -u -p -r1.2 socktools.C --- src/support/socktools.C 13 Oct 2003 20:49:31 -0000 1.2 +++ src/support/socktools.C 17 Oct 2003 14:05:01 -0000 @@ -22,9 +22,11 @@ #include <cerrno> using std::endl; -using std::strerror; - using std::string; + +#ifndef CXX_GLOBAL_CSTD +using std::strerror; +#endif // This MACRO eppears to be defined only on Linux. #if !defined(SUN_LEN)