Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 654772

Summary: dev-cpp/atkmm-2.24.2: error: cannot convert 'GPrivate' {aka '_GPrivate'} to 'GPrivate*' {aka '_GPrivate*'} in return GPrivate* gobj() { return gobject_; }
Product: Gentoo Linux Reporter: lekto
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jstein, xaviermiller
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=654776
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description lekto 2018-05-03 21:34:34 UTC
Created attachment 529674 [details]
build.log

In file included from /usr/include/glibmm-2.4/glibmm.h:90,
                 from /var/tmp/portage/dev-cpp/atkmm-2.24.2/work/atkmm-2.24.2/atk/atkmm/editabletext.cc:4:
/usr/include/glibmm-2.4/glibmm/threads.h: In member function 'GPrivate* Glib::Threads::Private<T>::gobj()':
/usr/include/glibmm-2.4/glibmm/threads.h:660:29: error: cannot convert 'GPrivate' {aka '_GPrivate'} to 'GPrivate*' {aka '_GPrivate*'} in return
   GPrivate* gobj() { return gobject_; }
                             ^~~~~~~~
Comment 1 lekto 2018-05-03 21:36:37 UTC
Created attachment 529676 [details]
emerge --info
Comment 2 Ivan 2018-05-04 09:07:32 UTC
(In reply to lekto from comment #0)
> Created attachment 529674 [details]
> build.log
> 
> In file included from /usr/include/glibmm-2.4/glibmm.h:90,
>                  from
> /var/tmp/portage/dev-cpp/atkmm-2.24.2/work/atkmm-2.24.2/atk/atkmm/
> editabletext.cc:4:
> /usr/include/glibmm-2.4/glibmm/threads.h: In member function 'GPrivate*
> Glib::Threads::Private<T>::gobj()':
> /usr/include/glibmm-2.4/glibmm/threads.h:660:29: error: cannot convert
> 'GPrivate' {aka '_GPrivate'} to 'GPrivate*' {aka '_GPrivate*'} in return
>    GPrivate* gobj() { return gobject_; }
>                              ^~~~~~~~

Try to apply patch to dev-cpp/glibmm located in the bug you reported at https://bugs.gentoo.org/654776 by Sergei Trofimovich. It helps to build glibmm and lot of other packages too, including this one.
Comment 3 lekto 2018-05-04 13:04:39 UTC
Patch by Sergei Trofimovich fixed error.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-06 22:16:21 UTC
Let's close this as a duplicate of glibmm bug as it's triggered by glibmm's header: bug #654776

*** This bug has been marked as a duplicate of bug 654776 ***