From: <tim...@en...> - 2006-07-08 22:29:46
|
Hi Juergen, Juergen Wieferink wrote: > Though I found some things. > First the warnings: > > parse.c:846: warning: `is_ud_function' defined but not used > plot3d.c:1159: warning: `specs' might be used uninitialized in this fun= ction > ../term/wxt.trm:112: warning: `font_setting' might be used uninitialize= d in=20 > this function > wxterminal/gp_cairo.c:1029: warning: `overprinted_width' might be used=20 > uninitialized in this function > > The first one is recently introduced, the second one seems to be > false alarm. Of the third one I've heard similar diagnose on the > list. > =20 The warnings about wxt.trm and gp_cairo.c are false alarms, but I will=20 initialize the variables to avoid the warnings. > Linking fails with: > > g++ -g -O2 -I/usr/lib/wx/include/gtk2-unicode-release-2.5=20 > -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_B= ITS=3D64=20 > -D_LARGE_FILES -I/usr/local/include/cairo -I/usr/X11R6/include=20 > -I/usr/include/libpng12 -I/usr/include/freetype2 =20 > -I/usr/local/include/pango-1.0 -I/opt/gnome/include/glib-2.0=20 > -I/opt/gnome/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSA= FE_API=20 > -I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/free= type2=20 > -I/usr/include/freetype2/config -I/opt/gnome/include/gtk-2.0=20 > -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0=20 > -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -L/u= sr/lib=20 > -Wl,-rpath,/usr/lib -L/usr/X11R6/lib -o gnuplot alloc.o axis.o breader= s.o=20 > bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o= =20 > gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o=20 > internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o=20 > plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o stan= dard.o=20 > stdfn.o tables.o term.o time.o unset.o util.o util3d.o variable.o versi= on.o =20 > gp_cairo.o wxt_gui.o -lreadline -lncurses -lz -lgd -lXpm -lX11 -ljpeg= =20 > -lfontconfig -lfreetype -lpng12 -lz -lm -pthread -L/usr/X11R6/lib =20 > -lwx_gtk2u_xrc-2.5 -lwx_gtk2u_html-2.5 -lwx_gtk2u_adv-2.5 -lwx_gtk2u_co= re-2.5=20 > -lwx_baseu_xml-2.5 -lwx_baseu_net-2.5 -lwx_baseu-2.5 -L/usr/local/lib=20 > -L/usr/X11R6/lib -lcairo -lXrender -lX11 -lXext -lpng12 -lz -lm -lfreet= ype=20 > -lfontconfig -L/usr/local/lib -L/opt/gnome/lib -lpango-1.0 -lgobject-= 2.0=20 > -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/local/lib -L/opt/gnome/lib=20 > -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1= .0=20 > -lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ld= l=20 > -lglib-2.0 -lm=20 > wxterminal/gp_cairo.c:1592: undefined reference to `pango_cairo_create_= layout' > gp_cairo.o(.text+0x18a3): In function `gp_cairo_enhanced_flush': > wxterminal/gp_cairo.c:1202: undefined reference to `pango_cairo_create_= layout' > gp_cairo.o(.text+0x19a5):wxterminal/gp_cairo.c:1167: undefined referenc= e to=20 > `pango_cairo_create_layout' > gp_cairo.o(.text+0x19f0):wxterminal/gp_cairo.c:1175: undefined referenc= e to=20 > `pango_cairo_create_layout' > gp_cairo.o(.text+0x1bf1):wxterminal/gp_cairo.c:1101: undefined referenc= e to=20 > `pango_cairo_create_layout' > gp_cairo.o(.text+0x1dc7):wxterminal/gp_cairo.c:1124: more undefined ref= erences=20 > to `pango_cairo_create_layout' follow > gp_cairo.o(.text+0x2ec6): In function `gp_cairo_draw_enhanced_text': > wxterminal/gp_cairo.c:1391: undefined reference to `pango_cairo_update_= layout' > gp_cairo.o(.text+0x2ed5):wxterminal/gp_cairo.c:1392: undefined referenc= e to=20 > `pango_cairo_show_layout' > gp_cairo.o(.text+0x3c9a): In function `gp_cairo_draw_text': > wxterminal/gp_cairo.c:637: undefined reference to `pango_cairo_create_l= ayout' > gp_cairo.o(.text+0x3e6a):wxterminal/gp_cairo.c:690: undefined reference= to=20 > `pango_cairo_update_layout' > gp_cairo.o(.text+0x3e79):wxterminal/gp_cairo.c:691: undefined reference= to=20 > `pango_cairo_show_layout' > collect2: ld returned 1 exit status > make[1]: *** [gnuplot] Fehler 1 > > > Is this a problem with the installation of the libs? > =20 I don't think so. You are missing the linking flag '-lpangocairo'. I guess you have gtk+ 2.6, not 2.8 or later. That's fine in terms of=20 what we need for the wxWidgets terminal. However, gtk+ 2.8 is dependant=20 on cairo, and was magically adding the '-lpangocairo' flag. gtk+ 2.6=20 does not depend on cairo, hence the missing flag. I've fixed that in=20 CVS. Please try to see if the problem is fixed. Well, so far your experience and your reports have been really fruitful,=20 thank you very much, and please go on ;-) Timoth=E9e |