I was compiling LyX 1.3.0 for Debian, and everything went ok up to
a point where ld got confused. It does not handle well two files,
and the corresponding libraries seem to get corrupted.  

The problem occurred at this command:

g++ -O -fno-exceptions -o lyx BufferView.o BufferView_pimpl.o
Bullet.o Chktex.o CutAndPaste.o DepTa ble.o FloatList.o Floating.o
FuncStatus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o
MenuBackend.o paragraph_funcs.o ParagraphList.o ParagraphParameters.o
Spacing.o TextCache.o Thesaur us.o ToolbarDefaults.o boost.o
boost-inst.o box.o buffer.o bufferlist.o bufferparams.o bufferview_f
uncs.o chset.o converter.o counters.o debug.o encoding.o exporter.o
gettext.o factory.o funcrequest .o importer.o intl.o iterators.o
kbmap.o kbsequence.o language.o lastfiles.o lengthcommon.o lyx_cb.
o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfind.o lyxfunc.o
lyxgluelength.o lyxlayout.o lyxlen gth.o lyxlex.o lyxlex_pimpl.o
lyxrc.o lyxrow.o lyxserver.o lyxtextclass.o lyxtextclasslist.o
lyxvc.  o main.o paragraph.o paragraph_pimpl.o ispell.o pspell.o
sgml.o tabular.o tabular-old.o tabular_fun cs.o tex-accent.o
tex-strings.o texrow.o text.o text2.o text3.o toc.o trans.o
trans_mgr.!  o undo.o un do_funcs.o vc-backend.o version.o
vspace.o mathed/.libs/libmathed.a insets/.libs/libinsets.a front
ends/.libs/libfrontends.a -lflimage /usr/local/lib/libjpeg.so -lforms
-lXpm graphics/.libs/libgraph ics.a support/.libs/libsupport.a
../boost/libs/regex/src/.libs/libboostregex.a ../boost/libs/signal
s/src/.libs/libboostsignals.a -lSM -lICE -lc -lm -L/usr/X11R6/lib
-lX11 -Wl,--rpath -Wl,/usr/local/ lib -Wl,--rpath -Wl,/usr/local/lib

chset.o(.rodata+0x8): relocation truncated to fit: GPREL32 *UND*
chset.o(.rodata+0xc): relocation truncated to fit: GPREL32 *UND*
chset.o(.rodata+0x10): relocation truncated to fit: GPREL32 *UND*

... several error messages like that...

Well, I do not know *why*, but adding a flag -Wl,-t at the end of the
g++ command line did the job and everything went ok. The dummy thing
is, it just says to the linker to trace the files, that is, print
their names as they are processed. Should have no practical effect.

For the sake of completeness, someone has any hints?

j b oliveira









Reply via email to