Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787707 - media-plugins/vdr-systeminfo-0.1.4 - displayinfo.c: error: max was not declared in this scope (maybe gcc-11 related)
Summary: media-plugins/vdr-systeminfo-0.1.4 - displayinfo.c: error: max was not declar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-02 14:39 UTC by Toralf Förster
Modified: 2021-05-02 17:54 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.97 KB, text/plain)
2021-05-02 14:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,474.60 KB, text/plain)
2021-05-02 14:39 UTC, Toralf Förster
Details
environment (environment,117.21 KB, text/plain)
2021-05-02 14:39 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,49.23 KB, application/x-bzip)
2021-05-02 14:39 UTC, Toralf Förster
Details
media-plugins:vdr-systeminfo-0.1.4:20210502-143542.log (media-plugins:vdr-systeminfo-0.1.4:20210502-143542.log,9.96 KB, text/plain)
2021-05-02 14:39 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.58 KB, application/x-bzip)
2021-05-02 14:39 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 2021-05-02 14:39:10 UTC
      |                                     |                        |
      |                                     float*                   char**
displayinfo.c:176:35: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
  176 |             int frac = min(BARLEN,max(0, int((fval1-fval2)*BARLEN/fval1)));
      |                                   ^~~
      |                                   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-20210415-101632

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] 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 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.18.0 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
4)	OpenJDK 8.292_p10 [openjdk-8]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   jamvm 
  [4]   openjdk-8 
  [5]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun May  2 13:50:15 UTC 2021

emerge -qpvO media-plugins/vdr-systeminfo
[ebuild  N    ] media-plugins/vdr-systeminfo-0.1.4
Comment 1 Toralf Förster gentoo-dev 2021-05-02 14:39:11 UTC
Created attachment 705324 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-02 14:39:13 UTC
Created attachment 705327 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-02 14:39:15 UTC
Created attachment 705330 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-02 14:39:16 UTC
Created attachment 705333 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-02 14:39:17 UTC
Created attachment 705336 [details]
media-plugins:vdr-systeminfo-0.1.4:20210502-143542.log
Comment 6 Toralf Förster gentoo-dev 2021-05-02 14:39:19 UTC
Created attachment 705339 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2021-05-02 17:54:05 UTC
The bug has been closed via the following commit(s):

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

commit d4a283d7069c7204e6b6b1bbc608c663deb8ec02
Author:     Joerg Bornkessel <hd_brummy@gentoo.org>
AuthorDate: 2021-05-02 17:53:06 +0000
Commit:     Joerg Bornkessel <hd_brummy@gentoo.org>
CommitDate: 2021-05-02 17:53:51 +0000

    media-plugins/vdr-systeminfo: gcc-11 reladet fix
    
    Closes: https://bugs.gentoo.org/787707
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>

 .../files/vdr-systeminfo-0.1.4_gcc11.patch         | 35 ++++++++++++++++++++++
 ...0.1.4.ebuild => vdr-systeminfo-0.1.4-r1.ebuild} |  9 ++++--
 2 files changed, 41 insertions(+), 3 deletions(-)