trunk doesn't compile

Casey Cichon casey at wizkid.homelinux.net
Fri Oct 31 01:00:10 EDT 2008


Casey Cichon wrote:
> The weird part is I remember seeing this error before, but I don't
> remember how it was fixed.
>
> Making all in .
> make[5]: Entering directory
> `/home/casey/downloads/gnucash/src/register/ledger-core'
> if /bin/bash ../../../libtool --tag=CC --mode=compile gcc
> -DHAVE_CONFIG_H -I. -I. -I../../..
> -DG_LOG_DOMAIN=\"gnc.register.ledger\" -I../../../src
> -I../../../src/engine -I../../../src/gnc-module
> -I../../../src/core-utils -I../../../src/app-utils
> -I../../../src/gnome-utils -I../../../src/register/register-core
> -I../../../src/register/register-gnome -I../../../lib/libqof/qof
> -I../../../lib/libqof/qof  -I/usr/include/libglade-2.0
> -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1
> -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0
> -I/usr/include/libart-2.0 -I/usr/include/gconf/2
> -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0
> -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0
> -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0
> -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
> -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0
> -I/usr/include/freetype2 -I/usr/include/atk-1.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/libpng12
> -I/usr/include/pixman-1 -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include     -Werror -Wdeclaration-after-statement
> -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused
> -Wmissing-prototypes -Wmissing-declarations  -Wno-unused -MT
> split-register-control.lo -MD -MP -MF ".deps/split-register-control.Tpo"
> -c -o split-register-control.lo split-register-control.c; \
>         then mv -f ".deps/split-register-control.Tpo"
> ".deps/split-register-control.Plo"; else rm -f
> ".deps/split-register-control.Tpo"; exit 1; fi
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../..
> -DG_LOG_DOMAIN=\"gnc.register.ledger\" -I../../../src
> -I../../../src/engine -I../../../src/gnc-module
> -I../../../src/core-utils -I../../../src/app-utils
> -I../../../src/gnome-utils -I../../../src/register/register-core
> -I../../../src/register/register-gnome -I../../../lib/libqof/qof
> -I../../../lib/libqof/qof -I/usr/include/libglade-2.0
> -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1
> -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0
> -I/usr/include/libart-2.0 -I/usr/include/gconf/2
> -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0
> -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0
> -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0
> -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
> -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0
> -I/usr/include/freetype2 -I/usr/include/atk-1.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/libpng12
> -I/usr/include/pixman-1 -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -Werror -Wdeclaration-after-statement
> -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused
> -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT
> split-register-control.lo -MD -MP -MF .deps/split-register-control.Tpo
> -c split-register-control.c  -fPIC -DPIC -o .libs/split-register-control.o
> cc1: warnings being treated as errors
> split-register-control.c: In function â:
> split-register-control.c:1149: warning: â may be used uninitialized in
> this function
> make[5]: *** [split-register-control.lo] Error 1
> make[5]: Leaving directory
> `/home/casey/downloads/gnucash/src/register/ledger-core'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/home/casey/downloads/gnucash/src/register/ledger-core'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/casey/downloads/gnucash/src/register'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/casey/downloads/gnucash/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/casey/downloads/gnucash'
> make: *** [all] Error 2
> casey at wizkid2:~/downloads/gnucash$
>
>
> configure is just --enable-compile-warnings --enable-ofx
>
>
> Casey Cichon
> GnuCash user
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>   
Never mind .... I got it to work ........

just changed

line number: 1149 src/register/ledger-core/split-register-control.c

changed
const char *message;
to
const char *message = NULL;

now everything compiles again.

Thanks.


More information about the gnucash-devel mailing list