Bug 1221707

Summary: GCC 14: telepathy-glib package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Jireš <michal.jires>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mjambor
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

Description Michal Jireš 2024-03-19 12:33:13 UTC
Building telepathy-glib with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/telepathy-glib/standard/x86_64

Due to (exhaustive list of errors):

protocol.c: In function ‘_tp_protocol_parse_manager_file’:
protocol.c:1794:42: error: passing argument 2 of ‘g_ptr_array_new_full’ from incompatible pointer type [-Wincompatible-pointer-types]
 1794 |   param_specs = g_ptr_array_new_full (i, tp_value_array_free);
      |                                          ^~~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          void (*)(GValueArray *) {aka void (*)(struct _GValueArray *)}
In file included from /usr/include/glib-2.0/glib.h:33,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from ../telepathy-glib/protocol.h:27,
                 from protocol.c:37:
/usr/include/glib-2.0/glib/garray.h:175:62: note: expected ‘GDestroyNotify’ {aka ‘void (*)(void *)’} but argument is of type ‘void (*)(GValueArray *)’ {aka ‘void (*)(struct _GValueArray *)’}
  175 |                                            GDestroyNotify    element_free_func);
      |                                            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~



See the meta bug#1220571 for more info.
Comment 1 Martin Jambor 2024-06-04 12:49:52 UTC
The corresponding Gentoo bug might be: https://bugs.gentoo.org/880917
Comment 2 Martin Jambor 2024-07-15 11:40:50 UTC
Fixed, almost certainly with https://build.opensuse.org/request/show/1178667