Greetings,

I have attempted to compile LyX version 1.3.3 (with xforms-1.0) on a fresh
install of the latest release of Cygwin (1.5.5-1) and gcc (3.3.1-2). The
configure script runs without a hitch (with the flag
--with-extra-lib=/usr/local/lib:/usr/bin). The compile runs without error until
the final link of lyx.exe, when g++ complains about some unresolved symbols
(details below).

An identical result occurred when I tried to compile LyX version 1.3.2, and
also
when I replaced gcc-3.3 with gcc-3.2. When I used gcc-2, the compile and link
completed without problems, but the executable produced a segmentation fault
(and an apology) without displaying any windows.

When using either gcc-3.2 or -3.3, I was forced to use the configure flag
--disable-optimization in order to finish the compile without thrashing the
swapfile - despite having 512MB of RAM.

I have managed to compile xforms-1.0 as a static library, and all of the demo
programs can be made to compile (and run) after some tweaking of library orders
and paths. In particular, the libX11 dll in /usr/bin works, but the static
(.dll.a) version in /usr/lib causes the link to fail because of unresolved
(unexported?) symbols. Anyway, the unresolved symbols in LyX appear not to be
related to the xforms library.

Any suggestions for building LyX on Cygwin would be gratefully received. I
really want to use it on my laptop, which cannot run Linux because of
unsupported hardware.

Regards,
Milton Woods.

------------

g++ -mms-bitfields -Wl,--export-all-symbols -o lyx.exe BufferView.o
BufferView_p
impl.o Bullet.o Chktex.o CutAndPaste.o DepTable.o FloatList.o Floating.o
FuncSta
tus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o
par
agraph_funcs.o ParagraphList.o ParagraphParameters.o Spacing.o TextCache.o
Thesa
urus.o ToolbarDefaults.o boost.o boost-inst.o box.o buffer.o bufferlist.o
buffer
params.o bufferview_funcs.o chset.o converter.o counters.o debug.o encoding.o
ex
porter.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
lyxlengt
h.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxtextclass.o
lyxtextc
lasslist.o lyxvc.o main.o paragraph.o paragraph_pimpl.o ispell.o pspell.o
sgml.o
 tabular.o tabular-old.o tabular_funcs.o tex-accent.o tex-strings.o texrow.o
tex
t.o text2.o text3.o toc.o trans.o trans_mgr.o undo.o undo_funcs.o vc-backend.o
v
ersion.o vspace.o  -L/bin -L/lib -L/usr/X11R6/bin -L/usr/X11R6/lib
-L/usr/local/
lib -L/usr/local/xforms-1.0/lib mathed/.libs/libmathed.a
insets/.libs/libinsets.
a frontends/.libs/libfrontends.a -lflimage .libs/libimp-cygjpeg-62.a -lforms
-lX
pm graphics/.libs/libgraphics.a support/.libs/libsupport.a
../boost/libs/regex/s
rc/.libs/libboostregex.a ../boost/libs/signals/src/.libs/libboostsignals.a
../in
tl/libintl.a -lSM -lICE -lX11
TextCache.o(.ctors+0x0):TextCache.C: undefined reference to
`__GLOBAL__I__ZN9Tex
tCache7findFitEP6Bufferi'
TextCache.o(.dtors+0x0):TextCache.C: undefined reference to
`__GLOBAL__D__ZN9Tex
tCache7findFitEP6Bufferi'
lyxtextclasslist.o(.ctors+0x0):lyxtextclasslist.C: undefined reference to
`__GLO
BAL__I__ZNK16LyXTextClassList13NumberOfClassERKSs'
lyxtextclasslist.o(.dtors+0x0):lyxtextclasslist.C: undefined reference to
`__GLO
BAL__D__ZNK16LyXTextClassList13NumberOfClassERKSs'
mathed/.libs/libmathed.a(math_cursor.o)(.ctors+0x0):math_cursor.C: undefined
ref
erence to `__GLOBAL__I_theCutBuffer'
mathed/.libs/libmathed.a(math_cursor.o)(.dtors+0x0):math_cursor.C: undefined
ref
erence to `__GLOBAL__D_theCutBuffer'
mathed/.libs/libmathed.a(math_inset.o)(.ctors+0x0):math_inset.C: undefined
refer
ence to `__GLOBAL__I__ZNK9MathInset6heightEv'
mathed/.libs/libmathed.a(math_inset.o)(.dtors+0x0):math_inset.C: undefined
refer
ence to `__GLOBAL__D__ZNK9MathInset6heightEv'
frontends/.libs/libfrontends.a(FormPrint.o)(.ctors+0x0):FormPrint.C: undefined
r
eference to `__GLOBAL__I__ZN9FormPrintC2Ev'
frontends/.libs/libfrontends.a(FormPrint.o)(.dtors+0x0):FormPrint.C: undefined
r
eference to `__GLOBAL__D__ZN9FormPrintC2Ev'
frontends/.libs/libfrontends.a(FormTabular.o)(.ctors+0x0):FormTabular.C:
undefin
ed reference to `__GLOBAL__I__ZN11FormTabularC2Ev'
frontends/.libs/libfrontends.a(FormTabular.o)(.dtors+0x0):FormTabular.C:
undefin
ed reference to `__GLOBAL__D__ZN11FormTabularC2Ev'
frontends/.libs/libfrontends.a(checkedwidgets.o)(.ctors+0x0):checkedwidgets.C:
u
ndefined reference to
`__GLOBAL__I__Z19addCheckedLyXLengthR20ButtonControllerBas
eP7flobjs_S2_'
frontends/.libs/libfrontends.a(checkedwidgets.o)(.dtors+0x0):checkedwidgets.C:
u
ndefined reference to
`__GLOBAL__D__Z19addCheckedLyXLengthR20ButtonControllerBas
eP7flobjs_S2_'
collect2: ld returned 1 exit status

------------

Reply via email to