Talk:RedHat

From GnuCash
Jump to: navigation, search

Compiling GnuCash trunk source, using '--enable-compile-warnings', under gcc-4.3.1 results in error messages like the following:

 io-gncxml-v2.c:1351: error: dereferencing type-punned pointer will
 break strict-aliasing rules

A discussion of the source of the error starts on the users mailing list at <https://lists.gnucash.org/pipermail/gnucash-user/2008-September/026543.html>; the thread later moves to the developers mailing list starting at <https://lists.gnucash.org/pipermail/gnucash-devel/2008-September/023876.html>.

To "cure" the problem, use the following configure line:

./configure CFLAGS='-fno-strict-aliasing' --enable-compile-warnings

Tom Browder