GNOME Bugzilla – Bug 344353
compile failure in gnc-main-window.c (valgrind-3.2.0, gcc 4.1.1)
Last modified: 2018-06-29 21:07:32 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -DPREFIX=\"/usr\" -DSYSCONFDIR=\"/etc/gnucash\" -DDATADIR=\"/usr/share/gnucash\" -DLIBDIR=\"/usr/lib/gnucash\" -I../../src/core-utils -I../../src/gnc-module -I../../src/engine -I../../src/backend/file -I../../src/network-utils -I../../src/app-utils -I../../src -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.8 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libglade-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -std=gnu99 -I../../lib/libqof/qof -I../../lib/libqof/qof -I/usr/include/libgoffice-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -DORBIT2=1 -pthread -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -c gnc-main-window.c -fPIC -DPIC -o .libs/gnc-main-window.o gnc-main-window.c: In function 'gnc_main_window_cmd_extensions_callgrind': gnc-main-window.c:3090: error: expected expression before ')' token gnc-main-window.c:3091: error: '_qzz_res' undeclared (first use in this function) gnc-main-window.c:3091: error: (Each undeclared identifier is reported only once gnc-main-window.c:3091: error: for each function it appears in.) gnc-main-window.c:3091: error: expected expression before ')' token gnc-main-window.c:3093: error: expected expression before ')' token gnc-main-window.c:3094: error: expected expression before ')' token make[2]: *** [gnc-main-window.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/gnucash-1.9.7/work/gnucash-1.9.7/src/gnome-utils' Source lines: CALLGRIND_START_INSTRUMENTATION(); CALLGRIND_TOGGLE_COLLECT(); In valgrind-3.2.0 <valgrind/callgrind.h>, the CALLGRIND_START_INSTRUMENTATION and CALLGRIND_TOGGLE_COLLECT macros do not take arguments. Patch to follow.
Created attachment 67008 [details] [review] gnc-valgrind.patch
This breaks the build with callgrind <= 0.10.1. I suggest the following patch. Can you test the patch for gnc-main-window.c with "#define HAVE_VALGRIND32 1" in config.h, please?
Created attachment 67056 [details] [review] extended patch
Valgrind has been pulled from the compiled sources.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=344353. Please update any external references or bookmarks.