Problem building gnucash on ubuntu 12.04 alpha - g_static_private_get deprecated

Colin Law clanlaw at googlemail.com
Sat Dec 10 11:29:19 EST 2011


On 10 December 2011 14:32, Colin Law <clanlaw at googlemail.com> wrote:
> 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]

The version of glib is 2.31.2.  The version on Ubuntu 11.10 that
compiles ok is 2.30.0

Colin



More information about the gnucash-devel mailing list