|
From: caner <can...@gm...> - 2009-08-17 12:58:22
|
I am trying to compile linux-dri with USING_EGL=1 option. I've tried both the
main branch and opengl-es branch. Both of them cannot compile radeon_egl.c
with following error:
Have any idea?
/mesa-opengl-es/src/mesa/drivers/dri/r200# make USING_EGL=1
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/local/include -I/usr/local/include/drm -g -O2 -Wall
-Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC
-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE
-DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R200 server/radeon_egl.c -o
server/radeon_egl.o
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:361:1: warning: "GL_SRC0_RGB" redefined
In file included from ../../../../../src/egl/main/eglconfig.h:6,
from server/radeon_egl.c:15:
../../../../../include/GLES/gl.h:568:1: warning: this is the location of the
previous definition
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:362:1: warning: "GL_SRC1_RGB" redefined
In file included from ../../../../../src/egl/main/eglconfig.h:6,
from server/radeon_egl.c:15:
../../../../../include/GLES/gl.h:569:1: warning: this is the location of the
previous definition
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:363:1: warning: "GL_SRC2_RGB" redefined
In file included from ../../../../../src/egl/main/eglconfig.h:6,
from server/radeon_egl.c:15:
../../../../../include/GLES/gl.h:570:1: warning: this is the location of the
previous definition
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:364:1: warning: "GL_SRC0_ALPHA" redefined
In file included from ../../../../../src/egl/main/eglconfig.h:6,
from server/radeon_egl.c:15:
../../../../../include/GLES/gl.h:571:1: warning: this is the location of the
previous definition
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:365:1: warning: "GL_SRC1_ALPHA" redefined
In file included from ../../../../../src/egl/main/eglconfig.h:6,
from server/radeon_egl.c:15:
../../../../../include/GLES/gl.h:572:1: warning: this is the location of the
previous definition
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:366:1: warning: "GL_SRC2_ALPHA" redefined
In file included from ../../../../../src/egl/main/eglconfig.h:6,
from server/radeon_egl.c:15:
../../../../../include/GLES/gl.h:573:1: warning: this is the location of the
previous definition
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:3976: error: redefinition of typedef
‘GLintptr’
../../../../../include/GLES/gl.h:61: error: previous declaration of
‘GLintptr’ was here
../../../../../include/GL/glext.h:3977: error: redefinition of typedef
‘GLsizeiptr’
../../../../../include/GLES/gl.h:62: error: previous declaration of
‘GLsizeiptr’ was here
In file included from ../../../../../src/mesa/main/glheader.h:54,
from
../../../../../src/mesa/drivers/dri/common/dri_util.h:54,
from ../../../../../src/egl/drivers/dri/egldri.h:12,
from server/radeon_egl.c:24:
../../../../../include/GL/glext.h:4130: error: expected declaration
specifiers or ‘...’ before ‘GLdouble’
../../../../../include/GL/glext.h:4131: warning: type defaults to ‘int’ in
declaration of ‘GLdouble’
../../../../../include/GL/glext.h:4131: error: expected ‘;’, ‘,’ or ‘)’
before ‘*’ token
.....................
................Some other error messages from glext.h
../../../../../include/GL/glext.h:8476: error: expected declaration
specifiers or ‘...’ before ‘GLdouble’
server/radeon_egl.c:26:20: error: mtypes.h: No such file or directory
In file included from server/radeon_egl.c:27:
../../../../../src/mesa/drivers/dri/common/memops.h:7: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
server/radeon_egl.c: In function ‘RADEONSetParam’:
server/radeon_egl.c:56: warning: too many arguments for format
server/radeon_egl.c: In function ‘RADEONDRIPciInit’:
server/radeon_egl.c:169: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c:179: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c:189: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c:199: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c: In function ‘RADEONDRIAgpInit’:
server/radeon_egl.c:293: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c:305: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c:315: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c:325: warning: format ‘%08lx’ expects type ‘long unsigned
int’, but argument 3 has type ‘drm_handle_t’
server/radeon_egl.c: In function ‘RADEONMemoryInit’:
server/radeon_egl.c:414: warning: format ‘%x’ expects type ‘unsigned int’,
but argument 4 has type ‘long unsigned int’
server/radeon_egl.c:339: warning: unused variable ‘cpp’
server/radeon_egl.c: In function ‘RADEONScreenInit’:
server/radeon_egl.c:700: warning: implicit declaration of function
‘drimemsetio’
server/radeon_egl.c: In function ‘radeonFillInConfigs’:
server/radeon_egl.c:966: warning: implicit declaration of function
‘_eglFillInConfigs’
server/radeon_egl.c: At top level:
server/radeon_egl.c:1072: error: conflicting types for ‘_eglMain’
../../../../../src/egl/main/egldriver.h:47: error: previous declaration of
‘_eglMain’ was here
make: *** [server/radeon_egl.o] Error 1
--
View this message in context: http://www.nabble.com/radeon_egl.c---incompatible-headers-tp25006299p25006299.html
Sent from the mesa3d-users mailing list archive at Nabble.com.
|