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

Bug 656970

Summary: x11-libs/agg-2.5-r3 - In file included from agg_line_profile_aa.cpp:25: ../include/agg_renderer_outline_aa.h:1378:45: error: binding reference of type ‘agg::line_profile_aa&’ to ‘const agg::line_profile_aa’ discards qualifiers
Product: Gentoo Linux Reporter: rnddim
Component: Current packagesAssignee: Chí-Thanh Christopher Nguyễn <chithanh>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=x11-libs/agg-2.5-r3::gentoo'

Description rnddim 2018-05-31 15:18:50 UTC
Created attachment 534224 [details]
build.log

Trying to compile agg comes with this error:

In file included from agg_line_profile_aa.cpp:25:
../include/agg_renderer_outline_aa.h: In member function ‘agg::line_profile_aa& agg::renderer_outline_aa<BaseRenderer>::profile()’:
../include/agg_renderer_outline_aa.h:1378:45: error: binding reference of type ‘agg::line_profile_aa&’ to ‘const agg::line_profile_aa’ discards qualifiers
         line_profile_aa& profile() { return *m_profile; }
                                             ^~~~~~~~~~

I would not be surprised if this comes as a result of me using gcc-8.1, though I can't say for sure that's the reason why.
Comment 1 rnddim 2018-05-31 15:19:58 UTC
Created attachment 534226 [details]
emerge --info '=x11-libs/agg-2.5-r3::gentoo'
Comment 2 Tom Li 2018-08-24 18:00:41 UTC
problem has been described and explained, patch has been provided at https://bugs.gentoo.org/664078, please close it as duplicate.
Comment 3 Pacho Ramos gentoo-dev 2018-09-27 08:25:17 UTC

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