All of lore.kernel.org
 help / color / mirror / Atom feed
* mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
@ 2013-01-24 10:14 Sedat Dilek
  2013-01-24 12:33 ` Sedat Dilek
  0 siblings, 1 reply; 4+ messages in thread
From: Sedat Dilek @ 2013-01-24 10:14 UTC (permalink / raw)
  To: Ian Romanick; +Cc: mesa-dev, DRI

Hi Ian,

due to the changes in...

e90c08e dri: Define enum __DRI_API_GLES3

...I get this breakage with mesa-gles3-git6f3caaf:

make[7]: Entering directory
`/home/wearefam/src/mesa/mesa-git/src/mesa/drivers/dri/common'
  CC     utils.lo
  CC     dri_util.lo
  CC     libdri_test_stubs_la-dri_test.lo
  CC     xmlconfig.lo
  CCLD   libdri_test_stubs.la
dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
    case __DRI_API_GLES3:
         ^
1 error generated.
make[7]: *** [dri_util.lo] Error 1

Do I need a different DRI/DRI2 proto?
>From which fdo GIT tree?
If YES, can you bump the required version in configure.ac?

Thanks!

Regards,
- Sedat -

P.S.: Check installed DRI/DRI2 proto version

$ dpkg -l | grep dri | grep proto | grep -e \-dev
ii  x11proto-dri2-dev                       2.8-1~precise1
                         X11 DRI2 extension wire protocol

- EOT -

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
  2013-01-24 10:14 mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3' Sedat Dilek
@ 2013-01-24 12:33 ` Sedat Dilek
  2013-01-24 18:31   ` [Mesa-dev] " Chad Versace
  0 siblings, 1 reply; 4+ messages in thread
From: Sedat Dilek @ 2013-01-24 12:33 UTC (permalink / raw)
  To: Ian Romanick; +Cc: mesa-dev, DRI

Hmm, switching to Ubuntu's distro-kernel, removing /opt/xorg and
building the XORG stuff from scratch...

1. libdrm-git
2. mesa-git
3. xf86-video-intel-git

...makes the errors go away.

OK, I had in my 3.8-rc4 kernel drm-intel-nightly integrated, but no
linux-headers package of this kernel installed.

Looks good.

$ sudo grep -A4 'LoadModule: "intel"' /var/log/Xorg.0.log
[    15.913] (II) LoadModule: "intel"
[    15.913] (II) Loading
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/intel_drv.so
[    15.957] (II) Module intel: vendor="X.Org Foundation"
[    15.957]    compiled for 1.11.3, module version = 2.20.19
[    15.957]    Module class: X.Org Video Driver

$ LIBGL_DEBUG=verbose glxinfo 2>/dev/null | grep -i opengl
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.0 Mesa 9.1-devel (git-6f3caaf) <--- VERSION 3.0!
OpenGL shading language version string: 1.30
OpenGL extensions:

- Sedat -

On Thu, Jan 24, 2013 at 11:14 AM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> Hi Ian,
>
> due to the changes in...
>
> e90c08e dri: Define enum __DRI_API_GLES3
>
> ...I get this breakage with mesa-gles3-git6f3caaf:
>
> make[7]: Entering directory
> `/home/wearefam/src/mesa/mesa-git/src/mesa/drivers/dri/common'
>   CC     utils.lo
>   CC     dri_util.lo
>   CC     libdri_test_stubs_la-dri_test.lo
>   CC     xmlconfig.lo
>   CCLD   libdri_test_stubs.la
> dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
>     case __DRI_API_GLES3:
>          ^
> 1 error generated.
> make[7]: *** [dri_util.lo] Error 1
>
> Do I need a different DRI/DRI2 proto?
> From which fdo GIT tree?
> If YES, can you bump the required version in configure.ac?
>
> Thanks!
>
> Regards,
> - Sedat -
>
> P.S.: Check installed DRI/DRI2 proto version
>
> $ dpkg -l | grep dri | grep proto | grep -e \-dev
> ii  x11proto-dri2-dev                       2.8-1~precise1
>                          X11 DRI2 extension wire protocol
>
> - EOT -

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Mesa-dev] mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
  2013-01-24 12:33 ` Sedat Dilek
@ 2013-01-24 18:31   ` Chad Versace
  2013-01-24 19:10     ` Sedat Dilek
  0 siblings, 1 reply; 4+ messages in thread
From: Chad Versace @ 2013-01-24 18:31 UTC (permalink / raw)
  To: sedat.dilek; +Cc: mesa-dev, DRI

FYI,

The enum is defined in mesa iteself at
#MESA_SOURCE/include/GL/internal/dri_interface.h. Your
problem was independent of dri2proto, kernel, drm, etc. I expect
your build environment was accidentally #including the header located
in /usr/include/GL/internal rather than the one in the mesa source tree.

On 01/24/2013 04:33 AM, Sedat Dilek wrote:
> Hmm, switching to Ubuntu's distro-kernel, removing /opt/xorg and
> building the XORG stuff from scratch...
> 
> 1. libdrm-git
> 2. mesa-git
> 3. xf86-video-intel-git
> 
> ...makes the errors go away.
> 
> OK, I had in my 3.8-rc4 kernel drm-intel-nightly integrated, but no
> linux-headers package of this kernel installed.
> 
> Looks good.
> 
> $ sudo grep -A4 'LoadModule: "intel"' /var/log/Xorg.0.log
> [    15.913] (II) LoadModule: "intel"
> [    15.913] (II) Loading
> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/intel_drv.so
> [    15.957] (II) Module intel: vendor="X.Org Foundation"
> [    15.957]    compiled for 1.11.3, module version = 2.20.19
> [    15.957]    Module class: X.Org Video Driver
> 
> $ LIBGL_DEBUG=verbose glxinfo 2>/dev/null | grep -i opengl
> OpenGL vendor string: Intel Open Source Technology Center
> OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
> OpenGL version string: 3.0 Mesa 9.1-devel (git-6f3caaf) <--- VERSION 3.0!
> OpenGL shading language version string: 1.30
> OpenGL extensions:
> 
> - Sedat -
> 
> On Thu, Jan 24, 2013 at 11:14 AM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
>> Hi Ian,
>>
>> due to the changes in...
>>
>> e90c08e dri: Define enum __DRI_API_GLES3
>>
>> ...I get this breakage with mesa-gles3-git6f3caaf:
>>
>> make[7]: Entering directory
>> `/home/wearefam/src/mesa/mesa-git/src/mesa/drivers/dri/common'
>>   CC     utils.lo
>>   CC     dri_util.lo
>>   CC     libdri_test_stubs_la-dri_test.lo
>>   CC     xmlconfig.lo
>>   CCLD   libdri_test_stubs.la
>> dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
>>     case __DRI_API_GLES3:
>>          ^
>> 1 error generated.
>> make[7]: *** [dri_util.lo] Error 1
>>
>> Do I need a different DRI/DRI2 proto?
>> From which fdo GIT tree?
>> If YES, can you bump the required version in configure.ac?
>>
>> Thanks!
>>
>> Regards,
>> - Sedat -
>>
>> P.S.: Check installed DRI/DRI2 proto version
>>
>> $ dpkg -l | grep dri | grep proto | grep -e \-dev
>> ii  x11proto-dri2-dev                       2.8-1~precise1
>>                          X11 DRI2 extension wire protocol
>>
>> - EOT -
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
  2013-01-24 18:31   ` [Mesa-dev] " Chad Versace
@ 2013-01-24 19:10     ` Sedat Dilek
  0 siblings, 0 replies; 4+ messages in thread
From: Sedat Dilek @ 2013-01-24 19:10 UTC (permalink / raw)
  To: Chad Versace; +Cc: mesa-dev, DRI

On Thu, Jan 24, 2013 at 7:31 PM, Chad Versace
<chad.versace@linux.intel.com> wrote:
> FYI,
>
> The enum is defined in mesa iteself at
> #MESA_SOURCE/include/GL/internal/dri_interface.h. Your
> problem was independent of dri2proto, kernel, drm, etc. I expect
> your build environment was accidentally #including the header located
> in /usr/include/GL/internal rather than the one in the mesa source tree.
>

Hmm, there is no such header file provided by any Ubuntu package.

$ ll /usr/include/GL/internal
insgesamt 16
drwxr-xr-x 2 root root 4096 Jan 23 03:48 ./
drwxr-xr-x 3 root root 4096 Jan 23 03:48 ../
-rw-r--r-- 1 root root 6318 Dez  3 18:33 glcore.h

$ dpkg -S /usr/include/GL/internal/glcore.h
x11proto-gl-dev: /usr/include/GL/internal/glcore.h

$ find /opt/xorg/ -name dri_interface.h
/opt/xorg/include/GL/internal/dri_interface.h

$ find /usr/include/ -name dri_interface.h
[ NO OUTPUT ]

$ find mesa-git/ -name dri_interface.h
mesa-git/include/GL/internal/dri_interface.h

- Sedat -

> On 01/24/2013 04:33 AM, Sedat Dilek wrote:
>> Hmm, switching to Ubuntu's distro-kernel, removing /opt/xorg and
>> building the XORG stuff from scratch...
>>
>> 1. libdrm-git
>> 2. mesa-git
>> 3. xf86-video-intel-git
>>
>> ...makes the errors go away.
>>
>> OK, I had in my 3.8-rc4 kernel drm-intel-nightly integrated, but no
>> linux-headers package of this kernel installed.
>>
>> Looks good.
>>
>> $ sudo grep -A4 'LoadModule: "intel"' /var/log/Xorg.0.log
>> [    15.913] (II) LoadModule: "intel"
>> [    15.913] (II) Loading
>> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/intel_drv.so
>> [    15.957] (II) Module intel: vendor="X.Org Foundation"
>> [    15.957]    compiled for 1.11.3, module version = 2.20.19
>> [    15.957]    Module class: X.Org Video Driver
>>
>> $ LIBGL_DEBUG=verbose glxinfo 2>/dev/null | grep -i opengl
>> OpenGL vendor string: Intel Open Source Technology Center
>> OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
>> OpenGL version string: 3.0 Mesa 9.1-devel (git-6f3caaf) <--- VERSION 3.0!
>> OpenGL shading language version string: 1.30
>> OpenGL extensions:
>>
>> - Sedat -
>>
>> On Thu, Jan 24, 2013 at 11:14 AM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
>>> Hi Ian,
>>>
>>> due to the changes in...
>>>
>>> e90c08e dri: Define enum __DRI_API_GLES3
>>>
>>> ...I get this breakage with mesa-gles3-git6f3caaf:
>>>
>>> make[7]: Entering directory
>>> `/home/wearefam/src/mesa/mesa-git/src/mesa/drivers/dri/common'
>>>   CC     utils.lo
>>>   CC     dri_util.lo
>>>   CC     libdri_test_stubs_la-dri_test.lo
>>>   CC     xmlconfig.lo
>>>   CCLD   libdri_test_stubs.la
>>> dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
>>>     case __DRI_API_GLES3:
>>>          ^
>>> 1 error generated.
>>> make[7]: *** [dri_util.lo] Error 1
>>>
>>> Do I need a different DRI/DRI2 proto?
>>> From which fdo GIT tree?
>>> If YES, can you bump the required version in configure.ac?
>>>
>>> Thanks!
>>>
>>> Regards,
>>> - Sedat -
>>>
>>> P.S.: Check installed DRI/DRI2 proto version
>>>
>>> $ dpkg -l | grep dri | grep proto | grep -e \-dev
>>> ii  x11proto-dri2-dev                       2.8-1~precise1
>>>                          X11 DRI2 extension wire protocol
>>>
>>> - EOT -
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-24 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 10:14 mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3' Sedat Dilek
2013-01-24 12:33 ` Sedat Dilek
2013-01-24 18:31   ` [Mesa-dev] " Chad Versace
2013-01-24 19:10     ` Sedat Dilek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.