Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24567 - xawtv-3.86-r1 build dies, opengl problem, patch included
Summary: xawtv-3.86-r1 build dies, opengl problem, patch included
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
Depends on:
Reported: 2003-07-15 22:58 UTC by Alan Silvester
Modified: 2003-10-01 17:53 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Alan Silvester 2003-07-15 22:58:06 UTC
'emerge xawtv' fails with:

  CC      x11/blit.o
x11/blit.c:508: `GL_BGR_EXT' undeclared here (not in a function)
x11/blit.c:508: initializer element is not constant
x11/blit.c:508: (near initialization for `gl_formats[7].fmt')
x11/blit.c:511: initializer element is not constant
x11/blit.c:511: (near initialization for `gl_formats[7]')
x11/blit.c:513: `GL_BGRA_EXT' undeclared here (not in a function)
x11/blit.c:513: initializer element is not constant
x11/blit.c:513: (near initialization for `gl_formats[8].fmt')
x11/blit.c:516: initializer element is not constant
x11/blit.c:516: (near initialization for `gl_formats[8]')
make: *** [x11/blit.o] Error 1

!!! ERROR: media-tv/xawtv-3.86-r1 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! (no error message)

Portage info:

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
System uname: 2.4.20-xfs-r3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
USE="3dnow apm libg++ mad nls spell gdbm berkdb aalib acl acpi alsa arts avi cry
pt cups curl dga directfb dvd emacs encode esd ethereal evo fbcon gd ggi gif gno
me gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib java jikes jpeg -kde kerberos k
rb4 lcms ldap libwww mbox mcal mikmod mmx motif mozilla mpeg mpi ncurses oav ogg
vorbis opengl oss pam pcmcia pdflib perl plotutils png pnp prebuilt python -qt q
uicktime readline samba sasl sdl slang slp snmp sse ssl svga tcltk tcpd tetex ti
ff truetype trusted usb X Xaw3d xml xml2 xmms xv zlib x86"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
FEATURES="sandbox ccache"


--- xawtv-3.86/x11/blit.c       2003-02-14 12:09:25.000000000 -0800
+++ xawtv-3.86-opengl_12/x11/blit.c     2003-07-15 15:23:51.000000000 -0700
@@ -505,12 +505,14 @@
 #ifdef GL_EXT_bgra
     [ VIDEO_BGR24 ] = {
-       fmt:  GL_BGR_EXT,
+        /* fmt:  GL_BGR_EXT, */
+        fmt: GL_BGR,
        type: GL_UNSIGNED_BYTE,
        ext:  "GL_EXT_bgra",
     [ VIDEO_BGR32 ] = {
-       fmt:  GL_BGRA_EXT,
+        /* fmt: GL_BGRA_EXT, */
+        fmt: GL_BGRA,
        type: GL_UNSIGNED_BYTE,
        ext:  "GL_EXT_bgra",

--Alan Silvester
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-07-15 23:30:41 UTC
could you please try 3.88 which is gone stable in the next time
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-21 06:52:11 UTC
no responce ?
Comment 3 Alan Silvester 2003-07-21 17:21:55 UTC
Sorry for the delay.

emerge xawtv-3.88 dies with the same error.  Patching x11/blit.c as above fixes it.

--Alan Silvester
Comment 4 Stephane Loeuillet 2003-09-29 14:12:24 UTC
not a xawtv problem but an OpenGL header problem :

on my system, those 2 extensions are provides by 3 headers :

egrep -r "GL_BGRA?_EXT" /usr/include/
/usr/include/GL/glext.h:#define GL_BGR_EXT                        0x80E0
/usr/include/GL/glext.h:#define GL_BGRA_EXT                       0x80E1
/usr/include/GL/gl.h:/*      GL_BGR_EXT */
/usr/include/GL/gl.h:/*      GL_BGRA_EXT */
/usr/include/GL/gl.h:#define GL_BGR_EXT                        0x80E0
/usr/include/GL/gl.h:#define GL_BGRA_EXT                       0x80E1
/usr/include/SDL/SDL_opengl.h:#define GL_BGR_EXT                        0x80E0
/usr/include/SDL/SDL_opengl.h:#define GL_BGRA_EXT                       0x80E1

my first two comes from my nvidia-glx accelerated driver which provides virtual/opengl.
i also have media-libs/glut installed.

if no accelerated opengl/glx driver is installed, mesa one should be used
(if not mesa, another one, if any) and should provide the required headers.

so, perhaps his headers are outdated or incorrect

Comment 5 Alan Silvester 2003-09-29 19:56:21 UTC
At the time I emerged xawtv, I was using the Matrox Parhelia driver.  Since
then I've switched over to an NVidia card and haven't had a problem emerging
this package.  IIRC, not all of the OpenGL stuff that the card supports is
supported in the driver.  Perhaps that is why the header files are wrong?

--Alan Silvester
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-10-01 17:53:28 UTC
possibly, it was the parhelia driver