[Xquartz-dev] 2.3.2_beta3 on Tiger in X11R7.2

Peter Dyballa Peter_Dyballa at Freenet.DE
Thu Nov 20 14:07:24 PST 2008


Am 20.11.2008 um 19:37 schrieb Peter Dyballa:

>>
>> There are also glapi.h and glapitable.h missing. 1.5.99.1 and
>> 1.3.99.0 have both files in xserver/glx resp. xserver/GL/mesa/glapi.
>> Could be it's my fault that I have Mesa 7.2 prepared (I can go back
>> to Mesa 7.0.2).
>
> These C header were found when I left away --disable-glx from from
> configure's invocation. Letting enabling happen automatically
> introduced new errors, that may come from the fact that I was
> compiling with Mesa 7.2.0:
>
> glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
> glcontextmodes.c:193: error: 'struct __GLcontextModesRec' has no
> member named 'bindToTextureRgb'
> glcontextmodes.c:194: error: 'struct __GLcontextModesRec' has no
> member named 'bindToTextureRgba'
> glcontextmodes.c:196: error: 'struct __GLcontextModesRec' has no
> member named 'bindToMipmapTexture'
> glcontextmodes.c:197: error: 'struct __GLcontextModesRec' has no
> member named 'bindToTextureTargets'
> glcontextmodes.c:200: error: 'struct __GLcontextModesRec' has no
> member named 'yInverted'
>
> and also in functions _gl_get_context_mode_data,
> _gl_context_modes_create, and _gl_context_modes_are_same.
>
> The error with xserver/GL/indirect.c changed to:
>
> indirect.c: In function 'setup_dispatch_table':
> indirect.c:1268: error: 'glBlitFramebufferEXT' undeclared (first use
> in this function)
> indirect.c:1268: error: (Each undeclared identifier is reported only
> once
> indirect.c:1268: error: for each function it appears in.)
> indirect.c:1598: warning: assignment from incompatible pointer type
> indirect.c:1768: warning: assignment from incompatible pointer type
> indirect.c:1823: warning: assignment from incompatible pointer type
> indirect.c:1824: warning: assignment from incompatible pointer type
> indirect.c:1825: warning: assignment from incompatible pointer type



Now Mesa 7.0.2 definitely was used (although -H was forgotten!):

/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H - 
I. -I../../include -I../../hw/xfree86/os-support -I../../hw/xfree86/ 
os-support/bus -I../../hw/xfree86/common -I../../hw/xfree86/dri - 
I../../mi  -v -no-cpp-precomp -I/usr/X11/include -I/usr/local/include  
-I…/Mesa-7.0.2/include -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith - 
Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations - 
Wnested-externs -fno-strict-aliasing -I/sw/lib/freetype219/include/ 
freetype2 -I/sw/lib/freetype219/include -I/usr/X11R7.2/include -I/usr/ 
X11R7.2/include/pixman-1 -D_BSD_SOURCE -DHAS_FCHOWN - 
DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext  - 
I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/ 
shadow  -I../../miext/damage -I../../render -I../../randr -I../../fb - 
I/usr/X11R7.2/include -I/usr/X11R7.2/include -I…/Mesa-7.0.2/src/mesa/ 
glapi -I…/Mesa-7.0.2/src/mesa/main -DXFree86Server  -v -pipe -fPIC - 
O0 -mcpu=7450 -mtune=7450 -fno-common -DROOTLESS_WORKAROUND - 
DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT glcontextmodes.lo -MD -MP - 
MF .deps/glcontextmodes.Tpo -c -o glcontextmodes.lo glcontextmodes.c
  gcc -DHAVE_CONFIG_H -I. -I../../include -I../../hw/xfree86/os- 
support -I../../hw/xfree86/os-support/bus -I../../hw/xfree86/common - 
I../../hw/xfree86/dri -I../../mi -v -no-cpp-precomp -I/usr/X11/ 
include -I/usr/local/include -I…/Mesa-7.0.2/include - 
DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes - 
Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno- 
strict-aliasing -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/ 
freetype219/include -I/usr/X11R7.2/include -I/usr/X11R7.2/include/ 
pixman-1 -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../ 
include -I../../include -I../../Xext -I../../damageext -I../../xfixes  
-I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage - 
I../../render -I../../randr -I../../fb -I/usr/X11R7.2/include -I/usr/ 
X11R7.2/include -I…/Mesa-7.0.2/src/mesa/glapi -I…/Mesa-7.0.2/src/mesa/ 
main -DXFree86Server -v -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -fno- 
common -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT  
glcontextmodes.lo -MD -MP -MF .deps/glcontextmodes.Tpo -c  
glcontextmodes.c  -DPIC
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- 
target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
  /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1 -quiet -v -v -I. - 
I../../include -I../../hw/xfree86/os-support -I../../hw/xfree86/os- 
support/bus -I../../hw/xfree86/common -I../../hw/xfree86/dri -I../../ 
mi -I/usr/X11/include -I/usr/local/include -I…/Mesa-7.0.2/include -I/ 
sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/ 
usr/X11R7.2/include -I/usr/X11R7.2/include/pixman-1 -I../../include - 
I../../include -I../../Xext -I../../damageext -I../../xfixes -I../../ 
Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../ 
render -I../../randr -I../../fb -I/usr/X11R7.2/include -I/usr/X11R7.2/ 
include -I…/Mesa-7.0.2/src/mesa/glapi -I…/Mesa-7.0.2/src/mesa/main - 
MD glcontextmodes.d -MF .deps/glcontextmodes.Tpo -MP -MT  
glcontextmodes.lo -D__DYNAMIC__ -DHAVE_CONFIG_H -DHAVE_DIX_CONFIG_H - 
D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DXFree86Server - 
DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -DPIC  
glcontextmodes.c -fPIC -quiet -dumpbase glcontextmodes.c -mmacosx- 
version-min=10.3 -mcpu=7450 -mtune=7450 -auxbase glcontextmodes -O0 - 
Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes - 
Wmissing-declarations -Wnested-externs -version -fno-strict-aliasing - 
fPIC -fno-common -o - |
  /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/as -arch ppc -o  
glcontextmodes.o
ignoring nonexistent directory "/usr/lib/gcc/powerpc-apple- 
darwin8/4.0.1/../../../../powerpc-apple-darwin8/include"
ignoring duplicate directory "/usr/local/include"
   as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/usr/X11R7.2/include"
ignoring duplicate directory "../../include"
ignoring duplicate directory "../../include"
ignoring duplicate directory "../../mi"
ignoring duplicate directory "/usr/X11R7.2/include"
ignoring duplicate directory "/usr/X11R7.2/include"
#include "..." search starts here:
#include <...> search starts here:
  .
  ../../include
  ../../hw/xfree86/os-support
  ../../hw/xfree86/os-support/bus
  ../../hw/xfree86/common
  ../../hw/xfree86/dri
  ../../mi
  /usr/X11/include
  …/Mesa-7.0.2/include
  /sw/lib/freetype219/include/freetype2
  /sw/lib/freetype219/include
  /usr/X11R7.2/include/pixman-1
  ../../Xext
  ../../damageext
  ../../xfixes
  ../../Xi
  ../../miext/shadow
  ../../miext/damage
  ../../render
  ../../randr
  ../../fb
  …/Mesa-7.0.2/src/mesa/glapi
  …/Mesa-7.0.2/src/mesa/main
  /usr/local/include
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
  /usr/include
  /System/Library/Frameworks
  /Library/Frameworks
End of search list.
GNU C version 4.0.1 (Apple Computer, Inc. build 5370) (powerpc-apple- 
darwin8)
	compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5370).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min- 
heapsize=131072
Compiler executable checksum: 3454962cf795bd057f0e1f7c1c917abd
glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
glcontextmodes.c:190: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgb'
glcontextmodes.c:191: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgba'
glcontextmodes.c:193: error: 'struct __GLcontextModesRec' has no  
member named 'bindToMipmapTexture'
glcontextmodes.c:194: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureTargets'
glcontextmodes.c:197: error: 'struct __GLcontextModesRec' has no  
member named 'yInverted'
glcontextmodes.c: In function '_gl_get_context_mode_data':
glcontextmodes.c:330: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgb'
glcontextmodes.c:333: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgba'
glcontextmodes.c:336: error: 'struct __GLcontextModesRec' has no  
member named 'bindToMipmapTexture'
glcontextmodes.c:339: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureTargets'
glcontextmodes.c:342: error: 'struct __GLcontextModesRec' has no  
member named 'yInverted'
glcontextmodes.c: In function '_gl_context_modes_create':
glcontextmodes.c:414: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgb'
glcontextmodes.c:415: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgba'
glcontextmodes.c:416: error: 'struct __GLcontextModesRec' has no  
member named 'bindToMipmapTexture'
glcontextmodes.c:417: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureTargets'
glcontextmodes.c:418: error: 'struct __GLcontextModesRec' has no  
member named 'yInverted'
glcontextmodes.c: In function '_gl_context_modes_are_same':
glcontextmodes.c:532: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgb'
glcontextmodes.c:532: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgb'
glcontextmodes.c:533: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgba'
glcontextmodes.c:533: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureRgba'
glcontextmodes.c:534: error: 'struct __GLcontextModesRec' has no  
member named 'bindToMipmapTexture'
glcontextmodes.c:534: error: 'struct __GLcontextModesRec' has no  
member named 'bindToMipmapTexture'
glcontextmodes.c:535: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureTargets'
glcontextmodes.c:535: error: 'struct __GLcontextModesRec' has no  
member named 'bindToTextureTargets'
glcontextmodes.c:536: error: 'struct __GLcontextModesRec' has no  
member named 'yInverted'
glcontextmodes.c:536: error: 'struct __GLcontextModesRec' has no  
member named 'yInverted'
glcontextmodes.c:537: warning: control reaches end of non-void function
make[2]: *** [glcontextmodes.lo] Error 1

I think this failure is the cause why 10,000 lines later I have:

	ranlib: file: .libs/libGLcore.a(dummy.o) has no symbols
	ranlib: file: .libs/libGLcore.a(m_debug_clip.o) has no symbols
	ranlib: file: .libs/libGLcore.a(m_debug_norm.o) has no symbols
	ranlib: file: .libs/libGLcore.a(m_debug_xform.o) has no symbols
	ranlib .libs/libGLcore.a
	ranlib: file: .libs/libGLcore.a(dummy.o) has no symbols
	ranlib: file: .libs/libGLcore.a(m_debug_clip.o) has no symbols
	ranlib: file: .libs/libGLcore.a(m_debug_norm.o) has no symbols
	ranlib: file: .libs/libGLcore.a(m_debug_xform.o) has no symbols
	rm -fr .libs/libGLcore.lax
	creating libGLcore.la
	(cd .libs && rm -f libGLcore.la && ln -s ../libGLcore.la libGLcore.la)
	make[2]: Nothing to be done for `all-am'.
	make[1]: *** [all-recursive] Error 1
	make[1]: Target `all' not remade because of errors.
	Making all in exa

And also here:

  gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../GL/ 
glx -I../../../GL/include -I../../../GL/mesa/glapi -I../../../hw/ 
xquartz -I../../../hw/xquartz/xpr -I../../../miext/damage -v -no-cpp- 
precomp -I/usr/X11/include -I/usr/local/include -DHAVE_DIX_CONFIG_H - 
Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes - 
Wmissing-declarations -Wnested-externs -fno-strict-aliasing -I/sw/lib/ 
freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/usr/ 
X11R7.2/include -I/usr/X11R7.2/include/pixman-1 -D_BSD_SOURCE - 
DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../include -I../../../ 
include -I../../../Xext -I../../../damageext -I../../../xfixes - 
I../../../Xi -I../../../mi -I../../../miext/shadow -I../../../miext/ 
damage -I../../../render -I../../../randr -I../../../fb -v -pipe - 
fPIC -O0 -mcpu=7450 -mtune=7450 -fno-common -DROOTLESS_WORKAROUND - 
DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT indirect.lo -MD -MP -MF .deps/ 
indirect.Tpo -c indirect.c  -DPIC
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- 
target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
  /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1 -quiet -v -v -I. - 
I../../../include -I../../.. -I../../../GL/glx -I../../../GL/include - 
I../../../GL/mesa/glapi -I../../../hw/xquartz -I../../../hw/xquartz/ 
xpr -I../../../miext/damage -I/usr/X11/include -I/usr/local/include - 
I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include - 
I/usr/X11R7.2/include -I/usr/X11R7.2/include/pixman-1 -I../../../ 
include -I../../../include -I../../../Xext -I../../../damageext - 
I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/shadow - 
I../../../miext/damage -I../../../render -I../../../randr -I../../../ 
fb -MD indirect.d -MF .deps/indirect.Tpo -MP -MT indirect.lo - 
D__DYNAMIC__ -DHAVE_CONFIG_H -DHAVE_DIX_CONFIG_H -D_BSD_SOURCE - 
DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DROOTLESS_WORKAROUND - 
DROOTLESS_SAFEALPHA -DNO_ALLOCA -DPIC indirect.c -fPIC -quiet - 
dumpbase indirect.c -mmacosx-version-min=10.3 -mcpu=7450 -mtune=7450 - 
auxbase indirect -O0 -Wall -Wpointer-arith -Wstrict-prototypes - 
Wmissing-prototypes -Wmissing-declarations -Wnested-externs -version - 
fno-strict-aliasing -fPIC -fno-common -o - |
  /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/as -arch ppc -o  
indirect.o
ignoring nonexistent directory "/usr/lib/gcc/powerpc-apple- 
darwin8/4.0.1/../../../../powerpc-apple-darwin8/include"
ignoring nonexistent directory "../../../GL/include"
ignoring duplicate directory "/usr/local/include"
   as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/usr/X11R7.2/include"
ignoring duplicate directory "../../../include"
ignoring duplicate directory "../../../include"
ignoring duplicate directory "../../../miext/damage"
#include "..." search starts here:
#include <...> search starts here:
  .
  ../../../include
  ../../..
  ../../../GL/glx
  ../../../GL/mesa/glapi
  ../../../hw/xquartz
  ../../../hw/xquartz/xpr
  ../../../miext/damage
  /usr/X11/include
  /sw/lib/freetype219/include/freetype2
  /sw/lib/freetype219/include
  /usr/X11R7.2/include/pixman-1
  ../../../Xext
  ../../../damageext
  ../../../xfixes
  ../../../Xi
  ../../../mi
  ../../../miext/shadow
  ../../../render
  ../../../randr
  ../../../fb
  /usr/local/include
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
  /usr/include
  /System/Library/Frameworks
  /Library/Frameworks
End of search list.
GNU C version 4.0.1 (Apple Computer, Inc. build 5370) (powerpc-apple- 
darwin8)
	compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5370).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min- 
heapsize=131072
Compiler executable checksum: 3454962cf795bd057f0e1f7c1c917abd
indirect.c: In function 'setup_dispatch_table':
indirect.c:1268: error: 'glBlitFramebufferEXT' undeclared (first use  
in this function)
indirect.c:1268: error: (Each undeclared identifier is reported only  
once
indirect.c:1268: error: for each function it appears in.)
indirect.c:1598: warning: assignment from incompatible pointer type
indirect.c:1768: warning: assignment from incompatible pointer type
indirect.c:1823: warning: assignment from incompatible pointer type
indirect.c:1824: warning: assignment from incompatible pointer type
indirect.c:1825: warning: assignment from incompatible pointer type


make[4]: *** No rule to make target `../../../hw/xquartz/ 
libXquartz.la', needed by `X11'.
make[4]: Target `all-am' not remade because of errors.
make[3]: *** [all] Error 2
Making all in doc

Do I need Mesa 7.0.4? In Mesa 7.0.2 the variable is defined:

./include/GL/gl_mangle.h:103:#define glBlitFramebufferEXT		MANGLE 
(BlitFramebufferEXT)
./include/GL/glext.h:6910:GLAPI void APIENTRY glBlitFramebufferEXT  
(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield,  
GLenum);

Adding -H to the gcc invocation above I see that /System/Library/ 
Frameworks/OpenGL.framework/Headers/glext.h instead is used. Which  
does not provide glBlitFramebufferEXT ...


Encouraged by this little success I tried to find out whether  
compilation of glcontextmodes.c failed from the same reason. In Mesa  
7.0.2

./include/GL/internal/glcore.h:70:typedef struct __GLcontextModesRec {

has the members bindToMipmapTexture, bindToTextureRgb,  
bindToTextureRgba, bindToTextureTargets, and yInverted. But this file  
is obviously not used. When I pre-process glcontextmodes.c I can see  
that:

# 69 "/usr/X11/include/GL/internal/glcore.h"
typedef struct __GLcontextModesRec {
     struct __GLcontextModesRec * next;

which has a castrated definition of this struct without

     /* EXT_texture_from_pixmap */
     GLint bindToTextureRgb;
     GLint bindToTextureRgba;
     GLint bindToMipmapTexture;
     GLint bindToTextureTargets;
     GLint yInverted;

In the file system I have:

-rw-r--r-- 1 pete admin 17138  1. Dez 2006  …/Mesa-6.5.2/include/GL/ 
internal/glcore.h
-rw-r--r-- 1 pete admin  6559 22. Jun 2007  …/Mesa-7.0.1/include/GL/ 
internal/glcore.h
-rw-r--r-- 1 pete admin  6559  1. Nov 2007  …/Mesa-7.0.2/include/GL/ 
internal/glcore.h
-rw-r--r-- 1 pete admin  6286 20. Sep 17:21 …/Mesa-7.2/include/GL/ 
internal/glcore.h
-rw-r--r-- 1 pete admin 16177  9. Nov 02:16 …/X11R7.2/proto/glproto/ 
glcore.h
-rw-r--r-- 1 pete admin 16177  9. Nov 14:23 /usr/X11/include/GL/ 
internal/glcore.h



While the compilation was going on (with reduced Fink contents from  
first autoreconf invocation on) I checked whether I could forego Fink  
libraries. LibXaw and libXpm use (or need?) libintl which Apple does  
not provide.

--
Greetings

   Pete

If we don't succeed, we run the risk of failure."
				– George W. Bush





More information about the Xquartz-dev mailing list