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 330615 - warning causes build failure: 'gw__scm_extras[0]' is used uninitialized
warning causes build failure: 'gw__scm_extras[0]' is used uninitialized
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
1.9.x
Other All
: Normal minor
: ---
Assigned To: Chris Lyttle
Chris Lyttle
: 330815 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-10 04:08 UTC by Rob Latham
Modified: 2018-06-29 20:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rob Latham 2006-02-10 04:08:15 UTC
Please describe the problem:
When building with the default configure flags, a compiler warning causes
compilation to abort: 

gw-engine.c: In function 'gw__tmp426_xaccQueryAddDateMatch_wrapper':
gw-engine.c:16599: warning: 'gw__scm_extras[0]' is used uninitialized in this
function

This is with gcc 4.0.2 on Ubuntu Breezy

Steps to reproduce:
1. ./configure
2. make
3. observe that 'make' fails because -Werror is specified


Actual results:
compilation fails. Warnings are treated as errors.

Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Christian Stimming 2006-02-10 09:17:22 UTC
Known problem. https://lists.gnucash.org/pipermail/gnucash-devel/2005-November/014591.html

You're compiling with gcc4 and g-wrap 1.3, right? Either
- compile against g-wrap 1.9 (instead of g-wrap-1.3.x), or
- use gcc3.x (instead of gcc4.x), or
- use CFLAGS="-Wno-uninitialized".

I will leave this bug open because it's very likely to be reported again. We will close this as NOTGNOME sometime in the future. We might need to add an extra check in configure.in for this.
Comment 2 Derek Atkins 2006-02-10 15:05:31 UTC
Note that a "workaround" is to ./configure --disable-error-on-warning -- but if you have OTHER compilation problems it might not catch it during make.  YMMV.
Comment 3 Derek Atkins 2006-02-13 05:13:23 UTC
*** Bug 330815 has been marked as a duplicate of this bug. ***
Comment 4 Derek Atkins 2006-03-03 15:58:22 UTC
I've modified configure to test for this situation and fail the configure test so you know you're running in a bad configuration.  It then outlines your options to correct it.

This should be fixed in r13454 but I'm not going to close this bug until it's been tested and shown to work (I don't have a GGC4 system handy to test the change).

Can someone test this?
Comment 5 Derek Atkins 2006-03-15 17:41:04 UTC
I tested this change and it appears to work right.  I'm closing this bug now.
Comment 6 John Ralls 2018-06-29 20:57:09 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=330615. Please update any external references or bookmarks.