Problems building 2.2.1 (svn) on openSuse 10.3

Josh Sled jsled at
Mon Oct 15 09:13:19 EDT 2007

(Trimming gnucash-user from distribution list.  This is clearly -devel traffic.)

"Davide Imbeni" <davide.imbeni at> writes:
> 2 -- The above allowed make to continue compiling... for a while.
> Next error, on which I'm currently stuck, is:
>  gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"gnc.engine\"
> -I../../lib/libc -I../../src/core-utils -I../../src -I../../src
> -I../../src/gnc-module -I../../lib/libqof/qof -I../../lib/libqof/qof
> -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
> -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2
> -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
> -Wno-unused -MT engine-helpers.lo -MD -MP -MF .deps/engine-helpers.Tpo -c
> engine-helpers.c  -fPIC -DPIC -o .libs/engine-helpers.o
> cc1: warnings being treated as errors
> engine-helpers.c: In function 'gnc_generic_to_scm':
> engine-helpers.c:2161: warning: passing argument 1 of
> 'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target type
> make[5]: *** [engine-helpers.lo] Error 1
> make[5]: Leaving directory `/usr/local/src/gnucash-svn/src/engine'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/usr/local/src/gnucash-svn/src/engine'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/usr/local/src/gnucash-svn/src/engine'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/gnucash-svn/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/gnucash-svn'
> make: *** [all] Error 2
> slib and swig are obviously installed.
> Any suggestions?

This is a "new" warning seen by using gcc-4.2.  As building is generally done
with -Werror, such warnings are promoted to errors, as you're seeing.

You'll need to re-run configure with `--disable-error-on-warning` to let the
warnings pass as such until such time as changes are made to build "clean"
with gcc-4.2.  Better yet, patches to fix the problems would be great.

...jsled - a=jsled;; echo ${a}@${b}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : 

More information about the gnucash-devel mailing list