Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604430 - media-tv/mythtv-0.27.6_p20160318 : videosource.cpp:802:46: error: ‘minor’ was not declared in this scope
Summary: media-tv/mythtv-0.27.6_p20160318 : videosource.cpp:802:46: error: ‘minor’ was...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Whiteboard: ~arch only
Keywords: NeedPatch
Depends on:
Blocks: glibc-sysmacros
  Show dependency tree
Reported: 2017-01-02 19:17 UTC by Toralf Förster
Modified: 2018-04-27 23:02 UTC (History)
2 users (show)

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

emerge-history.txt (emerge-history.txt,187.68 KB, text/plain)
2017-01-02 19:18 UTC, Toralf Förster
environment (environment,153.66 KB, text/plain)
2017-01-02 19:18 UTC, Toralf Förster
etc.portage.tbz2 (etc.portage.tbz2,11.36 KB, application/x-bzip)
2017-01-02 19:18 UTC, Toralf Förster
media-tv:mythtv-0.27.6_p20160318:20170102-172520.log (media-tv:mythtv-0.27.6_p20160318:20170102-172520.log,566.36 KB, text/plain)
2017-01-02 19:18 UTC, Toralf Förster
Quick patch to get users running (00-undefined-minor.patch,310 bytes, patch)
2017-09-28 11:43 UTC, William T Wilson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-01-02 19:17:54 UTC
x86_64-pc-linux-gnu-g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -O2 -march=native -fomit-frame-pointer -fPIC -pthread -g -Wall -Wpointer-arith -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden -Wmissing-declarations -Wno-switch -Woverloaded-virtual -funit-at-a-time -I/usr/include/freetype2 -fvisibility=hidden -D_REENTRANT -fPIC -DMMX -D_GNU_SOURCE -DUSING_LIBCRYPTO -DUSING_X11 -DUSING_XV -DUSING_OPENGL -DUSING_OPENGL_VIDEO -DUSING_MHEG -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_OSS -DUSING_V4L2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_CETON -DUSING_IVTV -DUSING_HDPVR -DUSING_BACKEND -DMTV_API -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr -I/usr/include/libxml2 -I../../external/qjson/include -I../../external/zeromq/include -I../../external/nzmqt/include/nzmqt -I.. -I../.. -I../../external/FFmpeg -I. -I../libmyth -I../libmyth/audio -I../libmythbase -I../libmythdvdnav -Impeg -Ichannelscan -Ivisualisations -Irecorders -Irecorders/dvbdev -Irecorders/rtp -Irecorders/vbitext -Irecorders/HLS -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/BasicUsageEnvironment -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/groupsock -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/liveMedia -I../libmythlivemedia/UsageEnvironment/include -I../libmythlivemedia/UsageEnvironment -I../libmythbase -I../libmythui -I../libmythupnp -I../libmythservicecontracts -I/usr/include -I../libmythdvdnav -I../../external/libmythbluray -I../../external/libhdhomerun -I. -o videosource.o videosource.cpp
videosource.cpp: In member function ‘uint VideoDevice::fillSelectionsFromDir(const QDir&, uint, uint, QString, QString, bool)’:
videosource.cpp:802:46: error: ‘minor’ was not declared in this scope
             uint minor_num = minor(st.st_rdev);
make[2]: *** [Makefile:2220: videosource.o] Error 1


  This is an unstable amd64 chroot image (named 13.0-systemd-unstable_20161230-104655) at a hardened host acting as a tinderbox.

  from make.conf:
USE="  pax_kernel xtpax -cdinstall -oci8 -bindist ssp contrib curl declarative eglfs glamor -gnuplot gnutls go -hdf5 ipv6 minimal -minizip mpeg3 -mpi mysql mysqli ois sddm sqlite3 ssl system-ffmpeg system-jpeg truetype v4l vorbis widgets X"

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
The following VMs are available for generation-2:

$ cat emerge-info.txt
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/systemd, gcc-5.4.0, glibc-2.24, 4.8.15-hardened x86_64)
                         System Settings
System uname: Linux-4.8.15-hardened-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.3
KiB Mem:    65285560 total,   3765452 free
KiB Swap:   67108860 total,  67091636 free
Timestamp of repository gentoo: Mon, 02 Jan 2017 17:02:43 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.4.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: 1

    location: /tmp/tb/data/portage
    masters: gentoo
    priority: 2

    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -march=native -Wall"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /usr/share/gnupg/qualified.txt /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" rsync:// rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X acl amd64 berkdb bzip2 cli contrib cracklib crypt curl cxx declarative dri eglfs fortran gdbm glamor gnutls go iconv ipv6 minimal mmx mmxext modules mpeg3 multilib mysql mysqli ncurses nls nptl ois openmp pam pax_kernel pcre readline sddm seccomp session sqlite3 sse sse2 ssl ssp system-ffmpeg system-jpeg systemd tcpd truetype udev unicode v4l vorbis widgets xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="bn-BD fi ms pt-BR rw sat si sid" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

                        Package Settings

media-tv/mythtv-0.27.6_p20160318::gentoo would be built with the following:
USE="hls theora vorbis wrapper xml xvid -alsa (-altivec) -autostart -bluray -cec -crystalhd -debug -dvb -dvd -egl -fftw -ieee1394 -jack -lcd -libass -lirc -perl -pulseaudio -python -vaapi -vdpau -xmltv -zeroconf" ABI_X86="64" INPUT_DEVICES="-joystick" PYTHON_TARGETS="python2_7"

>>> Attempting to run pkg_info() for 'media-tv/mythtv-0.27.6_p20160318'
Comment 1 Toralf Förster gentoo-dev 2017-01-02 19:18:00 UTC
Created attachment 458402 [details]
Comment 2 Toralf Förster gentoo-dev 2017-01-02 19:18:03 UTC
Created attachment 458404 [details]
Comment 3 Toralf Förster gentoo-dev 2017-01-02 19:18:06 UTC
Created attachment 458406 [details]
Comment 4 Toralf Förster gentoo-dev 2017-01-02 19:18:10 UTC
Created attachment 458408 [details]
Comment 5 Pacho Ramos gentoo-dev 2017-07-24 08:44:24 UTC
Could you retry with 0.28.1?
Comment 6 Toralf Förster gentoo-dev 2017-07-24 17:40:27 UTC
(In reply to Pacho Ramos from comment #5)
happened at      @ 17.0-desktop-plasma_20170717-204641 with media-tv/mythtv-0.28.1-r1 too
Comment 7 Richard Freeman gentoo-dev 2017-08-22 11:10:31 UTC
Mythtv fixed this upstream in b012ff0f6b284969183863d42a6a14eb77ed0a1d

In general everything in the fixes/0.28 branch should be safe to apply.  It presumably is also fixed in 0.29.

Simply sticking that hash (or preferably the latest one in the fixes branch) into the ebuild will probably fix this.  It should of course be bumped and tested.
Comment 8 William T Wilson 2017-09-28 11:43:01 UTC
Created attachment 496793 [details, diff]
Quick patch to get users running

In the event that you are just a regular user trying to get this working, you can put this simple patch in /etc/portage/patches/media-tv/mythtv and it will emerge again.  Won't be needed once the package is updated (hopefully with version 29).
Comment 9 Larry the Git Cow gentoo-dev 2017-10-20 21:39:05 UTC
The bug has been closed via the following commit(s):

commit 49e135cfc1274442c7f22e8372d053e0d34dc484
Author:     Andreas K. Hüttel <>
AuthorDate: 2017-10-20 21:38:53 +0000
Commit:     Andreas K. Hüttel <>
CommitDate: 2017-10-20 21:39:00 +0000

    media-tv/mythtv: Fix build with glibc-2.25, bug 604430
    Package-Manager: Portage-2.3.12, Repoman-2.3.3

 media-tv/mythtv/files/mythtv-0.28.1-glibc225.patch | 29 ++++++++++++++++++++++
 media-tv/mythtv/mythtv-0.28.1-r1.ebuild            |  1 +
 2 files changed, 30 insertions(+)