Build Failure: xserver/GL/glx/glxdri.c
R. G. Newbury
newbury at mandamus.org
Tue Jan 22 05:56:54 PST 2008
I am getting s build failure in /xserver/GL/glx/glxdr.c
There are a mass of reported errors, and I am unable to see where/how
these originate. I first thought that it was a 'header-visibility'
problem, but after making and installing mesa, and tweaking the DEFAULT
INCLUDE line in the ../glx makefile to put directly at the relevant mesa
folder, I get the same error.
This is the error portion:
glxglcore.c:436: warning: no previous prototype for 'GlxGetMesaProvider'
indirect_program.c: In function 'DoGetProgramString':
indirect_program.c:103: warning: pointer targets in passing argument 3
of '*((void (**)(void))(get_program_string_offset * 4u) +
(_glapi_Dispatch))' differ in signedness
indirect_texture_compression.c: In function
'__glXDispSwap_GetCompressedTexImageARB':
indirect_texture_compression.c:96: warning: 'answer' may be used
uninitialized in this function
indirect_texture_compression.c: In function
'__glXDisp_GetCompressedTexImageARB':
indirect_texture_compression.c:56: warning: 'answer' may be used
uninitialized in this function
render2.c:262: warning: no previous prototype for '__glXDisp_DrawArraysEXT'
render2swap.c:373: warning: no previous prototype for
'__glXDispSwap_DrawArraysEXT'
glxdri.c:79: error: expected specifier-qualifier-list before
'__DRIcopySubBufferExtension'
glxdri.c:112: error: '__DRI_CREATE_NEW_SCREEN_STRING' undeclared here
(not in a function)
glxdri.c: In function '__glXDRIleaveServer':
glxdri.c:122: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c:122: warning: initialization makes integer from pointer without
a cast
glxdri.c:125: error: '__GLXDRIscreen' has no member named
'texOffsetOverride'
glxdri.c:125: warning: initialization from incompatible pointer type
glxdri.c:131: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:132: error: '__GLXDRIdrawable' has no member named 'offset'
glxdri.c:133: error: '__GLXDRIscreen' has no member named 'texOffsetStart'
glxdri.c:133: error: called object '<erroneous-expression>' is not a
function
glxdri.c:133: warning: statement with no effect
glxdri.c:144: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c:144: warning: initialization makes integer from pointer without
a cast
glxdri.c:147: error: '__GLXDRIscreen' has no member named
'texOffsetOverride'
glxdri.c:147: warning: initialization from incompatible pointer type
glxdri.c:153: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:154: error: '__GLXDRIscreen' has no member named 'texOffset'
glxdri.c:154: error: request for member 'setTexOffset' in something not
a structure or union
glxdri.c:154: error: '__GLXDRIdrawable' has no member named 'ctx'
glxdri.c:154: error: request for member 'driContext' in something not a
structure or union
glxdri.c:155: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:156: error: '__GLXDRIdrawable' has no member named 'offset'
glxdri.c:158: error: called object '<erroneous-expression>' is not a
function
glxdri.c:158: warning: statement with no effect
glxdri.c: In function '__glXDRIenterServer':
glxdri.c:174: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c: In function '__glXDRIdrawableDestroy':
glxdri.c:188: error: too few arguments to function
'private->driDrawable.destroyDrawable'
glxdri.c:188: warning: statement with no effect
glxdri.c: In function '__glXDRIdrawableSwapBuffers':
glxdri.c:216: error: too few arguments to function
'private->driDrawable.swapBuffers'
glxdri.c:216: warning: statement with no effect
glxdri.c: In function '__glXDRIdrawableSwapInterval':
glxdri.c:229: error: '__GLXDRIscreen' has no member named 'swapControl'
glxdri.c:230: error: '__GLXDRIscreen' has no member named 'swapControl'
glxdri.c:230: error: request for member 'setSwapInterval' in something
not a structure or union
glxdri.c:230: error: called object '<erroneous-expression>' is not a
function
glxdri.c:230: warning: statement with no effect
glxdri.c: In function '__glXDRIdrawableCopySubBuffer':
glxdri.c:244: error: '__GLXDRIscreen' has no member named 'copySubBuffer'
glxdri.c:245: error: '__GLXDRIscreen' has no member named 'copySubBuffer'
glxdri.c:245: error: request for member 'copySubBuffer' in something not
a structure or union
glxdri.c:246: error: called object '<erroneous-expression>' is not a
function
glxdri.c:246: warning: statement with no effect
glxdri.c: In function '__glXDRIcontextDestroy':
glxdri.c:255: error: too few arguments to function
'context->driContext.destroyContext'
glxdri.c:255: warning: statement with no effect
glxdri.c: In function '__glXDRIcontextMakeCurrent':
glxdri.c:274: warning: passing argument 2 of
'context->driContext.bindContext' makes integer from pointer without a cast
glxdri.c:274: warning: passing argument 3 of
'context->driContext.bindContext' makes integer from pointer without a cast
glxdri.c:274: error: too few arguments to function
'context->driContext.bindContext'
glxdri.c:274: warning: return makes integer from pointer without a cast
glxdri.c: In function '__glXDRIcontextLoseCurrent':
glxdri.c:282: error: too few arguments to function
'context->driContext.unbindContext'
glxdri.c:282: warning: return makes integer from pointer without a cast
glxdri.c: In function '__glXDRIcontextForceCurrent':
glxdri.c:309: warning: passing argument 2 of
'context->driContext.bindContext' makes integer from pointer without a cast
glxdri.c:309: warning: passing argument 3 of
'context->driContext.bindContext' makes integer from pointer without a cast
glxdri.c:309: error: too few arguments to function
'context->driContext.bindContext'
glxdri.c:309: warning: return makes integer from pointer without a cast
glxdri.c: In function '__glXDRIbindTexImage':
glxdri.c:367: error: '__GLXDRIscreen' has no member named 'texOffsetStart'
glxdri.c:367: error: '__GLXDRIscreen' has no member named 'texOffset'
glxdri.c:368: error: '__GLXDRIscreen' has no member named
'texOffsetOverride'
glxdri.c:368: warning: initialization from incompatible pointer type
glxdri.c:384: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c:384: warning: comparison between pointer and integer
glxdri.c:385: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c:385: warning: statement with no effect
glxdri.c:392: error: '__GLXDRIdrawable' has no member named 'ctx'
glxdri.c:392: warning: statement with no effect
glxdri.c:394: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:394: warning: comparison between pointer and integer
glxdri.c:397: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:397: warning: statement with no effect
glxdri.c:399: error: '__GLXDRIscreen' has no member named 'texOffset'
glxdri.c:399: error: request for member 'setTexOffset' in something not
a structure or union
glxdri.c:399: error: '__GLXDRIdrawable' has no member named 'ctx'
glxdri.c:399: error: request for member 'driContext' in something not a
structure or union
glxdri.c:401: error: called object '<erroneous-expression>' is not a
function
glxdri.c:401: warning: statement with no effect
glxdri.c:405: error: '__GLXDRIdrawable' has no member named 'pDamage'
glxdri.c:407: error: '__GLXDRIdrawable' has no member named 'pDamage'
glxdri.c:408: warning: statement with no effect
glxdri.c:409: error: '__GLXDRIdrawable' has no member named 'pDamage'
glxdri.c:412: error: '__GLXDRIdrawable' has no member named 'pDamage'
glxdri.c:412: warning: passing argument 2 of 'DamageRegister' from
incompatible pointer type
glxdri.c:417: error: '__GLXDRIdrawable' has no member named 'pDamage'
glxdri.c:417: warning: passing argument 1 of 'DamageRegion' from
incompatible pointer type
glxdri.c:518: error: '__GLXDRIdrawable' has no member named 'pDamage'
glxdri.c:518: warning: passing argument 1 of 'DamageEmpty' from
incompatible pointer type
glxdri.c: In function '__glXDRIreleaseTexImage':
glxdri.c:533: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c:533: warning: initialization makes integer from pointer without
a cast
glxdri.c:536: error: '__GLXDRIscreen' has no member named
'texOffsetOverride'
glxdri.c:536: warning: initialization from incompatible pointer type
glxdri.c:541: error: '__GLXDRIscreen' has no member named 'texOffsetFinish'
glxdri.c:542: error: '__GLXDRIscreen' has no member named 'texOffsetFinish'
glxdri.c:542: error: called object '<erroneous-expression>' is not a
function
glxdri.c:542: warning: statement with no effect
glxdri.c:556: error: '__GLXDRIscreen' has no member named
'lastTexOffsetOverride'
glxdri.c:556: warning: statement with no effect
glxdri.c: In function '__glXDRIscreenDestroy':
glxdri.c:577: error: too few arguments to function
'screen->driScreen.destroyScreen'
glxdri.c:577: warning: statement with no effect
glxdri.c: In function '__glXDRIscreenCreateContext':
glxdri.c:639: warning: passing argument 5 of
'screen->driScreen.createNewContext' makes pointer from integer without
a cast
glxdri.c:639: error: too many arguments to function
'screen->driScreen.createNewContext'
glxdri.c: In function '__glXDRIscreenCreateDrawable':
glxdri.c:685: warning: passing argument 3 of
'driScreen->driScreen.createNewDrawable' makes integer from pointer
without a cast
glxdri.c:685: warning: passing argument 4 of
'driScreen->driScreen.createNewDrawable' makes pointer from integer
without a cast
glxdri.c: At top level:
glxdri.c:798: warning: initialization from incompatible pointer type
glxdri.c:799: warning: initialization from incompatible pointer type
glxdri.c:801: warning: initialization from incompatible pointer type
glxdri.c:803: warning: initialization from incompatible pointer type
glxdri.c:806: warning: initialization from incompatible pointer type
glxdri.c: In function 'initializeExtensions':
glxdri.c:843: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
glxdri.c:843: error: 'extensions' undeclared (first use in this function)
glxdri.c:843: error: (Each undeclared identifier is reported only once
glxdri.c:843: error: for each function it appears in.)
glxdri.c:843: error: invalid type argument of 'unary *'
glxdri.c:843: warning: statement with no effect
glxdri.c:846: error: '__DRIscreen' has no member named 'getExtensions'
glxdri.c:846: error: called object '<erroneous-expression>' is not a
function
glxdri.c:846: warning: statement with no effect
glxdri.c: In function '__glXDRIscreenProbe':
glxdri.c:928: error: '__GLXDRIscreen' has no member named 'glx_enable_bits'
glxdri.c:928: warning: passing argument 1 of
'__glXInitExtensionEnableBits' discards qualifiers from pointer target type
glxdri.c:1062: warning: passing argument 1 of 'createNewScreen' makes
pointer from integer without a cast
glxdri.c:1062: warning: passing argument 2 of 'createNewScreen' makes
integer from pointer without a cast
glxdri.c:1062: warning: passing argument 3 of 'createNewScreen' from
incompatible pointer type
glxdri.c:1062: warning: passing argument 4 of 'createNewScreen' from
incompatible pointer type
glxdri.c:1062: warning: passing argument 6 of 'createNewScreen' from
incompatible pointer type
glxdri.c:1062: warning: passing argument 8 of 'createNewScreen' makes
pointer from integer without a cast
glxdri.c:1062: warning: passing argument 9 of 'createNewScreen' makes
pointer from integer without a cast
glxdri.c:1062: warning: passing argument 10 of 'createNewScreen' makes
integer from pointer without a cast
glxdri.c:1062: warning: passing argument 11 of 'createNewScreen' makes
integer from pointer without a cast
glxdri.c:1062: error: too few arguments to function 'createNewScreen'
glxdri.c:1062: warning: assignment discards qualifiers from pointer
target type
glxdri.c:1069: error: '__GLXDRIscreen' has no member named 'texOffsetStart'
glxdri.c:1070: error: '__GLXDRIscreen' has no member named 'texOffsetFinish'
glxdri.c:1070: warning: passing argument 2 of 'DRIGetTexOffsetFuncs'
from incompatible pointer type
glxdri.c:1070: warning: passing argument 3 of 'DRIGetTexOffsetFuncs'
from incompatible pointer type
glxdri.c:1076: error: '__GLXDRIscreen' has no member named 'glx_enable_bits'
glxdri.c:1076: warning: pointer targets in passing argument 1 of
'__glXGetExtensionString' differ in signedness
glxdri.c:1083: error: '__GLXDRIscreen' has no member named 'glx_enable_bits'
glxdri.c:1084: warning: pointer targets in passing argument 1 of
'__glXGetExtensionString' differ in signedness
make[2]: *** [glxdri.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
More information about the xorg
mailing list