Opened 7 years ago
Closed 7 years ago
#13047 closed Bug Report - General (Fixed)
compiling with gcc 7.1.0
Reported by: | Owned by: | Stuart Auchterlonie | |
---|---|---|---|
Priority: | minor | Milestone: | 0.28.2 |
Component: | MythTV - General | Version: | 0.28.1 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Hello
I ran into a problem compiling 0.28fixes on a gentoo box with gcc version 7.1.0. The file mythtv/mythtv/libs/libmythtv/videosource.cpp at around line 830 has a line of code "uint minor_num = minor(st.st_rdev);" which failed because the minor(st.st_rdev) function is not declared or defined. I have attached a patch that allowed the compile to complete successfully.
Hope this helps
Attachments (2)
Change History (14)
Changed 7 years ago by
Attachment: | mythtv.patch added |
---|
comment:1 Changed 7 years ago by
Milestone: | unknown → 29.0 |
---|---|
Version: | Unspecified → 0.28.1 |
comment:2 Changed 7 years ago by
Owner: | set to Stuart Auchterlonie |
---|---|
Status: | new → assigned |
comment:3 Changed 7 years ago by
Status: | assigned → infoneeded |
---|
comment:4 Changed 7 years ago by
output of gcc -v
Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/7.1.0/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/7.1.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-7.1.0-r1/work/gcc-7.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/7.1.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.1.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.1.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.1.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.0/include/g++-v7 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/7.1.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.1.0-r1 p1.1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --disable-default-pie --enable-default-ssp Thread model: posix gcc version 7.1.0 (Gentoo 7.1.0-r1 p1.1)
comment:7 Changed 7 years ago by
Hi Stuart
I have just successfully compiled 0.28fixes on my gentoo box with the above commit reca27c542b.
Thanks for your work on this
Helen
comment:12 Changed 7 years ago by
Milestone: | 29.0 → 0.28.2 |
---|---|
Resolution: | → Fixed |
Status: | infoneeded → closed |
These changes have now been pushed to fixes/0.28
fixes/0.28 compiles successfully on f26 beta which uses gcc-7.1.1
can you include the output from the compiler when this failure occurs please?