[ANNOUNCE] xorg-server 1.2.99.0

Arkadiusz Miskiewicz arekm at pld-linux.org
Thu Nov 2 23:35:48 PST 2006


On Thursday 02 November 2006 23:19, Brian Paul wrote:

> > Ok, so build bugs for now,
> >
> > 1) tries to use mipmap.c in linking but doesn't know where the source
> > exists; workaround
> > ln -s ../../../Mesa-%{mesa_version}/src/glu/sgi/libutil/mipmap.c \
> >   GL/mesa/main/mipmap.c
>
> That's wrong.  The former file is in the GLU library.  You should be
> linking to the src/mesa/main/mipmap.c file.

I'm using Mesa 6.5.1 which doesn't contain mesa/main/mipmap.c. I see that cvs 
Mesa contains this file. Will check.

Mesa version detection in xorg-server configure stuff would be nice (+ forcing 
some version never than XYZ).

> This is a side-effect of your mistake in (1).
>
> > 3) I had to do:
> > sed -i -e 's#CONFIG_H#XXX_MESA_CONFIG_H#g' GL/mesa/main/config.h
> > because -DHAVE_CONFIG_H was passed at gcc command line and
> > GL/mesa/main/config.h was never included due to:
> > #ifndef HAVE_CONFIG_H
> > #endif
> > thing
>
> I don't understand what that's all about.  Mesa's config.h file has
> nothing to do with autconf.
Sorry for mistake. There is CONFIG_H not HAVE_CONFIG_H.

GL/mesa/main/config.h content is guarded by:
#ifndef CONFIG_H
#define CONFIG_H

whole content

#endif

Now the include/config.h is included which also does #define CONFIG_H 
(verified that it's included by adding #error something to include/config.h). 
GL/mesa/main/config.h contents are ignored because CONFIG_H is already 
defined. Temporary workaround: sed -i -e 's#CONFIG_H#XXX_MESA_CONFIG_H#g' 
GL/mesa/main/config.h works.

The whole problem:
 
i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I../../../include -I/home/users/builder/rpm/BUILD/xorg-server-1.2.99.0/Mesa-6.5.1/include -I../X -I../array_cache -I../glapi -I../main -I../math -I../shader -I../swrast -I../swrast_setup -I../tnl -I.. -I../../glx -I../../../GL/glx -I../../../GL/include -I../../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86Server -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/freetype2 -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 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-2 -g2 -MT 
xf86glx.lo -MD -MP -MF .deps/xf86glx.Tpo -c 
xf86glx.c  -fPIC -DPIC -o .libs/xf86glx.o
In file included from ../main/context.h:54,
                 from xf86glx.c:54:
../main/mtypes.h:66:2: error: #error "illegal number of color channel bits"
../main/mtypes.h:78:4: error: #error "illegal number of stencil bits"
In file included from ../main/context.h:54,
                 from xf86glx.c:54:
../main/mtypes.h:569: error: 'MAX_DRAW_BUFFERS' undeclared here (not in a 
function)
../main/mtypes.h:636: error: 'MAX_TEXTURE_COORD_UNITS' undeclared here (not in 
a function)
../main/mtypes.h:677: error: 'MAX_LIGHTS' undeclared here (not in a function)
../main/mtypes.h:722: error: 'MAX_TEXTURE_IMAGE_UNITS' undeclared here (not in 
a function)
../main/mtypes.h:825: error: 'HISTOGRAM_TABLE_SIZE' undeclared here (not in a 
function)
../main/mtypes.h:855: error: 'MAX_CONVOLUTION_WIDTH' undeclared here (not in a 
function)
../main/mtypes.h:855: error: 'MAX_CONVOLUTION_HEIGHT' undeclared here (not in 
a function)
../main/mtypes.h:992: error: 'MAX_PIXEL_MAP_TABLE' undeclared here (not in a 
function)
../main/mtypes.h:1203: error: expected declaration specifiers or '...' 
before 'GLchan'
../main/mtypes.h:1381: error: expected specifier-qualifier-list 
before 'GLchan'
../main/mtypes.h:1547: error: 'MAX_TEXTURE_UNITS' undeclared here (not in a 
function)
../main/mtypes.h:1570: error: 'MAX_CLIP_PLANES' undeclared here (not in a 
function)
../main/mtypes.h:1741: error: 'MAX_NAME_STACK_DEPTH' undeclared here (not in a 
function)
../main/mtypes.h:1816: error: 'MAX_NV_FRAGMENT_PROGRAM_TEMPS' undeclared here 
(not in a function)
../main/mtypes.h:1817: error: 'MAX_NV_FRAGMENT_PROGRAM_INPUTS' undeclared here 
(not in a function)
../main/mtypes.h:1818: error: 'MAX_NV_FRAGMENT_PROGRAM_OUTPUTS' undeclared 
here (not in a function)
../main/mtypes.h:1870: error: 'MAX_PROGRAM_LOCAL_PARAMS' undeclared here (not 
in a function)
../main/mtypes.h:1941: error: 'MAX_NV_VERTEX_PROGRAM_PARAMS' undeclared here 
(not in a function)
../main/mtypes.h:1946: error: 'MAX_NV_VERTEX_PROGRAM_TEMPS' undeclared here 
(not in a function)
../main/mtypes.h:1947: error: 'MAX_NV_VERTEX_PROGRAM_INPUTS' undeclared here 
(not in a function)
../main/mtypes.h:1949: error: 'MAX_NV_VERTEX_PROGRAM_OUTPUTS' undeclared here 
(not in a function)
../main/mtypes.h:1973: error: 'MAX_NV_FRAGMENT_PROGRAM_PARAMS' undeclared here 
(not in a function)
In file included from ../main/context.h:54,
                 from xf86glx.c:54:
../main/mtypes.h:2759: error: 'MAX_LIST_NESTING' undeclared here (not in a 
function)
../main/mtypes.h:2840: error: 'MAX_PROGRAM_MATRICES' undeclared here (not in a 
function)
../main/mtypes.h:2859: error: 'MAX_ATTRIB_STACK_DEPTH' undeclared here (not in 
a function)
../main/mtypes.h:2893: error: 'MAX_CLIENT_ATTRIB_STACK_DEPTH' undeclared here 
(not in a function)
xf86glx.c:428: warning: no previous prototype for 'GlxGetMesaProvider'
make[3]: *** [xf86glx.lo] Error 1
make[3]: Leaving directory 
`/home/users/builder/rpm/BUILD/xorg-server-1.2.99.0/GL/mesa/X'

> -Brian

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/



More information about the xorg mailing list