Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664078 - x11-libs/agg-2.5-r3 : ../.../agg_renderer_outline_aa.h:1378:45: error: binding reference of type agg::line_profile_aa& to const agg::line_profile_aa discards qualifiers
Summary: x11-libs/agg-2.5-r3 : ../.../agg_renderer_outline_aa.h:1378:45: error: bindin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
: 656970 (view as bug list)
Depends on:
Blocks: 648870
  Show dependency tree
 
Reported: 2018-08-19 21:22 UTC by Toralf Förster
Modified: 2019-02-23 17:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.73 KB, text/plain)
2018-08-19 21:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,297.68 KB, text/plain)
2018-08-19 21:22 UTC, Toralf Förster
Details
environment (environment,62.16 KB, text/plain)
2018-08-19 21:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.41 KB, application/x-bzip)
2018-08-19 21:22 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.20 KB, application/x-bzip)
2018-08-19 21:22 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.94 KB, application/x-bzip)
2018-08-19 21:23 UTC, Toralf Förster
Details
x11-libs:agg-2.5-r3:20180819-210543.log (x11-libs:agg-2.5-r3:20180819-210543.log,22.10 KB, text/plain)
2018-08-19 21:23 UTC, Toralf Förster
Details
fix const qualifier (agg-2.5-fix-const-qualifier.patch,816 bytes, patch)
2018-08-24 18:09 UTC, Tom Li
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-08-19 21:22:43 UTC
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; }
                                             ^~~~~~~~~~
make[2]: *** [Makefile:586: agg_line_profile_aa.lo] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_libressl_20180811-095538

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0
 [2] x86_64-pc-linux-gnu-7.3.1
 [3] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv x11-libs/agg
[ebuild  N    ] x11-libs/agg-2.5-r3  USE="X gpc truetype -sdl -static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-08-19 21:22:46 UTC
Created attachment 544062 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-19 21:22:49 UTC
Created attachment 544064 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-08-19 21:22:52 UTC
Created attachment 544066 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-08-19 21:22:54 UTC
Created attachment 544068 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-08-19 21:22:57 UTC
Created attachment 544070 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-19 21:23:00 UTC
Created attachment 544072 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-08-19 21:23:03 UTC
Created attachment 544074 [details]
x11-libs:agg-2.5-r3:20180819-210543.log
Comment 8 Tom Li 2018-08-24 17:50:02 UTC
Duplicate: https://bugs.gentoo.org/656970
Comment 9 Tom Li 2018-08-24 17:59:50 UTC
This problem was first encountered by matplotlib users when compiling it with clang in 2011, apparently the old GCCs don't strictly enforce the rule. Just add a single "const" keyword will fix the problem, see this patch.

https://github.com/mdboom/matplotlib/commit/3b0f5959bbea065b07538f9952ae520ab5a06c27
Comment 10 Tom Li 2018-08-24 18:09:14 UTC
Created attachment 544868 [details, diff]
fix const qualifier

I ported the patch and applied it, now it compiles perfectly.
Comment 11 Pacho Ramos gentoo-dev 2018-09-27 08:25:17 UTC
*** Bug 656970 has been marked as a duplicate of this bug. ***
Comment 12 Pacho Ramos gentoo-dev 2018-09-30 10:25:00 UTC
[master 66a47798fa3d] x11-libs/agg: Fix build with gcc8 (#664078)
 2 files changed, 29 insertions(+), 4 deletions(-)
 create mode 100644 x11-libs/agg/files/agg-2.5-gcc8.patch