After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665923 - Build failure with glib 2.31.2 - deprecated methods
Build failure with glib 2.31.2 - deprecated methods
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
git-master
Other Linux
: Normal normal
: ---
Assigned To: gnucash-general-maint
gnucash-general-maint
Depends on:
Blocks:
 
 
Reported: 2011-12-10 20:39 UTC by Colin Law
Modified: 2018-06-29 23:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Law 2011-12-10 20:39:21 UTC
Building on Ubuntu 12.04 alpha, which has glib 2.31.2 the build fails due to deprecated methods.
Building tip of 2.4 branch from git, commit
f516b441b9cba9eea9ad444f83bb245f25d17393 [21686]ActivePerl only allows ...

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]

qofutil.c: In function 'qof_util_get_string_cache':
qofutil.c:309:9: error: 'g_cache_new' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gcache.h:47) [-Werror=deprecated-declarations]
qofutil.c: In function 'qof_util_string_cache_destroy':
qofutil.c:325:9: error: 'g_cache_destroy' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gcache.h:55) [-Werror=deprecated-declarations]
qofutil.c: In function 'qof_util_string_cache_remove':
qofutil.c:333:9: error: 'g_cache_remove' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gcache.h:60) [-Werror=deprecated-declarations]
qofutil.c: In function 'qof_util_string_cache_insert':
qofutil.c:340:9: error: 'g_cache_insert' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gcache.h:57) [-Werror=deprecated-declarations]

io-gncxml-v2.c: In function 'try_gz_open':
io-gncxml-v2.c:1479:9: error: 'g_thread_create' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use 'g_thread_new' instead [-Werror=deprecated-declarations]

sixtp-dom-parsers.c: In function 'dom_tree_to_boolean':
sixtp-dom-parsers.c:147:5: error: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172) [-Werror=deprecated-declarations]
sixtp-dom-parsers.c:152:5: error: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172) [-Werror=deprecated-declarations]

gnc-tree-model-account.c: In function 'iter_to_string':
gnc-tree-model-account.c:326: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]
gnc-tree-model-account.c:330: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]

gnc-tree-model-commodity.c: In function 'iter_to_string':
gnc-tree-model-commodity.c:321: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]
gnc-tree-model-commodity.c:325: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]

gnc-tree-model-price.c: In function 'iter_to_string':
gnc-tree-model-price.c:385: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]
gnc-tree-model-price.c:389: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]

gnc-csv-model.c: In function 'gnc_csv_parse_data_free':
gnc-csv-model.c:346:9: error: 'g_mapped_file_free' is deprecated (declared at /usr/include/glib-2.0/glib/gmappedfile.h:47): Use 'g_mapped_file_unref' instead [-Werror=deprecated-declarations]

gnucash-bin.c: In function ‘main’:
gnucash-bin.c:808:5: error: ‘g_thread_init’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations]
Comment 1 Geert Janssens 2012-01-29 20:21:06 UTC
Is this still an issue at this point ? From other messages on the mailing list, it seems you are now able to build GnuCash on Ubuntu 12.04.
Comment 2 Colin Law 2012-01-29 20:26:09 UTC
I have succeeded in building it, but only by specifying --disable-error-on-warning for configure.
Comment 3 Bob 2014-09-19 07:57:16 UTC
I have gone through the list of functions with the results below... 

guid.cpp: In function - ifdef glib version
qofutil.c: In function  No longer used
io-gncxml-v2.c: In function - ifdef glib version
sixtp-dom-parsers.c: In function - changed
gnc-tree-model-account.c: In function - ifdef glib version
gnc-tree-model-split-reg.c: In function - ifdef glib version
gnc-tree-model-owner.c: In function - ifdef glib version
gnc-tree-model-commodity.c: - ifdef glib version
gnc-tree-model-price.c: - ifdef glib version
gnc-csv-model.c: In function - changed
gnucash-bin.c: In function - ifdef glib version


I think this be closed now unless I am missing something.
Comment 4 Geert Janssens 2014-09-22 16:54:43 UTC
Checking the git history I find this has indeed been fixed in commit
https://github.com/Gnucash/gnucash/commit/02557046aa23a62c511cb59c51656ca206c2974a

This was in November 2012.
Comment 5 John Ralls 2018-06-29 23:03:39 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=665923. Please update any external references or bookmarks.