Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788025 - media-video/webcamoid-8.7.1 fails to compile with gcc-11: " 'numeric_limits' is not a member of 'std'"
Summary: media-video/webcamoid-8.7.1 fails to compile with gcc-11: " 'numeric_limits' ...
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: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-03 22:26 UTC by Jack
Modified: 2021-05-11 18:04 UTC (History)
3 users (show)

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


Attachments
build log (webcamoid-build.log,504.25 KB, text/x-log)
2021-05-03 22:26 UTC, Jack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack 2021-05-03 22:26:07 UTC
I'll attach full build log, but 

src/image/videoformat.cpp:289:19: error: 'numeric_limits' is not a member of 'std'


Reproducible: Always

Steps to Reproduce:
1. emerge webcamoid
2.
3.
Actual Results:  
listed error

Expected Results:  
successful emerge

adding one line to the file with the error allows successful emerge

#include <limits>

I am assuming the same patch will apply to 8.8.0 (bug 771921 is the version bump).

I see this package is m-n, but hopefully at least this bug will show the easy fix to anyone who needs it.
Comment 1 Jack 2021-05-03 22:26:49 UTC
Created attachment 705867 [details]
build log
Comment 2 Larry the Git Cow gentoo-dev 2021-05-11 18:04:31 UTC
The bug has been closed via the following commit(s):

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

commit 7d45246c2905a9a24582fe73ab02075b82a4b9a4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-11 18:04:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-11 18:04:22 +0000

    media-video/webcamoid: fix gcc 11 build
    
    Closes: https://bugs.gentoo.org/788025
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/webcamoid/files/webcamoid-8.7.1-gcc11.patch | 12 ++++++++++++
 media-video/webcamoid/webcamoid-8.7.1.ebuild            |  6 +++++-
 2 files changed, 17 insertions(+), 1 deletion(-)