Greetings:
I'm trying to debug a problem that occurs at the link stage in
compiling CVS sources for Denemo. Here's the moment in question:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../intl -I../include
-I../pixmaps -DLOCALEDIR=\"/usr/local/share/locale\"
-DPKGDATADIR=\"/usr/local/share/denemo/\" -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -g -Wall -O2 -c -o lyparser.o `test -f
'lyparser.cpp' || echo './'`lyparser.cpp
/bin/sh ../libtool --mode=link g++ -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -g -Wall -O2 -o denemo articulations.o
calculatepositions.o changenotehead.o chordops.o clefdialog.o
commandfuncs.o contexts.o draw.o drawaccidentals.o drawclefs.o
drawcursor.o drawkey.o drawdynamic.o drawlilydir.o drawnotes.o
drawselection.o drawstemdir.o drawtimesig.o drawtuplets.o drawlyric.o
dynamic.o drawfigure.o exportabc.o exportmudela.o exportxml.o file.o
frogio.o gcs.o headerdialog.o hairpin.o help.o importxml.o importmidi.o
kbd-custom.o kbd-interface.o keyresponses.o keysigdialog.o
lilydirectives.o figure.o lyparserfuncs.o main.o measureops.o midi.o
moveviewport.o mousing.o barline.o view.o mwidthdialog.o objops.o
exportmidi.o instrumentname.o playback.o playbackprops.o plugin.o
prefdialog.o prefops.o processstaffname.o csoundplayback.o lyric.o
scoreops.o selectops.o staffheightdialog.o staffops.o staffpropdialog.o
drawbarline.o slurs.o timedialog.o tomeasuredialog.o tupletops.o utils.o
graceops.o runsilent.o drawgrace.o print.o exportcsound.o lylexer.o
lyparser.o froglexer.o frogparser.o -Wl,--export-dynamic -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/lib
-lxml2 -lz -lm
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -Wall -O2 -o
denemo articulations.o calculatepositions.o changenotehead.o chordops.o
clefdialog.o commandfuncs.o contexts.o draw.o drawaccidentals.o
drawclefs.o drawcursor.o drawkey.o drawdynamic.o drawlilydir.o
drawnotes.o drawselection.o drawstemdir.o drawtimesig.o drawtuplets.o
drawlyric.o dynamic.o drawfigure.o exportabc.o exportmudela.o
exportxml.o file.o frogio.o gcs.o headerdialog.o hairpin.o help.o
importxml.o importmidi.o kbd-custom.o kbd-interface.o keyresponses.o
keysigdialog.o lilydirectives.o figure.o lyparserfuncs.o main.o
measureops.o midi.o moveviewport.o mousing.o barline.o view.o
mwidthdialog.o objops.o exportmidi.o instrumentname.o playback.o
playbackprops.o plugin.o prefdialog.o prefops.o processstaffname.o
csoundplayback.o lyric.o scoreops.o selectops.o staffheightdialog.o
staffops.o staffpropdialog.o drawbarline.o slurs.o timedialog.o
tomeasuredialog.o tupletops.o utils.o graceops.o runsilent.o drawgrace.o
print.o exportcsound.o lylexer.o lyparser.o froglexer.o frogparser.o
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 -L/usr/lib /usr/lib/libxml2.so -lz -lm
lyparser.o(.bss+0x84): In function `typed_glist':
./lyparser.y:106: multiple definition of `yylloc'
lylexer.o(.bss+0x10038): first defined here
collect2: ld returned 1 exit status
make[2]: *** [denemo] Error 1
make[2]: Leaving directory `/home/dlphilp/denemo/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dlphilp/denemo'
make: *** [all] Error 2
I've followed earlier advice and removed/restored lyparser.cpp,
lyparser.h, and lylexer.cpp, but the error remains. The sources for
those files are lylexer.l and lyparser.y, but I'm ham ignorant about
flex and bison and know nothing about troubleshooting errors related to
them. Any suggestions for fixing ?
Flex 2.5.4, bison 1.35, gcc 3.2.2.
Best regards,
dp
Show replies by date