Bug 1221707 - GCC 14: telepathy-glib package fails
Summary: GCC 14: telepathy-glib package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 12:33 UTC by Michal Jireš
Modified: 2024-07-15 11:40 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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