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

Bug 787506

Summary: media-plugins/vdr-suspendoutput-2.0.1 - timer.c: error: max was not declared in this scope (maybe gcc-11 related)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo VDR Project <vdr>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
media-plugins:vdr-suspendoutput-2.0.1:20210501-191028.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-01 19:16:17 UTC
x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color  -O2  -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include -c -DPLUGIN_NAME_I18N='"suspendoutput"'  -o timer.o timer.c
timer.c: In member function ‘virtual void cTimerThread::Action()’:
timer.c:124:28: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
  124 |                            max(1, m_Events.First()->TimeToNextEvent()));
      |                            ^~~
      |                            std::max
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20210420-165442

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0
  [2]   rust-1.51.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.4
  [2]   php8.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat May  1 18:50:09 UTC 2021

emerge -qpvO media-plugins/vdr-suspendoutput
[ebuild  N    ] media-plugins/vdr-suspendoutput-2.0.1
Comment 1 Toralf Förster gentoo-dev 2021-05-01 19:16:18 UTC
Created attachment 705042 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-01 19:16:20 UTC
Created attachment 705045 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-01 19:16:21 UTC
Created attachment 705048 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-01 19:16:23 UTC
Created attachment 705051 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-01 19:16:24 UTC
Created attachment 705054 [details]
media-plugins:vdr-suspendoutput-2.0.1:20210501-191028.log
Comment 6 Toralf Förster gentoo-dev 2021-05-01 19:16:25 UTC
Created attachment 705057 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2021-05-02 17:54:02 UTC
The bug has been closed via the following commit(s):

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

commit 1a3e2e10ee08b2df5db3bc83628584cc25b88d5a
Author:     Joerg Bornkessel <hd_brummy@gentoo.org>
AuthorDate: 2021-05-02 17:27:49 +0000
Commit:     Joerg Bornkessel <hd_brummy@gentoo.org>
CommitDate: 2021-05-02 17:53:50 +0000

    media-plugins/vdr-suspendoutput: gcc-11 compile fix
    
    max was not declared
    eapi 7
    
    Closes: https://bugs.gentoo.org/787506
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>

 ...uspendoutput-2.0.1.ebuild => vdr-suspendoutput-2.0.1-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)