Problem building gnucash on ubuntu 12.04 alpha - g_static_private_get deprecated

Colin Law clanlaw at googlemail.com
Sat Dec 10 09:32:28 EST 2011


I am testing the build of gnucash on ubuntu 12.04 alpha.  I have
checkout out the 2.4 branch from git and run
./autogen.sh
./configure --prefix=/usr/bin/gnucash2.4 --enable-compile-warnings
--with-html-engine=webkit
make

I get the error:
/bin/bash ../../../libtool --tag=CC   --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../../.. -DG_LOG_DOMAIN=\"qof\"
-I../../../lib/libc -I../../../src -pthread -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include     -Werror
-Wdeclaration-after-statement -g -O2 -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations  -Wno-unused -MT guid.lo
-MD -MP -MF .deps/guid.Tpo -c -o guid.lo guid.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../..
-DG_LOG_DOMAIN=\"qof\" -I../../../lib/libc -I../../../src -pthread
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
-Werror -Wdeclaration-after-statement -g -O2 -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT guid.lo
-MD -MP -MF .deps/guid.Tpo -c guid.c  -fPIC -DPIC -o .libs/guid.o
guid.c: In function 'guid_to_string':
guid.c:680:5: error: 'g_static_private_get' is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:245): Use
'g_private_get' instead [-Werror=deprecated-declarations]
guid.c:684:9: error: 'g_static_private_set' is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:248): Use
'g_private_set' instead [-Werror=deprecated-declarations]

I am able to build ok on Ubuntu 11.10

Colin


More information about the gnucash-devel mailing list