View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran

Joined: 21 Sep 2012 Posts: 1616
|
Posted: Mon Dec 09, 2024 4:40 pm Post subject: emerging xfmpc errors out |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23180
|
|
Back to top |
|
 |
Adel Ahmed Veteran

Joined: 21 Sep 2012 Posts: 1616
|
Posted: Mon Dec 09, 2024 5:16 pm Post subject: |
|
|
I see it's dated at 12-06
does this mean it hasn't been resolved since that date? |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23180
|
Posted: Mon Dec 09, 2024 6:09 pm Post subject: |
|
|
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 |
|
 |
Adel Ahmed Veteran

Joined: 21 Sep 2012 Posts: 1616
|
Posted: Tue Dec 10, 2024 6:57 am Post subject: |
|
|
I'll try to work on it, and if i figure anything out I'll post to that bug report |
|
Back to top |
|
 |
GDH-gentoo Veteran


Joined: 20 Jul 2019 Posts: 1831 Location: South America
|
Posted: Tue Dec 10, 2024 1:04 pm Post subject: |
|
|
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 |
|
 |
|