[Xfce-bugs] [Bug 16257] Cannot compile extension with latest glib (2.62.3)

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Dec 11 09:27:00 CET 2019


https://bugzilla.xfce.org/show_bug.cgi?id=16257

--- Comment #3 from Martin Larralde <althonosdev at gmail.com> ---
(In reply to alexxcons from comment #1)

> Patches would be very welcome !

I managed to get it to work by editing the Thunarx code, i'll add a patch.

(In reply to Andre Miranda from comment #2)

> Are you using clang instead of gcc? Please give more info about your build
> environment.

I'm building with GCC 9.2.0, GLib 2.62.3, Gtk+ 3.24.13.

> Works for me, Arch Linux with glib 2.62.3.

When compiling the extension I wrote (mentioned above), I get the following
compilation errors from GCC (not all of them included, only the first error):

```
/home/althonos/Code/thunar-torrent-property/src/torrent-page.h: In function
‘glib_autoptr_clear_TorrentPage’:
/usr/include/glib-2.0/glib/gmacros.h:1028:49: error:
‘glib_autoptr_clear_ThunarxPropertyPage’ undeclared (first use in this
function); did you mean ‘glib_autoptr_clear_TorrentPage’?
 1028 | #define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName)
glib_autoptr_clear_##TypeName
      |                                                 ^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1045:18: note: in definition of macro
‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
 1045 |     { if (_ptr) (cleanup) ((ParentName *) _ptr); }                     
                                        \
      |                  ^~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1056:65: note: in expansion of macro
‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
 1056 |   _GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(ModuleObjName, ParentName,
_GLIB_AUTOPTR_CLEAR_FUNC_NAME(ParentName))
      |                                                                
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1408:3: note: in expansion of macro
‘_GLIB_DEFINE_AUTOPTR_CHAINUP’
 1408 |   _GLIB_DEFINE_AUTOPTR_CHAINUP (ModuleObjName, ParentName)             
                                 \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/althonos/Code/thunar-torrent-property/src/torrent-page.h:11:1: note: in
expansion of macro ‘G_DECLARE_FINAL_TYPE’
   11 | G_DECLARE_FINAL_TYPE(TorrentPage, torrent_page, TORRENT, PAGE,
ThunarxPropertyPage);
      | ^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1028:49: note: each undeclared identifier
is reported only once for each function it appears in
 1028 | #define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName)
glib_autoptr_clear_##TypeName
      |                                                 ^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1045:18: note: in definition of macro
‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
 1045 |     { if (_ptr) (cleanup) ((ParentName *) _ptr); }                     
                                        \
      |                  ^~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1056:65: note: in expansion of macro
‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
 1056 |   _GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(ModuleObjName, ParentName,
_GLIB_AUTOPTR_CLEAR_FUNC_NAME(ParentName))
      |                                                                
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1408:3: note: in expansion of macro
‘_GLIB_DEFINE_AUTOPTR_CHAINUP’
 1408 |   _GLIB_DEFINE_AUTOPTR_CHAINUP (ModuleObjName, ParentName)             
                                 \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/althonos/Code/thunar-torrent-property/src/torrent-page.h:11:1: note: in
expansion of macro ‘G_DECLARE_FINAL_TYPE’
   11 | G_DECLARE_FINAL_TYPE(TorrentPage, torrent_page, TORRENT, PAGE,
ThunarxPropertyPage);
```

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list