After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344353 - compile failure in gnc-main-window.c (valgrind-3.2.0, gcc 4.1.1)
compile failure in gnc-main-window.c (valgrind-3.2.0, gcc 4.1.1)
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
1.9.x
Other Linux
: Normal normal
: ---
Assigned To: David Hampton
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2006-06-09 01:46 UTC by Ed Catmur
Modified: 2018-06-29 21:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
gnc-valgrind.patch (662 bytes, patch)
2006-06-09 01:48 UTC, Ed Catmur
none Details | Review
extended patch (1.40 KB, patch)
2006-06-09 15:29 UTC, Andreas Köhler
none Details | Review

Description Ed Catmur 2006-06-09 01:46:44 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.
Comment 1 Ed Catmur 2006-06-09 01:48:21 UTC
Created attachment 67008 [details] [review]
gnc-valgrind.patch
Comment 2 Andreas Köhler 2006-06-09 15:27:53 UTC
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?
Comment 3 Andreas Köhler 2006-06-09 15:29:03 UTC
Created attachment 67056 [details] [review]
extended patch
Comment 4 David Hampton 2006-06-09 21:37:48 UTC
Valgrind has been pulled from the compiled sources.
Comment 5 John Ralls 2018-06-29 21:07:32 UTC
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.