Bugzilla – Bug 1225951
Package vinagre does not build with gcc14 because of new errors
Last modified: 2024-07-01 08:04:49 UTC
GCC 14 newly by default treats as errors a number of situations which before were only warnings. For more information see https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571. Because of this, package vinagre fails to compile. This can be seen online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/vinagre/standard/x86_64 It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc We probably need the patch attached to https://bugzilla.redhat.com/show_bug.cgi?id=2179869 The (first) error (that halts the build) is: [ 23s] vinagre/vinagre-dirs.c: In function ‘vinagre_dirs_get_package_data_file’: [ 23s] vinagre/vinagre-dirs.c:121:25: error: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘const gchar * const*’ {aka ‘const char * const*’} [-Wincompatible-pointer-types] [ 23s] 121 | _tmp1_ = _tmp0_ = g_get_system_data_dirs ();
The issue described at the bottom of the bug summary is in vinagre-dirs.c which is generated by valac, so until vala is fixed, we need to resort to -fpermissive. After vala is fixed and the file is regenerated, we can potentioally also use the patch from Fedora to clean up any remaining issues.
I have filed https://build.opensuse.org/request/show/1181980 to add -fpermissive for now.
This is an autogenerated message for OBS integration: This bug (1225951) was mentioned in https://build.opensuse.org/request/show/1182000 Factory / vinagre
Hi Martin, you already submitted request for this bug report, so I assign it to you . Please feel free to reassign if I get wrong, thanks.