Bug 1221708 - GCC 14: telepathy-logger package fails
Summary: GCC 14: telepathy-logger package fails
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: Other Other
: P4 - Low : Minor (vote)
Target Milestone: ---
Assignee: Martin Jambor
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 12:34 UTC by Michal Jireš
Modified: 2024-07-15 11:48 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:34:34 UTC
Building telepathy-logger with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/telepathy-logger/standard/x86_64

Due to (exhaustive list of errors):

conf.c: In function 'tpl_conf_constructor':
conf.c:130:14: error: assignment to 'GObject *' {aka 'struct _GObject *'} from incompatible pointer type 'TplConf *' [-Wincompatible-pointer-types]
  130 |       retval = g_object_ref (conf_singleton);
      |              ^


dbus-service.c: In function 'favourite_contact_closure_new':
dbus-service.c:99:20: error: assignment to 'TplDBusService *' from incompatible pointer type 'GObject *' {aka 'struct _GObject *'} [-Wincompatible-pointer-types]
   99 |   closure->service = g_object_ref (G_OBJECT (self));
      |                    ^

log-manager.c: In function 'log_manager_constructor':
log-manager.c:162:12: error: assignment to 'GObject *' {aka 'struct _GObject *'} from incompatible pointer type 'TplLogManager *' {aka 'struct _TplLogManager *'} [-Wincompatible-pointer-types]
  162 |     retval = g_object_ref (manager_singleton);
      |            ^


See the meta bug#1220571 for more info.
Comment 1 Martin Jambor 2024-06-04 12:55:02 UTC
The corresponding Gentoo bug might be: https://bugs.gentoo.org/922718
Comment 2 Martin Jambor 2024-07-15 11:48:39 UTC
Request https://build.opensuse.org/request/show/1186864 added -fpermissive to to %{optflags} which makes the package build with GCC 14.

I'm assigning this to myself to check every few years whether we can get rid of it.