Problem building gnucash on ubuntu 12.04 alpha - g_static_private_get deprecated

Colin Law clanlaw at googlemail.com
Fri Jan 6 05:18:44 EST 2012


On 10 December 2011 20:42, Colin Law <clanlaw at googlemail.com> wrote:
> On 10 December 2011 17:08, John Ralls <jralls at ceridwen.us> wrote:
>>
>> On Dec 10, 2011, at 8:58 AM, Colin Law wrote:
>>
>>> On 10 December 2011 16:51, John Ralls <jralls at ceridwen.us> wrote:
>>>>
>>>> On Dec 10, 2011, at 8:29 AM, Colin Law wrote:
>>>>
>>>>> 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
> ...
>
> Reported bug
> https://bugzilla.gnome.org/show_bug.cgi?id=665923

Are there plans to look at this at some point?  I still cannot build
on Ubuntu 12.04 alpha (due for release in April).  I would have a go
myself but know nothing about this area of code.  I do know C though
so if it is a straightforward fix I can implement it if someone tells
me what to do.

Colin



More information about the gnucash-devel mailing list