With the compiler from gcc_old you can only compile Programs that need nothing more then libstdc++. So compiling lyx with Qt interface is out of the question unless you also compile Qt with gcc 2.95.3. Make sure that version of Qt doesn't overwrite the already installed version, otherwise all other programs that need Qt will stop to work.
Any idea why I can not build QT 3.2.1 with gcc-2.95. Everything is going fine until I reached a relocation error ! ... ... g++ -Wl,-rpath,/home/stefan/qt/qt-3.2.1-gcc.295/lib -shared -Wl,-soname,libqui.so.1 -Wl,-rpath,/home/stefan/qt-x11-free-3.2.1/lib -o libqui.so.1.0.0 .obj/release-shared-mt/qwidgetfactory.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/uib.o .obj/release-shared-mt/database.o .obj/release-shared-mt/moc_database2.o -L/home/stefan/qt-x11-free-3.2.1/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lqt-mt -lGLU -lGL -lXmu -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread ln -s libqui.so.1.0.0 libqui.so ln -s libqui.so.1.0.0 libqui.so.1 ln -s libqui.so.1.0.0 libqui.so.1.0 rm -f ../../../lib/libqui.so.1.0.0 rm -f ../../../lib/libqui.so rm -f ../../../lib/libqui.so.1 rm -f ../../../lib/libqui.so.1.0 mv -f libqui.so.1.0.0 libqui.so libqui.so.1 libqui.so.1.0 ../../../lib/ gmake[4]: Leaving directory `/home/stefan/qt-x11-free-3.2.1/tools/designer/uilib' cd designer && /usr/bin/gmake -f Makefile gmake[4]: Entering directory `/home/stefan/qt-x11-free-3.2.1/tools/designer/designer' /home/stefan/qt-x11-free-3.2.1/bin/uic -L /home/stefan/qt-x11-free-3.2.1/plugins listboxeditor.ui -o listboxeditor.h /home/stefan/qt-x11-free-3.2.1/bin/uic: relocation error: /home/stefan/qt-x11-free-3.2.1/bin/uic: undefined symbol: _7QString.shared_null gmake[4]: *** [listboxeditor.h] Error 127 gmake[4]: Leaving directory `/home/stefan/qt-x11-free-3.2.1/tools/designer/designer' gmake[3]: *** [sub-designer] Error 2 gmake[3]: Leaving directory `/home/stefan/qt-x11-free-3.2.1/tools/designer' gmake[2]: *** [sub-designer] Error 2 gmake[2]: Leaving directory `/home/stefan/qt-x11-free-3.2.1/tools' gmake[1]: *** [sub-tools] Error 2 gmake[1]: Leaving directory `/home/stefan/qt-x11-free-3.2.1' gmake: *** [init] Error 2 stefan@jupiter:~/qt-x11-free-3.2.1> stefan