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

Bug 788046

Summary: dev-libs/xapian-1.4.17 fails to compile with gcc-11: " 'numeric_limits' is not a member of 'std'"
Product: Gentoo Linux Reporter: Jack <ostroffjh>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 790266    
Bug Blocks: 732706    
Attachments: build.log
patch

Description Jack 2021-05-03 23:21:41 UTC
I'll attach full build log and patch, but emerge stops with

/var/tmp/portage/dev-libs/xapian-1.4.17/work/xapian-core-1.4.17/api/omdocument.cc:303:34: error: 'numeric_limits' was not declared in this scope

adding "#include <limits>" to that file allows successful emerge.

Reproducible: Always
Comment 1 Jack 2021-05-03 23:22:47 UTC
Created attachment 705870 [details]
build.log
Comment 2 Jack 2021-05-03 23:24:03 UTC
Created attachment 705873 [details, diff]
patch
Comment 3 Larry the Git Cow gentoo-dev 2021-06-14 22:11:37 UTC
The bug has been closed via the following commit(s):

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

commit d836910165befa9b9cf98d3258784711176d96b3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-14 18:46:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-14 22:11:12 +0000

    dev-libs/xapian: fix build with GCC 11 in 1.4.17
    
    Note that 1.4.18 already seems to work but we may as well include the patch
    given somebody posted it.
    
    Closes: https://bugs.gentoo.org/788046
    Signed-off-by: Sam James <sam@gentoo.org>

 .../xapian/files/xapian-1.4.17-gcc11-missing-include.patch    | 11 +++++++++++
 dev-libs/xapian/xapian-1.4.17.ebuild                          |  4 ++++
 2 files changed, 15 insertions(+)