Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722042 - app-text/libetonyek-0.1.9-r1: NUM3Parser.cpp:46:8: error: ‘for_each’ is not a member of ‘std’
Summary: app-text/libetonyek-0.1.9-r1: NUM3Parser.cpp:46:8: error: ‘for_each’ is not a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 722122 (view as bug list)
Depends on:
Blocks: boost-1.74
  Show dependency tree
 
Reported: 2020-05-10 08:33 UTC by Pavel Volkov
Modified: 2020-06-22 21:19 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,85.91 KB, text/plain)
2020-05-10 08:42 UTC, Pavel Volkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Volkov 2020-05-10 08:33:11 UTC
This should be a trivial fix.

NUM3Parser.cpp: In member function ‘virtual bool libetonyek::NUM3Parser::parseDocument()’:
NUM3Parser.cpp:46:8: error: ‘for_each’ is not a member of ‘std’
   46 |   std::for_each(sheetListRefs.begin(), sheetListRefs.end(), std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));
      |        ^~~~~~~~

Reproducible: Always
Comment 1 Pavel Volkov 2020-05-10 08:42:58 UTC
Created attachment 637464 [details]
build.log
Comment 2 Andreas Sturmlechner gentoo-dev 2020-05-10 09:09:18 UTC
Not GCC related, but boost-1.73.
Comment 3 Andreas Sturmlechner gentoo-dev 2020-05-10 13:09:54 UTC
*** Bug 722122 has been marked as a duplicate of this bug. ***
Comment 4 cyrillic 2020-05-10 15:03:49 UTC
(In reply to Pavel Volkov from comment #0)
> This should be a trivial fix.

This does the trick for me :

--- a/src/lib/NUM3Parser.cpp	2020-05-10 10:49:29.008064158 -0400
+++ b/src/lib/NUM3Parser.cpp	2020-05-10 10:51:23.828612644 -0400
@@ -8,7 +8,7 @@
  */
 
 #include <functional>
-
+#include <algorithm>
 #include "NUM3Parser.h"
 
 #include "IWAMessage.h"
Comment 5 Andreas Sturmlechner gentoo-dev 2020-05-10 15:10:25 UTC
(In reply to cyrillic from comment #4)
> (In reply to Pavel Volkov from comment #0)
> > This should be a trivial fix.
> 
> This does the trick for me

Thanks. As git master is still not fixed, could you submit this upstream?
Comment 6 Mike Lothian 2020-05-11 16:15:38 UTC
Usually includes are listed alphabetically 

diff --git a/src/lib/NUM3Parser.cpp b/src/lib/NUM3Parser.cpp
index 6dc0e9a..6f8e79e 100644
--- a/src/lib/NUM3Parser.cpp
+++ b/src/lib/NUM3Parser.cpp
@@ -7,6 +7,7 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#include <algorithm>
 #include <functional>
 
 #include "NUM3Parser.h"
Comment 7 Laurent Marciniszyn 2020-05-11 17:14:14 UTC
(In reply to Mike Lothian from comment #6)
> Usually includes are listed alphabetically 
> 
> diff --git a/src/lib/NUM3Parser.cpp b/src/lib/NUM3Parser.cpp
> index 6dc0e9a..6f8e79e 100644
> --- a/src/lib/NUM3Parser.cpp
> +++ b/src/lib/NUM3Parser.cpp
> @@ -7,6 +7,7 @@
>   * file, You can obtain one at http://mozilla.org/MPL/2.0/.
>   */
>  
> +#include <algorithm>
>  #include <functional>
>  
>  #include "NUM3Parser.h"

Thanks. Patch did the trick!
Comment 8 Larry the Git Cow gentoo-dev 2020-05-14 20:10:23 UTC
The bug has been closed via the following commit(s):

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

commit f39ebfce6ea758c721ecb0b1fc053ebb61b80765
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-05-14 19:02:58 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-05-14 20:10:02 +0000

    app-text/libetonyek: Fix build with boost-1.73
    
    Reported-by: Pavel Volkov <ao@thurston.ru>
    Closes: https://bugs.gentoo.org/722042
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-text/libetonyek/files/libetonyek-0.1.9-boost-1.73.patch | 12 ++++++++++++
 app-text/libetonyek/libetonyek-0.1.9-r1.ebuild              |  2 ++
 2 files changed, 14 insertions(+)
Comment 9 Jack 2020-06-22 21:19:59 UTC
Although it doesn't break the build, that patch file ends without a final \n so it does generate an warning about the patch ending in the middle of a line.