Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786801 - media-plugins/vdr-satip-2.4.0_p20210131 - msearch.c: error: min was not declared in this scope (maybe gcc-11 related)
Summary: media-plugins/vdr-satip-2.4.0_p20210131 - msearch.c: error: min was not decla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Dummer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-04-29 12:23 UTC by Toralf Förster
Modified: 2021-05-06 08:46 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.23 KB, text/plain)
2021-04-29 12:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,210.77 KB, text/plain)
2021-04-29 12:23 UTC, Toralf Förster
Details
environment (environment,94.30 KB, text/plain)
2021-04-29 12:23 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.56 KB, application/x-bzip)
2021-04-29 12:23 UTC, Toralf Förster
Details
media-plugins:vdr-satip-2.4.0_p20210131:20210429-120602.log (media-plugins:vdr-satip-2.4.0_p20210131:20210429-120602.log,5.87 KB, text/plain)
2021-04-29 12:23 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.95 KB, application/x-bzip)
2021-04-29 12:23 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-04-29 12:23:18 UTC
x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color  -Og -g  -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include -c -DPLUGIN_NAME_I18N='"satip"' -DUSE_TINYXML -DGITVERSION='"-GIT-43b60b1"'  -o msearch.o msearch.c
msearch.c: In member function ‘virtual void cSatipMsearch::Process()’:
msearch.c:65:20: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
   65 |            bufferM[min(length, int(bufferLenM - 1))] = 0;
      |                    ^~~
      |                    std::min
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_gnome_systemd-20210424-085324

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

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 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   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	Wed Apr 28 23:50:13 UTC 2021

emerge -qpvO media-plugins/vdr-satip
[ebuild  N    ] media-plugins/vdr-satip-2.4.0_p20210131
Comment 1 Toralf Förster gentoo-dev 2021-04-29 12:23:19 UTC
Created attachment 703872 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-29 12:23:21 UTC
Created attachment 703875 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-29 12:23:23 UTC
Created attachment 703878 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-29 12:23:24 UTC
Created attachment 703881 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-29 12:23:25 UTC
Created attachment 703884 [details]
media-plugins:vdr-satip-2.4.0_p20210131:20210429-120602.log
Comment 6 Toralf Förster gentoo-dev 2021-04-29 12:23:26 UTC
Created attachment 703887 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2021-05-06 08:46:50 UTC
The bug has been closed via the following commit(s):

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

commit 124a95a62c264394f08d70dc0eb66db06b8c9d04
Author:     Martin Dummer <martin.dummer@gmx.net>
AuthorDate: 2021-05-05 22:31:44 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-05-06 08:46:42 +0000

    media-video/vdr: add gcc-11 compile fix
    
    vdr defines std:: functions "min" "max" and "swap" as Template, which
    collides with gcc-11. Add a patch from upstream which fixes this, and fixes
    also compile problems with all media-video/vdr-* plugins using this
    functions, too
    
    Closes: https://bugs.gentoo.org/786882
    Closes: https://bugs.gentoo.org/787389
    Closes: https://bugs.gentoo.org/787236
    Closes: https://bugs.gentoo.org/787140
    Closes: https://bugs.gentoo.org/786801
    Closes: https://bugs.gentoo.org/786795
    Closes: https://bugs.gentoo.org/786672
    Closes: https://bugs.gentoo.org/786285
    Closes: https://bugs.gentoo.org/786258
    Closes: https://bugs.gentoo.org/788583
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
    Closes: https://github.com/gentoo/gentoo/pull/20695
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-video/vdr/files/vdr-2.2.0_gcc11.patch        |  29 ++
 media-video/vdr/files/vdr-2.4.7_gcc11.patch        | 314 ++-------------------
 media-video/vdr/vdr-2.2.0-r7.ebuild                | 302 ++++++++++++++++++++
 .../vdr/{vdr-2.4.7.ebuild => vdr-2.4.7-r1.ebuild}  |   8 +-
 4 files changed, 359 insertions(+), 294 deletions(-)