Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638844 - x11-wm/page-1.9.9 : utils.hxx:675:18: error: range-based for expression of type auto has incomplete type
Summary: x11-wm/page-1.9.9 : utils.hxx:675:18: error: range-based for expression of ty...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Benoit Gschwind
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-25 23:35 UTC by Toralf Förster
Modified: 2017-12-04 20:35 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.97 KB, text/plain)
2017-11-25 23:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,175.13 KB, text/plain)
2017-11-25 23:36 UTC, Toralf Förster
Details
environment (environment,16.92 KB, text/plain)
2017-11-25 23:36 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.52 KB, application/x-bzip)
2017-11-25 23:36 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.92 KB, application/x-bzip)
2017-11-25 23:36 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,10.16 KB, application/x-bzip)
2017-11-25 23:36 UTC, Toralf Förster
Details
x11-wm:page-1.9.9:20171125-162355.log (x11-wm:page-1.9.9:20171125-162355.log,17.45 KB, text/plain)
2017-11-25 23:36 UTC, Toralf Förster
Details
Fix functionnal include for gcc-7+ (0001-fix-functional-include.patch,523 bytes, patch)
2017-12-02 14:04 UTC, Benoit Gschwind
Details | Diff
New ebuild including the patch (page-1.9.9-r1.ebuild,1.43 KB, text/plain)
2017-12-02 15:53 UTC, Benoit Gschwind
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-11-25 23:35:55 UTC
   auto callbacks = lock(_callback_list);
                                       ^
utils.hxx:675:18: error: range-based ‘for’ expression of type ‘auto’ has incomplete type
   for(auto func: callbacks) {
                  ^~~~~~~~~
In file included from dropdown_menu.cxx:10:0:

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv x11-wm/page
[ebuild  N    ] x11-wm/page-1.9.9
Comment 1 Toralf Förster gentoo-dev 2017-11-25 23:35:58 UTC
Created attachment 506618 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-11-25 23:36:02 UTC
Created attachment 506620 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-11-25 23:36:05 UTC
Created attachment 506622 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-11-25 23:36:08 UTC
Created attachment 506624 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-11-25 23:36:11 UTC
Created attachment 506626 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-11-25 23:36:14 UTC
Created attachment 506628 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-11-25 23:36:17 UTC
Created attachment 506630 [details]
x11-wm:page-1.9.9:20171125-162355.log
Comment 8 Benoit Gschwind 2017-12-02 14:04:42 UTC
Created attachment 507696 [details, diff]
Fix functionnal include for gcc-7+

Hello,

Thank you for reporting this bug. Can you try the attached patch and tell me if that work for you?

You just have to copy the patch to the following directory :

/etc/portage/patches/x11-wm/page

and them emerge page again.

At begin of the merge of page you should see Applying patch with the name of the file you put in the patch directory.

Thanks by advance,
best regards.
Comment 9 Patrice Clement gentoo-dev 2017-12-02 14:36:12 UTC
Hey Benoit

Thanks for picking this up. If the patch is necessary to get page to compile with GCC 7 and above, I can add it to the tree ASAP. Let me know.

Thanks!
Comment 10 Patrice Clement gentoo-dev 2017-12-02 14:37:08 UTC
Better yet, fix the bug and cut a release. We'll create a new ebuild for it. What do you think?
Comment 11 Toralf Förster gentoo-dev 2017-12-02 15:07:49 UTC
patch is ok and fixes the issue
Comment 12 Benoit Gschwind 2017-12-02 15:53:48 UTC
Created attachment 507744 [details]
New ebuild including the patch

Hello Clement,

I attached a new ebuild including the patch that fix the issue.

@Toralf: Thanks for your feedback.

Best regards
Comment 13 Patrice Clement gentoo-dev 2017-12-02 18:56:29 UTC
(In reply to Benoit Gschwind from comment #12)
> Created attachment 507744 [details]
> New ebuild including the patch
> 
> Hello Clement,
>

Patrice = mon prénom
Clement = mon nom de famille

:)
Comment 14 Larry the Git Cow gentoo-dev 2017-12-04 20:35:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2aeb7837a366e41884c2b3dddaf56355801a0082

commit 2aeb7837a366e41884c2b3dddaf56355801a0082
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: 2017-12-04 20:34:49 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-12-04 20:35:00 +0000

    x11-wm/page: version bump.
    
    Closes: https://bugs.gentoo.org/585452
    Closes: https://bugs.gentoo.org/638844
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 x11-wm/page/Manifest             |  3 ++-
 x11-wm/page/page-1.9.9-r1.ebuild | 50 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 1 deletion(-)