Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging xfmpc errors out
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1616

PostPosted: Mon Dec 09, 2024 4:40 pm    Post subject: emerging xfmpc errors out Reply with quote

xfmpc errors out during emerge, how can I fix this?
emerge info:
[url]https://dpaste.com/AVZHEMCKN
[/url]
emerge -pqv:
Code:
t14 ~ # emerge -pqv '=media-sound/xfmpc-0.3.1::gentoo'
[ebuild  N    ] media-sound/xfmpc-0.3.1


error:
Code:
playlist.c:1454:57: error: passing argument 2 of 'gtk_menu_shell_append' from incompatible pointer type [-Wincompatible-pointer-types]
 1454 |         gtk_menu_shell_append ((GtkMenuShell*) _tmp47_, _tmp48_);
      |                                                         ^~~~~~~
      |                                                         |
      |                                                         GtkMenuItem * {aka struct _GtkMenuItem *}
In file included from /usr/include/gtk-3.0/gtk/gtkmenu.h:33,
                 from /usr/include/gtk-3.0/gtk/gtklabel.h:34,
                 from /usr/include/gtk-3.0/gtk/gtkaccellabel.h:35,
                 from /usr/include/gtk-3.0/gtk/gtk.h:33,
                 from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/xfce-dialogs.h:27,
                 from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:28:
/usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected 'GtkWidget *' {aka 'struct _GtkWidget *'} but argument is of type 'GtkMenuItem *' {aka 'struct _GtkMenuItem *'}
   92 |                                         GtkWidget    *child);
      |                                         ~~~~~~~~~~~~~~^~~~~
playlist.c:1463:57: error: passing argument 2 of 'gtk_menu_shell_append' from incompatible pointer type [-Wincompatible-pointer-types]
 1463 |         gtk_menu_shell_append ((GtkMenuShell*) _tmp51_, _tmp52_);
      |                                                         ^~~~~~~
      |                                                         |
      |                                                         GtkMenuItem * {aka struct _GtkMenuItem *}
/usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected 'GtkWidget *' {aka 'struct _GtkWidget *'} but argument is of type 'GtkMenuItem *' {aka 'struct _GtkMenuItem *'}
   92 |                                         GtkWidget    *child);
      |                                         ~~~~~~~~~~~~~~^~~~~
playlist.c:1472:57: error: passing argument 2 of 'gtk_menu_shell_append' from incompatible pointer type [-Wincompatible-pointer-types]
 1472 |         gtk_menu_shell_append ((GtkMenuShell*) _tmp55_, _tmp56_);
      |                                                         ^~~~~~~
      |                                                         |
      |                                                         GtkMenuItem * {aka struct _GtkMenuItem *}
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23180

PostPosted: Mon Dec 09, 2024 4:52 pm    Post subject: Reply with quote

A search on bugs.gentoo.org for xfmpc reveals media-sound/xfmpc-0.3.1 fails to compile: preferences.c:149:63: error: passing argument 2 of g_object_add_weak_pointer from incompatible pointer type [-Wincompatible-pointer-types], which looks relevant.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1616

PostPosted: Mon Dec 09, 2024 5:16 pm    Post subject: Reply with quote

I see it's dated at 12-06
does this mean it hasn't been resolved since that date?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23180

PostPosted: Mon Dec 09, 2024 6:09 pm    Post subject: Reply with quote

It has not been resolved as of this writing. According to the shown output, it was reported 2024-06-12 06:47 UTC by Agostino Sarubbo. No one has commented on it nor marked it as fixed.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1616

PostPosted: Tue Dec 10, 2024 6:57 am    Post subject: Reply with quote

I'll try to work on it, and if i figure anything out I'll post to that bug report
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1831
Location: South America

PostPosted: Tue Dec 10, 2024 1:04 pm    Post subject: Reply with quote

If the package was written in C, it could be easily fixed with a cast. gtk_menu_shell_append()'s second parameter has type GtkWidget *, but the argument should actually point to an object of type GtkMenuItem. GtkWidget is an ancestor of GtkMenuItem, so a cast should be safe... however, the package is actually written in Vala, so the C code is generated by Vala tools, and I don't know how to convince them to generate correct C17 code.

This should probably be filed as a separate bug.

EDIT: I see that there's a recent comment by sam_ in the older (but similar) bug report.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum