Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438180 - x11-libs/vdpau-video-0.7.4 - utils_glx.h:163:5: error: unknown type name 'PFNGLMULTITEXCOORD2FPROC'
Summary: x11-libs/vdpau-video-0.7.4 - utils_glx.h:163:5: error: unknown type name 'PFN...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-12 22:39 UTC by Gary E. Miller
Modified: 2013-01-05 18:21 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,10.88 KB, text/plain)
2012-10-12 22:39 UTC, Gary E. Miller
Details
environment (environment,60.50 KB, text/plain)
2012-10-12 22:40 UTC, Gary E. Miller
Details
Build log from failed build (x11-libs:vdpau-video-0.7.4:20121013-053450.log.gz,5.90 KB, text/plain)
2012-10-13 05:40 UTC, Simon Alman
Details
Environment file for failed emerge (environment,59.26 KB, text/plain)
2012-10-13 05:41 UTC, Simon Alman
Details
Fix build with recent Mesa glext.h (glext-missing-definition.patch,659 bytes, patch)
2012-10-19 07:50 UTC, Steven Newbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2012-10-12 22:39:18 UTC
Can not emerge x11-libs/vdpau-video-0.7.4

In file included from vdpau_video_glx.h:26:0,
                 from vdpau_driver.c:32:
utils_glx.h:163:5: error: unknown type name 'PFNGLMULTITEXCOORD2FPROC'
make[2]: *** [vdpau_driver.lo] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge  =x11-libs/vdpau-video-0.7.4
Actual Results:  
In file included from vdpau_video_glx.h:26:0,
                 from vdpau_driver.c:32:
utils_glx.h:163:5: error: unknown type name 'PFNGLMULTITEXCOORD2FPROC'
make[2]: *** [vdpau_driver.lo] Error 1


Expected Results:  
Good emerge

kong ~ # emerge --info '=x11-libs/vdpau-video-0.7.4'
Portage 2.1.11.26 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.6.1-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
Timestamp of tree: Fri, 12 Oct 2012 15:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.5-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x11 multimedia mozilla proaudio sunrise local-repo
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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="-march=amdfam10 -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.osuosl.org/ http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--enable-new-dtags"
LINGUAS="en en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/multimedia /usr/local/portage/layman/mozilla /usr/local/portage/layman/pro-audio /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://spidey.rellim.com/gentoo-portage"
USE="256-color 3dnow 3dnowext X a52 aac aalib acl acpi adns afterimage alsa amarok amazon amd64 amr ao apache2 applet ares aspell asyncdns attica audacious audiofile auth autoipd autotrace avahi background bash-completion berkdb binfilter bl blink bluetooth bogofilter bonjour bonobo bookmarks bootsplash branding bzip2 cairo caps cdaudio cdda cddb cdinstall cdr cgi cgroup chroot cle266 cleartype cli command-args consolekit contentcache corba cracklib crypt cscope css csv ctype cups curl curlwrappers cursors cxx daap dba dbm dbus dbx dcc dcraw declarative devfs26 device-mapper dga dirac directfb disassembler discard-path divx dlz dmi dmx docbook dpms dri dts dv dvb dvd dvdr dvdread dvi dynagraph dynamicplugin ecc edl egl emboss encode equalizer escreen ethereal etwin exif expat exscalibar extensions extramodules faac faad fading-colors faillog fam fame fat festival ffmpeg ffmpeg-mt fftw firefox fits flac flash flatfile fltk fmod fontconfig foomatic-db foomaticdb fortran fpx freetds freetts ftp g3dvl gadu gallium gconf gcrypt gd gdal gdbm gdu gecko-mediaplayer geoip geometry geonames geos geotiff gif gimp gimpprint glade gles1 gles2 glew glib glitz glut gmath gmedia gml gmp gmplayer gnome-print gnomecanvas gnomedb gnuplot gnustep gnutls gost gphoto2 gpm gps graphite grass gs gsl gsm gstreamer gstreamer010 gtk gtkhtml gtkspell guile h323 hardened hdri hostip howl howl-compat hpn http httpd icecast iconv icq icu id3 idea ilbc imagemagick imap imlib imlib2 inkjar inode inotify insecure-savers int64 ipv6 iso14755 jabber jack jadetex java javascript jbig jce jingle john jpeg jpeg2k karma kdepim kpathsea ladspa lame lastfm latex lcms ldap libedit libnotify libsamplerate libv4l2 libvisual live lm_sensors logrotate lpr lua lv2 lyrics lzma lzo mad madwifi manual mapnik marble matroska mbox md5sum mdnsresponder-compat menubar midi mikmod milter mime mimencode mmap mmx mmxext mng mnogosearch mod modplug modules mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpg123 mpi mplayer mpm-worker mtp mudflap multilib munin-apache munin-dhcp munin-irc munin-squid munin-surfboard musepack musicbrainz mysql mysqli mythtv na_dd na_icons nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netlink network networking nfs nls nodrm nominatim nptl nsplugin nss ntp objc odk offensive ogg oggvorbis on-the-fly-crypt openal openctl openexr opengl openmp openssh openssl opensslcrypt openvg oscar osmesa oss otr pam pango parse-clocks passfile passwdqc passwordsave paste64 pcap pci pcmcia pcre pdf pdfimport perl php pixbuf player plazes plotutils png pnm policykit pop3d portage posix postproc ppds pppd print priority procmail proj pulseaudio pvr python pyzor qt3support qt4 quicktime rar raw razor rc5 rdesktop readline realmedia realtime recursor redland reiser4 reiserfs remix rle rpm rpz rrdcgi rrdtool rss rtc rtf rtmp rtsp run-as-root samba sasl scanner schroedinger screen sdk sdl secure-delete semantic-desktop sendmail sensord serial server session sftp sftplogging shape sharedext shmvideo shorten shout silc sip skins slp smi smime smp smtp sndfile snmp soap sockets sofia-sip softfax sound sox spamassassin speex spell spf sqlite srt sse sse2 sse3 sse4a ssh ssl startup-notification static-modules stats stream subtitles subversion svg svgz swat swig syntax-check sysfs syslog sysvipc t1lib taglib tagwriting tcltk tcpd template tetex tga themes theora thesaurus threads thumbnail thunderbird tidy tiff timidity tk tokenizer tokyocabinet toolbar tools transcode truetype twolame type1 udev udisks ugly unicode unzip upower ups urandom usb utils v4l2 vaapi vala vboxwebsrv vcd vdpau vhosts video vim vim-syntax visualization vlc vlm vnc vorbis vorbis-psy vpx watchdog wavpack web webkit webkit2 wfs widescreen wikipedia winbind wma wmf wmp wxwidgets wxwindows x264 xa xanim xattr xcb xcomposite xface xft xine xinerama xml xmlrpc xorg xosd xpm xrandr xrender xscreensaver xsettings xsl xslt xterm xulrunner xv xvfb xvid xvmc yahoo yahoo-geo zeroconf zip zlib zrtp zvbai zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" USERLAND="GNU" VIDEO_CARDS="vesa nouveau radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

kong ~ # emerge -pqv '=x11-libs/vdpau-video-0.7.4'
[ebuild     U ] x11-libs/vdpau-video-0.7.4 [0.7.3] USE="opengl -debug"
Comment 1 Gary E. Miller 2012-10-12 22:39:49 UTC
Created attachment 326410 [details]
build.log
Comment 2 Gary E. Miller 2012-10-12 22:40:13 UTC
Created attachment 326412 [details]
environment
Comment 3 Simon Alman 2012-10-13 05:40:28 UTC
Created attachment 326434 [details]
Build log from failed build

emerge x11-libs/vdpau-video fails with: 

utils_glx.h:163:5: error: unknown type name ‘PFNGLMULTITEXCOORD2FPROC’

"[ebuild     U  ] x11-libs/vdpau-video-0.7.4 [0.7.3] USE="opengl -debug" 0 kB"
Comment 4 Simon Alman 2012-10-13 05:41:37 UTC
Created attachment 326436 [details]
Environment file for failed emerge
Comment 5 Alexis Ballier gentoo-dev 2012-10-13 17:50:16 UTC
whats your mesa version / nvidia drivers ? what is your eselect'ed opengl implementation ? do you have media-libs/glew installed ? what version ?
Comment 6 Gary E. Miller 2012-10-13 18:00:11 UTC
(In reply to comment #5)
> whats your mesa version 

media-libs/mesa-9.0

> nvidia drivers ? 
 
x11-drivers/nvidia-drivers-304.51

> what is your eselect'ed opengl implementation ?

kong ~ # eselect opengl list
Available OpenGL implementations:
  [1]   xorg-x11 *
kong ~ # 

> do you have media-libs/glew installed ? 

Yes.

> what version ?

media-libs/glew-1.9.0
Comment 7 Alexis Ballier gentoo-dev 2012-10-13 19:07:47 UTC
(In reply to comment #6)
> > what is your eselect'ed opengl implementation ?
> 
> kong ~ # eselect opengl list
> Available OpenGL implementations:
>   [1]   xorg-x11 *
> kong ~ # 
> 

Hu? cant you select the nvidia one ? I doubt nvidia's vdpau can work nicely with mesa's opengl.
the rest is similar to my system.
Comment 8 Alexey Korepanov 2012-10-14 06:17:43 UTC
I confirm, I got the same error. Hardware is different though, I use radeon 6850 with "... radeon vdpau ..." use flags. I was trying to upgrade vdpau to get rid of blue faces.
Comment 9 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2012-10-15 12:30:36 UTC
(In reply to comment #7)
> (In reply to comment #6)

> Hu? cant you select the nvidia one ? I doubt nvidia's vdpau can work nicely
> with mesa's opengl.
> the rest is similar to my system.

What about those of us using nouveau? Does vdpau-video support nouveau or does it require the proprietary nvidia drivers?
Comment 10 Gary E. Miller 2012-10-15 19:45:44 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > > what is your eselect'ed opengl implementation ?
> > 
> > kong ~ # eselect opengl list
> > Available OpenGL implementations:
> >   [1]   xorg-x11 *
> > kong ~ # 
> > 
> 
> Hu? cant you select the nvidia one ? I doubt nvidia's vdpau can work nicely
> with mesa's opengl.
> the rest is similar to my system.

No point, no nvidia cards/chips installed on that system.  It is a radeon
system.

If nvidia is a prerequisite then it should be required in the ebuild.
Comment 11 Alexis Ballier gentoo-dev 2012-10-15 22:16:21 UTC
(In reply to comment #10)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > > what is your eselect'ed opengl implementation ?
> > > 
> > > kong ~ # eselect opengl list
> > > Available OpenGL implementations:
> > >   [1]   xorg-x11 *
> > > kong ~ # 
> > > 
> > 
> > Hu? cant you select the nvidia one ? I doubt nvidia's vdpau can work nicely
> > with mesa's opengl.
> > the rest is similar to my system.
> 
> No point, no nvidia cards/chips installed on that system.  It is a radeon
> system.

Then you also have no point in using this package. xvba-video is what you want.

> If nvidia is a prerequisite then it should be required in the ebuild.

Well, it shouldnt fail, but for me it builds and works perfectly and I still have no clue why it fails for you. Maybe mesa's opengl isn't fully compliant ? Maybe nvidia has some non-standard extensions ? Something else ?
And actually, libva depends on vdpau-video with video_cards_nvidia...
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-15 22:17:30 UTC
xvba-video is only for the AMD proprietary driver.
Comment 13 Andrzej Kardas 2012-10-16 15:14:01 UTC
I hit the same thing. I have nvidia card with optimus technology - running application on Nividia using bumblebee optirun command, for example XBMC. My desktop is using Intel card and therefore the default opengl implemation is xorg. This should not force compilation to fail. The previous version emerged w/o any problem.
Comment 14 chris salch 2012-10-16 18:50:17 UTC
I'm in the same boat with an optimus based system.  Switching to the nvidia opengl implementation with eselect does appear to allow the driver to compile.  Not sure how to test past that though.
Comment 15 Steven Newbury 2012-10-19 07:38:22 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #7)
> > > (In reply to comment #6)
> > > > > what is your eselect'ed opengl implementation ?
> > > > 
> > > > kong ~ # eselect opengl list
> > > > Available OpenGL implementations:
> > > >   [1]   xorg-x11 *
> > > > kong ~ # 
> > > > 
> > > 
> > > Hu? cant you select the nvidia one ? I doubt nvidia's vdpau can work nicely
> > > with mesa's opengl.
> > > the rest is similar to my system.
> > 
> > No point, no nvidia cards/chips installed on that system.  It is a radeon
> > system.
> 
> Then you also have no point in using this package. xvba-video is what you
> want.
> 
> > If nvidia is a prerequisite then it should be required in the ebuild.
> 
> Well, it shouldnt fail, but for me it builds and works perfectly and I still
> have no clue why it fails for you. Maybe mesa's opengl isn't fully compliant
> ? Maybe nvidia has some non-standard extensions ? Something else ?
> And actually, libva depends on vdpau-video with video_cards_nvidia...
Gallium has had a VDPAU backend for a while now; not great support yet for hw video decode, it is WIP, at least for Radeon:  http://www.x.org/wiki/RadeonFeature
Comment 16 Steven Newbury 2012-10-19 07:50:48 UTC
Created attachment 326908 [details, diff]
Fix build with recent Mesa glext.h

I've applied the patch from upstream gstreamer-vaapi to fix this issue (see below), builds fine now.  Patch attached.

http://gitorious.org/vaapi/gstreamer-vaapi/commit/5db2e93d3c930fd8470cfdcd26f514d1cebc59a0/diffs
Comment 17 Andrzej Kardas 2012-10-19 14:11:25 UTC
I tested the patch in my environment with eselected xorg-x11 as opengl. Package is building w/o any problem.
Comment 18 Alexis Ballier gentoo-dev 2012-10-19 14:46:57 UTC
(In reply to comment #16)
> Created attachment 326908 [details, diff] [details, diff]
> Fix build with recent Mesa glext.h
> 
> I've applied the patch from upstream gstreamer-vaapi to fix this issue (see
> below), builds fine now.  Patch attached.
> 
> http://gitorious.org/vaapi/gstreamer-vaapi/commit/
> 5db2e93d3c930fd8470cfdcd26f514d1cebc59a0/diffs

great, thanks, I had a look at this patch but didnt have time to port it to vdpau-video; will apply soon.
Comment 19 Alexis Ballier gentoo-dev 2012-10-20 22:07:38 UTC
(In reply to comment #18)
> (In reply to comment #16)
> > Created attachment 326908 [details, diff] [details, diff] [details, diff]
> > Fix build with recent Mesa glext.h
> > 
> > I've applied the patch from upstream gstreamer-vaapi to fix this issue (see
> > below), builds fine now.  Patch attached.
> > 
> > http://gitorious.org/vaapi/gstreamer-vaapi/commit/
> > 5db2e93d3c930fd8470cfdcd26f514d1cebc59a0/diffs
> 
> great, thanks, I had a look at this patch but didnt have time to port it to
> vdpau-video; will apply soon.

done, thanks!