Try this:
Find "sstream" in configure and configure.in and get rid of it...
Rebuild.
YMMV.
edscott wrote:
>
> Hi,
>
> Before I mail to the developers list, I would like to share some redhat-7.0
> problems with LyX, to see if anybody has hacked a way around them. If not,
> here is a story for you to be ware of potential problems. You might be left
> without a working LyX.
>
> I updated to redhat-7.0 and compiled LyX 1.1.5fix2 and kept on using LyX
> without any troubles. But then I updated my system with everything from the
> update directory from a redhat mirror: pub/redhat/updates/7.0/i386/. Among
> the updates is glibc-2.1.94-3 for the redhat gcc-2.96-54 release (funny, the
> guys at gnu say there is no such thing as gcc-2.96).
>
> After updating, LyX 1.1.5fix2 will crash without even a core dump if there is
> any included file in the lyx document you try to open. If you create a new
> document and press the include menu: it crashes the same way. That is as far
> as I got before I tried to recompile.
>
> With the updated glibc, compilation of LyX 1.1.5.fix2 fails, as well as
> compilation of 1.1.6pre1. Has anyone had any luck with the shapshot versions
> of klyx?
>
> Edscott Wilson Garcia
>
> --------
>
> Compilation details:
>
> (redhat-7.0 kernel=2.2.16-22)
>
> I try to recompile LyX 1.1.5fix2 and it fails with:
> ------------------------------
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../ -isystem
> /usr/X11R6/include -g -O2 -fno-rtti -fno-exceptions -c formula.C -o formula.o
> In file included from formula.C:20:
> /usr/include/g++-3/sstream: In method `string stringstreambase::str ()
> const':
> /usr/include/g++-3/sstream:102: taking dynamic typeid of object with
> -fno-rtti
> /usr/include/g++-3/sstream: In method `void stringstreambase::str
> (const string &)':
> /usr/include/g++-3/sstream:107: taking dynamic typeid of object with
> -fno-rtti
> make[3]: *** [formula.lo] Error 1
> make[3]: Leaving directory `/home/system/src/lyx-1.1.5fix2/src/mathed'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/system/src/lyx-1.1.5fix2/src'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory `/home/system/src/lyx-1.1.5fix2/src'
> make: *** [all-recursive] Error 1
> ------------------------------
>
> O well, I guess I should try LyX 1.1.6pre1. But here again it fails with:
> ------------------------------
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../ -I../..
> -I../.. -I../../boost -isystem /usr/X11R6/include -g -O -fno-rtti
> -fno-exceptions -W -Wall -Wconversion -Winline -c formula.C -o formula.o
> In file included from ../../src/Lsstream.h:17,
> from formula.C:19:
> /usr/include/g++-3/sstream: In method `string stringstreambase::str ()
> const':
> /usr/include/g++-3/sstream:102: taking dynamic typeid of object with
> -fno-rtti
> /usr/include/g++-3/sstream: In method `void stringstreambase::str
> (const string &)':
> /usr/include/g++-3/sstream:107: taking dynamic typeid of object with
> -fno-rtti
> /usr/include/g++-3/sstream: In method `int stringbuf::sync ()':
> /usr/include/g++-3/sstream:171: warning: comparison between signed and
> unsigned
> integer expressions
> In file included from formula.C:30:
> ../../src/minibuffer.h: At top level:
> ../../src/minibuffer.h:17: using directive `Object' introduced
> ambiguous type `_ObjectRec *'
> make[3]: *** [formula.lo] Error 1
> make[3]: Leaving directory `/home/system/src/lyx-1.1.6pre1/src/mathed'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/system/src/lyx-1.1.6pre1/src'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory `/home/system/src/lyx-1.1.6pre1/src'
>
> make: *** [all-recursive] Error 1
> ------------------------------
>
> So let's try the klyx snapshot of 20001005. It compiles OK, but when I try to
> execute, it fails to run with:
> ------------------------
> klyx: kcmdlineargs.cpp:140: void KCmdLineArgs::init (int, char **, const
> KAboutData *, bool): Assertion `argsList == 0' failed.
> Aborted
> -----------------------
>
> Oh-oh. I'm off to get a more recent snapshop, but ftp.kde.org seems to be
> overloaded. Back to redhat-6.2?
--
Wai-Sun "Squidster" Chia
Unix/Web Developer
Professional Services