Build Error on Trunk

Tom Browder tom.browder at gmail.com
Sat Sep 13 13:15:53 EDT 2008


On Sat, Sep 6, 2008 at 5:08 PM, Tom Browder <tom.browder at gmail.com> wrote:
> I just updated fron the trunk (r17498), configured using
> '--enable-compile-warnings', and, using gcc-4.3.1, got the following
> errors (it occurs four times in the same file, all at calls of
> G_LOCK(threads) and G_UNLOCK(threads).
>
> io-gncxml-v2.c:1351: error: dereferencing type-punned pointer will
> break strict-aliasing rules

Well, it looks like the problem is in glib, and it hasn't been solved
(see bug 316221, originally filed on 2005-09-13 with MingW gcc 3.4.4
and glib 2.6.5: <http://bugzilla.gnome.org/show_bug.cgi?id=316221>) .
One can work around the warning by a configure option:

  ./configure CFLAGS='-fno-strict-aliasing'

That will let the trunk, as well as version 2.2.6, build without
warning.  Whether that does any good is debatable.  See this gcc
thread:
  <http://gcc.gnu.org/ml/gcc-help/2006-08/msg00240.html>

-Tom


More information about the gnucash-user mailing list