Build Error on Trunk

David Reiser dbreiser at earthlink.net
Sat Sep 13 13:48:30 EDT 2008


On Sep 13, 2008, at 1:15 PM, Tom Browder wrote:

> 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>) .

It hasn't been solved, but the change that triggered the complaint has  
been reverted since glib 2.16.4 (2.16.2 and 2.16.3 have the change  
that triggered this behavior). http://bugzilla.gnome.org/show_bug.cgi?id=316221#c29

>
> 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
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

--
David Reiser
dbreiser at earthlink.net






More information about the gnucash-user mailing list