Bug 15626 - Xserver 1.5 branch can't compile with mesa 7.0.3
Summary: Xserver 1.5 branch can't compile with mesa 7.0.3
Status: VERIFIED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: haihao
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-21 00:34 UTC by Shuang He
Modified: 2008-10-12 19:09 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Shuang He 2008-04-21 00:34:35 UTC
Bug detailed description:
-------------------------
It is ok to compile xserver 1.4 branch with mesa 7.0.3.
compile xerver 1.5 branch with mesa 7.0.3 will get following errors:

(cd .libs && rm -f libglx.la && ln -s ../libglx.la libglx.la)
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus -I../../hw/xfree86/common -I../../hw/xfree86/dri -I../../hw/xfree86/dri2 -I../../mi   -I/GFX/build/component/Mesa/mesa/include -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/X11R7/include -I/usr/include/freetype2 -I/opt/X11R7/include/pixman-1   -I/usr/kerberos/include   -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow  -I../../miext/damage -I../../render -I../../randr -I../../fb -I/opt/X11R7/include -I/opt/X11R7/include -I/opt/X11R7/include -I/opt/X11R7/include/drm -I/opt/X11R7/include/X11/dri -I/GFX/build/component/Mesa/mesa/src/mesa/glapi -I/GFX/build/component/Mesa/mesa/src/mesa/main -DXFree86Server  -g -O2 -MT glxdri.lo -MD -MP -MF ".deps/glxdri.Tpo" -c -o glxdri.lo glxdri.c; \
then mv -f ".deps/glxdri.Tpo" ".deps/glxdri.Plo"; else rm -f ".deps/glxdri.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus -I../../hw/xfree86/common -I../../hw/xfree86/dri -I../../hw/xfree86/dri2 -I../../mi -I/GFX/build/component/Mesa/mesa/include -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/X11R7/include -I/usr/include/freetype2 -I/opt/X11R7/include/pixman-1 -I/usr/kerberos/include -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I/opt/X11R7/include -I/opt/X11R7/include -I/opt/X11R7/include -I/opt/X11R7/include/drm -I/opt/X11R7/include/X11/dri -I/GFX/build/component/Mesa/mesa/src/mesa/glapi -I/GFX/build/component/Mesa/mesa/src/mesa/main -DXFree86Server -g -O2 -MT glxdri.lo -MD -MP -MF .deps/glxdri.Tpo -c glxdri.c  -fPIC -DPIC -o .libs/glxdri.o
glxdri.c:76: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
glxdri.c:113: error: expected specifier-qualifier-list before '__DRIconfig'
glxdri.c: In function '__glXDRIleaveServer':
glxdri.c:124: error: '__GLXDRIscreen' has no member named 'lastTexOffsetOverride'
glxdri.c:127: error: '__GLXDRIscreen' has no member named 'texOffsetOverride'
glxdri.c:133: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:134: error: '__GLXDRIdrawable' has no member named 'offset'
glxdri.c:135: error: '__GLXDRIscreen' has no member named 'texOffsetStart'
glxdri.c:146: error: '__GLXDRIscreen' has no member named 'lastTexOffsetOverride'
glxdri.c:149: error: '__GLXDRIscreen' has no member named 'texOffsetOverride'
glxdri.c:155: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:156: error: '__GLXDRIscreen' has no member named 'texOffset'
glxdri.c:156: error: '__GLXDRIdrawable' has no member named 'ctx'
glxdri.c:157: error: '__GLXDRIdrawable' has no member named 'texname'
glxdri.c:158: error: '__GLXDRIdrawable' has no member named 'offset'
glxdri.c: In function '__glXDRIenterServer':
glxdri.c:176: error: '__GLXDRIscreen' has no member named 'lastTexOffsetOverride'
glxdri.c: In function '__glXDRIdoReleaseTexImage':
glxdri.c:189: error: '__GLXDRIscreen' has no member named 'lastTexOffsetOverride'



Reproduce steps:
----------------
1. get mesa 7.0.3 code
2. get xserver 1.5 branch
3. compile xserver with mesa 7.0.3


Expected result:
----------------
should compile successfully
Comment 1 Michael Fu 2008-04-30 16:20:39 UTC
Some commits from Krh depend on a macro which isn't included in mesa7.0.3. -- haihao

can we fix this?
Comment 2 haihao 2008-05-03 20:24:07 UTC
Hi, Kristian
    Can we simply cherry-pick commit 6d48779c7e5c9002d1bec4b1266ca05a474218ef( Add TTM buffer object based texture from pixmap implementation) into mesa_7_0_branch, even if __DRI_TEX_BUFFER isn't used in mesa7_0_branch?
Comment 3 Shuang He 2008-10-12 19:09:25 UTC
verified 


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.