Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895218 - dev-libs/libxls-1.6.2 - cplusplus/main.cpp: error: string was not declared in this scope
Summary: dev-libs/libxls-1.6.2 - cplusplus/main.cpp: error: string was not declared in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 895820 (view as bug list)
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-02-18 08:42 UTC by Toralf Förster
Modified: 2023-04-19 03:11 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.22 KB, text/plain)
2023-02-18 08:42 UTC, Toralf Förster
Details
dev-libs:libxls-1.6.2:20230218-063311.log (dev-libs:libxls-1.6.2:20230218-063311.log,32.80 KB, text/plain)
2023-02-18 08:42 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,54.91 KB, application/x-bzip)
2023-02-18 08:42 UTC, Toralf Förster
Details
environment (environment,25.01 KB, text/plain)
2023-02-18 08:42 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,50.21 KB, application/x-bzip)
2023-02-18 08:42 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.34 KB, application/x-bzip)
2023-02-18 08:42 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,12.90 KB, application/x-bzip)
2023-02-18 08:42 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-02-18 08:42:27 UTC
  306 | namespace std
      |           ^~~
cplusplus/main.cpp:46:17: error: std is not a namespace-name
   46 | using namespace std;
      |                 ^~~
cplusplus/main.cpp: In function int main(int, char**):
cplusplus/main.cpp:55:9: error: string was not declared in this scope; did you mean std::string?
   55 |         string s = string(argv[1]);
      |         ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20230216-050018

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit f1456c6ecc7386dbadafbf6446f36cc0a615dae7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Feb 18 05:31:54 2023 +0000

    2023-02-18 05:31:54 UTC

emerge -qpvO dev-libs/libxls
[ebuild  N    ] dev-libs/libxls-1.6.2
Comment 1 Toralf Förster gentoo-dev 2023-02-18 08:42:27 UTC
Created attachment 852504 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-18 08:42:28 UTC
Created attachment 852506 [details]
dev-libs:libxls-1.6.2:20230218-063311.log
Comment 3 Toralf Förster gentoo-dev 2023-02-18 08:42:30 UTC
Created attachment 852508 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2023-02-18 08:42:31 UTC
Created attachment 852510 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-02-18 08:42:32 UTC
Created attachment 852512 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-18 08:42:32 UTC
Created attachment 852514 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-18 08:42:33 UTC
Created attachment 852516 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2023-04-18 06:51:01 UTC
The bug has been closed via the following commit(s):

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

commit e9df314861d00e9e5f9239ea1741db3129b31d98
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-18 06:43:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-18 06:50:49 +0000

    dev-libs/libxls: fix build w/ gcc 13
    
    Seems to affect installed headers too.
    
    Closes: https://bugs.gentoo.org/895218
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libxls/files/libxls-1.6.2-gcc13.patch     | 25 ++++++++++++++++++++++
 ...{libxls-1.6.2.ebuild => libxls-1.6.2-r1.ebuild} |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-19 03:11:49 UTC
*** Bug 895820 has been marked as a duplicate of this bug. ***