Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689530 - x11-libs/libva-vdpau-driver-0.7.4-r5 fails: "error: conflicting types for ‘vdpau_CreateSurfaceFromV4L2Buf’" with x11-libs/libva-2.5.0
Summary: x11-libs/libva-vdpau-driver-0.7.4-r5 fails: "error: conflicting types for ‘vd...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-09 10:17 UTC by Paolo Pedroni
Modified: 2019-07-15 23:42 UTC (History)
2 users (show)

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


Attachments
libva-vdpau-driver-0.7.4-r5:20190709-074007.log.gz (libva-vdpau-driver-0.7.4-r5:20190709-074007.log.gz,7.04 KB, application/gzip)
2019-07-09 10:17 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2019-07-09 10:17:36 UTC
Created attachment 582242 [details]
libva-vdpau-driver-0.7.4-r5:20190709-074007.log.gz

/var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.h:277:12: warning: ‘struct v4l2_fo
rmat’ declared inside parameter list will not be visible outside of this definition or declaration
     struct v4l2_format *v4l2_fmt,
            ^~~~~~~~~~~
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpa
u-driver-0.7.4/src -O2 -pipe -frecord-gcc-switches -march=amdfam10 -flto=5 -c /var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/wo
rk/libva-vdpau-driver-0.7.4/src/utils_glx.c  -fPIC -DPIC -o .libs/utils_glx.o
/var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.c:931:12: warning: ‘struct v4l2_bu
ffer’ declared inside parameter list will not be visible outside of this definition or declaration
     struct v4l2_buffer *v4l2_buf,
            ^~~~~~~~~~~
/var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.c:930:12: warning: ‘struct v4l2_format’ declared inside parameter list will not be visible outside of this definition or declaration
     struct v4l2_format *v4l2_fmt,
            ^~~~~~~~~~~
/var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.c:927:1: error: conflicting types for ‘vdpau_CreateSurfaceFromV4L2Buf’
 vdpau_CreateSurfaceFromV4L2Buf(
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.c:22:
/var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.h:274:1: note: previous declaration of ‘vdpau_CreateSurfaceFromV4L2Buf’ was here
 vdpau_CreateSurfaceFromV4L2Buf(
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
distcc[237] ERROR: compile /var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.c on localhost failed
make[2]: *** [Makefile:578: vdpau_video.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

It works with libva-2.4.1 and fails with libva-2.5.0.

# emerge --info =x11-libs/libva-vdpau-driver-0.7.4-r5
Portage 2.3.66 (python 3.6.5-final-0, default/linux/amd64/17.1/desktop, gcc-8.3.0, glibc-2.29-r2, 4.19.52-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.52-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.6
KiB Mem:    12264964 total,   8089660 free
KiB Swap:    8351740 total,   8351740 free
Timestamp of repository gentoo: Tue, 09 Jul 2019 06:15:01 +0000
Head commit of repository gentoo: b7530ca04d0bc761e49a5ab3a445c708f6b4f8bf
sh dash 0.5.9.1-r3
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
distcc 3.3.2 x86_64-pc-linux-gnu [enabled]
ccache version 3.6 [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -frecord-gcc-switches -march=amdfam10 -flto=5"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -pipe -frecord-gcc-switches -march=amdfam10 -flto=5"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -frecord-gcc-switches -march=amdfam10 -flto=5"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -frecord-gcc-switches -march=amdfam10 -flto=5"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ https://mirrors.evowise.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.netcologne.de/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=5"
LINGUAS="it it_IT"
MAKEOPTS="-j15 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow X a52 aac aalib acl acpi alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit crypt css cups curl cxx dbus dga djvu dri dts dvd dvdr emboss encode exif expat fbcon ffmpeg fftw flac fontconfig fortran ftp gd gdbm gif glamor gmp gnutls gpm graphviz gtk iconv icu idn ieee1394 imagemagick imlib inotify introspection ipv6 java jbig jpeg jpeg2k kde lame lcms libass libcaca libnotify libsamplerate libtirpc lm_sensors lua lzma lzo mad mmap mng mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openal opengl openmp pam pango pcre pdf png policykit postscript ppds pulseaudio qt5 rdesktop readline samba sctp sdl seccomp sndfile speex spell sqlite ssl startup-notification svg symlink syslog systemd taglib test theora threads tiff truetype udev udisks unicode upower usb vaapi vcd vdpau vim-syntax vorbis wavpack wayland win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xpm xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel virmidi" 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="karbon sheets words" CAMERAS="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge -1pqv =x11-libs/libva-vdpau-driver-0.7.4-r5
[ebuild     U ] x11-libs/libva-vdpau-driver-0.7.4-r5 [0.7.4-r4] USE="opengl -debug" ABI_X86="(64) -32 (-x32)"
Comment 1 Chicago 2019-07-10 01:35:09 UTC
I also have this bug, it appeared in the last two days after upgrading to the 17.1 profile, though I don't think the two are related.
Comment 2 Matt Turner gentoo-dev 2019-07-10 01:55:10 UTC
This looks bogus. The definitions of vdpau_CreateSurfaceFromV4L2Buf are identical between src/vdpau_video.{c,h}.

The following line in the file says 

> distcc[237] ERROR: compile /var/tmp/portage/x11-libs/libva-vdpau-driver-0.7.4-r5/work/libva-vdpau-driver-0.7.4/src/vdpau_video.c on localhost failed

Does it build with FEATURES=-distcc?
Comment 3 Matt Turner gentoo-dev 2019-07-10 01:58:17 UTC
Also, for my own curiosity, why do you want to use VA-API if your video card's drivers natively support VDPAU?
Comment 4 Chicago 2019-07-10 12:41:47 UTC
Just to add a little color -- here, there is no distcc employed and I can see:

equery depends x11-libs/libva-vdpau-driver
 * These packages depend on x11-libs/libva-vdpau-driver:
x11-libs/libva-2.5.0-r1 (video_cards_nvidia ? >=x11-libs/libva-vdpau-driver-0.7.4-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
                        (video_cards_nouveau ? >=x11-libs/libva-vdpau-driver-0.7.4-r3[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
                        (vdpau ? >=x11-libs/libva-vdpau-driver-0.7.4-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])

   Which if I'm reading that right means x11-libs/libva-vdpau-driver gets pulled in simply by having a USE="vdpau" or a VIDEO_CARDS="nvidia" on x11-libs/libva.
Comment 5 Ulenrich 2019-07-10 17:00:27 UTC
(In reply to Chicago from comment #1)
> I also have this bug, it appeared in the last two days after upgrading to
> the 17.1 profile, though I don't think the two are related.

I also have this bug and I do have 17.1 profile since long (beta)
It is since
x11-libs/libva-2.5.0-rX
with above version off:
x11-libs/libva-vdpau-driver-0.7.4-r4
x11-libs/libva-vdpau-driver-0.7.4-r5
fail.

First I change my USE vdpau in x11-libs/libva-2.5.0 to positive (it was disabled), since I saw that libva-vdpau-driver depends on libva.
How does it make sense to disable it in libva? 
This should be a USE-depend in the libva-vdpau-driver ebuild !?

But both of x11-libs/libva-vdpau-driver keep going to fail.
But when downgrading to
=x11-libs/libva-2.4.1-r1
then libva-vdpau-driver successfully builds again.
Comment 6 Cynede (RETIRED) gentoo-dev 2019-07-12 13:14:14 UTC
same here, indeed, downgrading libva helps
Comment 7 Matt Turner gentoo-dev 2019-07-15 23:42:47 UTC
Wow, that was fun.
Comment 8 Larry the Git Cow gentoo-dev 2019-07-15 23:42:59 UTC
The bug has been closed via the following commit(s):

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

commit 34d5cc6fcf1d76c1c2833cb534717246c221214c
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-07-15 23:35:46 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-07-15 23:42:46 +0000

    x11-libs/libva-vdpau-driver: Fix build with >=x11-libs/libva-2.5.0
    
    Closes: https://bugs.gentoo.org/689530
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...au-driver-0.7.4-include-linux-videodev2.h.patch | 25 ++++++++++++++++++++++
 .../libva-vdpau-driver-0.7.4-r5.ebuild             |  1 +
 2 files changed, 26 insertions(+)