* Package: media-plugins/vdr-freecell-0.0.2-r4 * Repository: gentoo * Maintainer: vdr@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox * Compiling against * vdr-2.4.6 [API version 2.4.6] >>> Unpacking source... >>> Unpacking vdr-freecell-0.0.2.tgz to /var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work >>> Source unpacked in /var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work >>> Preparing source in /var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/freecell-0.0.2 ... * Patching Makefile * Converting to APIVERSION ... [ ok ] * Patching for Linguas support * available Languages for vdr-freecell-0.0.2 are: * LINGUAS="" * Plugin isn't converted to gettext handling! * OBJECT i18n.o found, removed per sed * obsolete tI18nPhrase found, disabled per sed, please recheck * Applying gcc-3.4.patch ... [ ok ] * Applying vdr-freecell-0.0.2-gentoo.diff ... [ ok ] * Applying vdr-freecell-0.0.2_vdr-1.5.4-compile.diff ... [ ok ] * Applying vdr-freecell-0.0.2_compilefix.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/freecell-0.0.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/freecell-0.0.2 ... make -j 1 all LOCALEDIR=/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/tmp-locale LOCDIR=/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/tmp-locale LIBDIR=/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/freecell-0.0.2 TMPDIR=/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/temp x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -c -DCONFDIR=\"/etc/vdr\" -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"freecell"' -I/usr/include -I/usr/include -I. -o freecell.o freecell.c x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -c -DCONFDIR=\"/etc/vdr\" -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"freecell"' -I/usr/include -I/usr/include -I. -o cards.o cards.c cards.c: In constructor ‘cCard::cCard(int, int)’: cards.c:37:17: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 37 | asprintf(&filename, "%s/%s_%s.xpm", cPlugin::ConfigDirectory("../../../usr/share/vdr/freecell"), | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 38 | ShapeNames[mShape], ValueNames[mValue]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -c -DCONFDIR=\"/etc/vdr\" -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"freecell"' -I/usr/include -I/usr/include -I. -o game.o game.c game.c: In member function ‘void cFreecellGame::WriteInfo(const char*)’: game.c:185:17: error: ‘max’ was not declared in this scope; did you mean ‘std::max’? 185 | int x = max((mInfo->Width() - font->Width(Text)) / 2, 0); | ^~~ | std::max In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/math.h:36, from /usr/include/vdr/tools.h:18, from /usr/include/vdr/i18n.h:14, from /usr/include/vdr/config.h:19, from /usr/include/vdr/osdbase.h:13, from game.h:4, from game.c:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: ‘std::max’ declared here 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ game.c: In member function ‘void cFreecellGame::WriteMessage(const char*)’: game.c:202:17: error: ‘max’ was not declared in this scope; did you mean ‘std::max’? 202 | int x = max((mMessage->Width() - font->Width(Text)) / 2, 0); | ^~~ | std::max In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/math.h:36, from /usr/include/vdr/tools.h:18, from /usr/include/vdr/i18n.h:14, from /usr/include/vdr/config.h:19, from /usr/include/vdr/osdbase.h:13, from game.h:4, from game.c:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: ‘std::max’ declared here 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ make: *** [Makefile:65: game.o] Error 1 * ERROR: media-plugins/vdr-freecell-0.0.2-r4::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-plugins/vdr-freecell-0.0.2-r4::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-plugins/vdr-freecell-0.0.2-r4::gentoo'`. * The complete build log is located at '/var/log/portage/media-plugins:vdr-freecell-0.0.2-r4:20210430-213935.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/temp/environment'. * Working directory: '/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/freecell-0.0.2' * S: '/var/tmp/portage/media-plugins/vdr-freecell-0.0.2-r4/work/freecell-0.0.2'