Panel plugin development

André Miranda andre42m at gmail.com
Wed Apr 3 22:40:17 CEST 2019


Try --enable-debug=yes, with so many deprecated functions and GCC being
more picky now it's hard to compile without any warnings.

Cheers,
Andre Miranda

On Wed, Apr 3, 2019 at 5:35 PM Alexis BRENON @Xfce <
brenon.alexis+xfce at gmail.com> wrote:

> Hi,
>
> Thanks for the answer. For sure, I think that is a problem with the
> compilation... I tried to compile with full debug:
>
> $ ./autogen.sh --enable-debug=full
> [...]
> Build Configuration:
>
> * Debug Support:    full
>
> Now type "make" to compile.
>
> $ make
> [...]
>   CC       libxkb_la-xkb-plugin.lo
> In file included from
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel.h:29,
>                  from
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-plugin-provider.h:23,
>                  from
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:26,
>                  from
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-plugin.h:28,
>                  from xkb-plugin.h:29,
>                  from xkb-plugin.c:34:
> xkb-plugin.c: In function 'xkb_plugin_register_type':
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h:189:7:
> error: cast between incompatible function types from 'void (*)(void
> *)' to 'void (*)(void *, void *)' [-Werror=cast-function-type]
>        (GClassInitFunc) type_name##_class_intern_init, \
>        ^
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h:211:3:
> note: in expansion of macro 'XFCE_PANEL_DEFINE_TYPE'
>    XFCE_PANEL_DEFINE_TYPE (TypeName, type_name, XFCE_TYPE_PANEL_PLUGIN) \
>    ^~~~~~~~~~~~~~~~~~~~~~
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h:122:3:
> note: in expansion of macro '_XPP_DEFINE_PLUGIN'
>    _XPP_DEFINE_PLUGIN (TypeName, type_name, FALSE, args)
>    ^~~~~~~~~~~~~~~~~~
> xkb-plugin.c:128:1: note: in expansion of macro 'XFCE_PANEL_DEFINE_PLUGIN'
>  XFCE_PANEL_DEFINE_PLUGIN (XkbPlugin, xkb_plugin)
>  ^~~~~~~~~~~~~~~~~~~~~~~~
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h:194:7:
> error: cast between incompatible function types from 'void
> (*)(XkbPlugin *)' {aka 'void (*)(struct _XkbPlugin *)'} to 'void
> (*)(GTypeInstance *, void *)' {aka 'void (*)(struct _GTypeInstance *,
> void *)'} [-Werror=cast-function-type]
>        (GInstanceInitFunc) type_name##_init, \
>        ^
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h:211:3:
> note: in expansion of macro 'XFCE_PANEL_DEFINE_TYPE'
>    XFCE_PANEL_DEFINE_TYPE (TypeName, type_name, XFCE_TYPE_PANEL_PLUGIN) \
>    ^~~~~~~~~~~~~~~~~~~~~~
>
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h:122:3:
> note: in expansion of macro '_XPP_DEFINE_PLUGIN'
>    _XPP_DEFINE_PLUGIN (TypeName, type_name, FALSE, args)
>    ^~~~~~~~~~~~~~~~~~
> xkb-plugin.c:128:1: note: in expansion of macro 'XFCE_PANEL_DEFINE_PLUGIN'
>  XFCE_PANEL_DEFINE_PLUGIN (XkbPlugin, xkb_plugin)
>  ^~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> [...]
>
> I know makefile but not autogen... Do I need to recompile xfce4-panel
> instead of using the one provided by ArchLinux (xfce4-panel 4.12.2
> (Xfce 4.12))?
>
> Kind,
> Alexis.
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce4-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20190403/4c1036a7/attachment.html>


More information about the Xfce4-dev mailing list