Hello, I have the same error executing LyX after applying Peter's patch and trying Georg's workaround.
Trying to go the autotools way leads to an error in the ld phase : g++ -g -O -o lyx-qt4 main.o Bidi.o BufferView.o BufferView_pimpl.o Bullet.o BranchList.o Chktex.o Color.o CutAndPaste. o DepTable.o FloatList.o Floating.o FontIterator.o FuncStatus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction .o MenuBackend.o ParagraphParameters.o PrinterParams.o Spacing.o Thesaurus.o ToolbarBackend.o author.o boost.o box.o b uffer.o buffer_funcs.o bufferlist.o bufferparams.o bufferview_funcs.o changes.o chset.o converter.o counters.o coordca che.o cursor.o cursor_slice.o debug.o dimension.o dociterator.o encoding.o errorlist.o exporter.o gettext.o factory.o format.o funcrequest.o graph.o importer.o intl.o insetiterator.o kbmap.o kbsequence.o language.o session.o lengthcommo n.o lyx_cb.o lyx_main.o lyx_sty.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o lyxlex.o lyxle x_pimpl.o lyxrc.o lyxrow.o lyxrow_funcs.o lyxserver.o lyxsocket.o lyxtextclass.o lyxtextclasslist.o lyxvc.o messages.o metricsinfo.o mover.o output.o outputparams.o output_docbook.o output_latex.o output_plaintext.o paragraph.o paragrap h_funcs.o paragraph_pimpl.o pariterator.o ispell.o SpellBase.o rowpainter.o sgml.o tabular.o tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o TocBackend.o toc.o trans.o trans_mgr.o undo.o vc-backend.o version.o vspace.o -L/usr/lib/qt4 mathed/.libs/libmathed.a insets/.libs/libinsets.a frontends/.libs/libfrontends.a frontends/qt4/.libs/libqt4. a -L/home/sesse/nmu/qt4-x11-4.1.4/lib -L/usr/X11R6/lib -lQtGui -laudio -lXt -lpng -lQtCore -lpthread -lXi -lXrender -l Xrandr -lXcursor -lXinerama /usr/lib/libfreetype.so -lfontconfig -lXext -ldl frontends/controllers/.libs/libcontrollers.a graphics/.libs/libgraphics.a support/.libs/libsupport.a ../boost/libs/regex/src/.libs/libboost_regex.a ../boost/li bs/signals/src/.libs/libboost_signals.a ../boost/libs/filesystem/src/.libs/libboost_filesystem.a ../boost/libs/iostrea ms/src/.libs/libboost_iostreams.a /usr/lib/libAiksaurus.so -lSM -lICE -lc -lm -lX11 -lz insets/.libs/libinsets.a(insetwrap.o): In function `__gnu_cxx::new_allocator<CursorSlice>::deallocate(CursorSlice*, un signed int)': /usr/local/src/lyx-cvs/lyx-devel/src/insets/insetwrap.C:49: multiple definition of `(anonymous namespace)::floatname(s td::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, BufferParams const&)' insets/.libs/libinsets.a(insetfloat.o):/usr/local/src/lyx-cvs/lyx-devel/src/insets/insetfloat.C:119: first defined here /usr/bin/ld: Warning: size of symbol `(anonymous namespace)::floatname(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, BufferParams const&)' changed from 2850 in insets/.libs/libinsets.a(insetfloat.o) to 3717 in insets/.libs/libinsets.a(insetwrap.o) collect2: ld returned 1 exit status