Bug 2261300

Summary: libaccounts-glib: FTBFS in Fedora rawhide/f40
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: libaccounts-glibAssignee: Rex Dieter <rdieter>
Status: CLOSED COMPLETED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 42CC: kde-sig, ksurma, mhroncok, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-17 12:45:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2231791, 2244836    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2024-01-29 20:27:19 UTC
libaccounts-glib failed to build from source in Fedora rawhide/f40

https://koji.fedoraproject.org/koji/taskinfo?taskID=112311762


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
Please fix libaccounts-glib at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
libaccounts-glib will be orphaned. Before branching of Fedora 41,
libaccounts-glib will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2024-01-29 20:27:25 UTC
Created attachment 2012400 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2024-01-29 20:27:30 UTC
Created attachment 2012401 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2024-01-29 20:27:34 UTC
Created attachment 2012402 [details]
state.log

Comment 4 Miro Hrončok 2024-06-05 09:08:15 UTC
This blocks the Python 3.13 rebuild and the @critical-path-kde group.

Comment 5 Miro Hrončok 2024-06-05 09:09:15 UTC
gcc -Ilibaccounts-glib/libaccounts-glib.so.1.25.p -Ilibaccounts-glib -I../libaccounts-glib -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch '-DAPPLICATION_FILES_DIR="accounts/applications"' '-DPROVIDER_FILES_DIR="accounts/providers"' '-DSERVICE_FILES_DIR="accounts/services"' '-DSERVICE_TYPE_FILES_DIR="accounts/service_types"' '-DDATABASE_DIR="libaccounts-glib"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -pthread -DWITH_GZFILEOP '-DG_LOG_DOMAIN="accounts-glib"' -DACCOUNTS_GLIB_COMPILATION=1 -MD -MQ libaccounts-glib/libaccounts-glib.so.1.25.p/ag-account.c.o -MF libaccounts-glib/libaccounts-glib.so.1.25.p/ag-account.c.o.d -o libaccounts-glib/libaccounts-glib.so.1.25.p/ag-account.c.o -c ../libaccounts-glib/ag-account.c
../libaccounts-glib/ag-account.c: In function ‘ag_account_init’:
../libaccounts-glib/ag-account.c:824:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  824 |                                                  AgAccountPrivate);
      |             ^                                    ~~~~~~~~~~~~~~~~~~          
In file included from /usr/include/glib-2.0/glib/glist.h:34,
                 from /usr/include/glib-2.0/glib/ghash.h:36,
                 from /usr/include/glib-2.0/glib.h:52,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from ../libaccounts-glib/ag-manager.h:35,
                 from ../libaccounts-glib/ag-account.c:102:
../libaccounts-glib/ag-account.c: In function ‘ag_account_finalize’:
/usr/include/glib-2.0/glib/gmem.h:143:18: error: passing argument 1 of ‘_ag_account_changes_free’ from incompatible pointer type [-Wincompatible-pointer-types]
  143 |       (destroy) (_ptr);                                  \
      |                  ^~~~
      |                  |
      |                  GHashTable * {aka struct _GHashTable *}
../libaccounts-glib/ag-account.c:997:9: note: in expansion of macro ‘g_clear_pointer’
  997 |         g_clear_pointer (&priv->services, _ag_account_changes_free);
      |         ^~~~~~~~~~~~~~~
../libaccounts-glib/ag-account.c:540:45: note: expected ‘AgAccountChanges *’ {aka ‘struct _AgAccountChanges *’} but argument is of type ‘GHashTable *’ {aka ‘struct _GHashTable *’}
  540 | _ag_account_changes_free (AgAccountChanges *changes)
      |                           ~~~~~~~~~~~~~~~~~~^~~~~~~
../libaccounts-glib/ag-account.c: In function ‘ag_account_class_init’:
../libaccounts-glib/ag-account.c:1008:5: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
 1008 |     g_type_class_add_private (object_class, sizeof (AgAccountPrivate));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31:
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
 1497 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~

Comment 6 Miro Hrončok 2024-06-05 09:16:54 UTC
I opened https://src.fedoraproject.org/rpms/libaccounts-glib/pull-request/2 as a stopgap measure.

Comment 7 Aoife Moloney 2025-02-26 12:55:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.