Problem compiling Xgl with latest CVS everything

Colin Guthrie xorg at colin.guthr.ie
Wed Mar 22 16:03:36 PST 2006


Hi,

I've got a compile error with latest CVS Mesa/Xserver/Xgl.

I have built all this stuff successfully before but haven't updated for 
the last few weeks as I've been on holiday.


I compile up the necessary Xserver stuff no problem, and Mesa, but when 
I try to compile Xgl I get the following (when it's trying to do some 
mesa realted stuff):

in xgl/GL/glx:

gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include 
-I../../include -I../../include -I../../include -I../../include 
-I../../include -I../../include -I../../GL/include 
-I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus 
-I../../hw/xfree86/common -I../../hw/xfree86/dri -I../../mi 
-I/home/colin/xgl/Mesa/include -DHAVE_DIX_CONFIG_H 
-I/home/colin/xgl/prefix/include -I/home/colin/xgl/prefix/include 
-I/home/colin/xgl/prefix/include -I/home/colin/xgl/prefix/include/drm 
-I/home/colin/xgl/prefix/include/X11/dri 
-I/home/colin/xgl/Mesa/src/mesa/glapi -I/home/colin/xgl/Mesa/src/glx/x11 
-I/home/colin/xgl/Mesa/src/mesa/main -DXGLServer -DXFree86Server 
-DIN_MODULE -DXFree86Module -DXFree86LOADER -DNO_LIBCWRAPPER 
-DUSE_MGL_NAMESPACE -Wall -Wpointer-arith -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
-fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT 
-I/home/colin/xgl/prefix/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 -g -O2 -MT glcontextmodes.lo -MD 
-MP -MF .deps/glcontextmodes.Tpo -c glcontextmodes.c  -fPIC -DPIC -o 
.libs/glcontextmodes.o
In file included from glcontextmodes.c:51:
/usr/include/string.h:293: error: conflicting types for 'xf86memmove'
/usr/include/string.h:44: error: previous declaration of 'xf86memmove' 
was here
/usr/include/string.h:296: error: conflicting types for 'xf86bzero'
../../hw/xfree86/os-support/xf86_ansic.h:294: error: previous 
declaration of 'xf86bzero' was here




If I comment out strings.h include in glcontextmodes.c everything 
continues but bombs out later when compiling mesa stuff....

Any hints/advice?

  gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include 
-I../../../include -I../../../include -I../../../include 
-I../../../include -I../../../include -I../../../include 
-I/home/colin/xgl/Mesa/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 -DXGLServer 
-DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER 
-DXFree86Server -DUSE_MGL_NAMESPACE -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT -I/home/colin/xgl/prefix/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 -g -O2 -MT xf86glx.lo -MD -MP -MF 
.deps/xf86glx.Tpo -c xf86glx.c  -fPIC -DPIC -o .libs/xf86glx.o
In file included from /usr/include/limits.h:152,
                  from 
/usr/lib/gcc/x86_64-mandriva-linux-gnu/4.0.1/include/limits.h:122,
                  from 
/usr/lib/gcc/x86_64-mandriva-linux-gnu/4.0.1/include/syslimits.h:7,
                  from 
/usr/lib/gcc/x86_64-mandriva-linux-gnu/4.0.1/include/limits.h:11,
                  from ../main/glheader.h:64,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/bits/xopen_lim.h:95:6: error: missing binary operator 
before token "sizeof"
/usr/include/bits/xopen_lim.h:98:7: error: missing binary operator 
before token "sizeof"
/usr/include/bits/xopen_lim.h:122:6: error: missing binary operator 
before token "~"
In file included from /usr/include/stdlib.h:433,
                  from ../main/glheader.h:65,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/sys/types.h:151: error: duplicate 'unsigned'
In file included from ../main/glheader.h:65,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/stdlib.h:622:24: error: macro "abort" passed 1 arguments, 
but takes just 0
In file included from ../main/glheader.h:66,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/stdio.h:46: error: conflicting types for 'XF86FILE'
../../../hw/xfree86/os-support/xf86_libc.h:66: error: previous 
declaration of 'XF86FILE' was here
In file included from ../main/glheader.h:66,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/stdio.h:88: error: conflicting types for 'XF86fpos_t'
../../../hw/xfree86/os-support/xf86_libc.h:71: error: previous 
declaration of 'XF86fpos_t' was here
In file included from ../main/glheader.h:66,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/stdio.h:142: error: conflicting types for 'xf86stdin'
../../../hw/xfree86/os-support/xf86_libc.h:67: error: previous 
declaration of 'xf86stdin' was here
/usr/include/stdio.h:143: error: conflicting types for 'xf86stdout'
../../../hw/xfree86/os-support/xf86_libc.h:68: error: previous 
declaration of 'xf86stdout' was here
/usr/include/stdio.h:144: error: conflicting types for 'xf86stderr'
../../../hw/xfree86/os-support/xf86_libc.h:69: error: previous 
declaration of 'xf86stderr' was here
In file included from ../main/glheader.h:66,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/stdio.h:164:27: error: macro "tmpfile" passed 1 arguments, 
but takes just 0
/usr/include/stdio.h:206: error: conflicting types for 'xf86fclose'
../../../hw/xfree86/os-support/xf86_ansic.h:163: error: previous 
declaration of 'xf86fclose' was here
/usr/include/stdio.h:211: error: conflicting types for 'xf86fflush'
../../../hw/xfree86/os-support/xf86_ansic.h:166: error: previous 
declaration of 'xf86fflush' was here
/usr/include/stdio.h:241: error: conflicting types for 'xf86fopen'
../../../hw/xfree86/os-support/xf86_ansic.h:174: error: previous 
declaration of 'xf86fopen' was here
/usr/include/stdio.h:247: error: conflicting types for 'xf86freopen'
../../../hw/xfree86/os-support/xf86_ansic.h:182: error: previous 
declaration of 'xf86freopen' was here
/usr/include/stdio.h:297: error: conflicting types for 'xf86setbuf'
../../../hw/xfree86/os-support/xf86_ansic.h:224: error: previous 
declaration of 'xf86setbuf' was here
/usr/include/stdio.h:301: error: conflicting types for 'xf86setvbuf'
../../../hw/xfree86/os-support/xf86_ansic.h:225: error: previous 
declaration of 'xf86setvbuf' was here
/usr/include/stdio.h:322: error: conflicting types for 'xf86fprintf'
../../../hw/xfree86/os-support/xf86_ansic.h:177: error: previous 
declaration of 'xf86fprintf' was here
/usr/include/stdio.h:336: error: conflicting types for 'xf86vfprintf'
../../../hw/xfree86/os-support/xf86_ansic.h:264: error: previous 
declaration of 'xf86vfprintf' was here
/usr/include/stdio.h:394: error: conflicting types for 'xf86fscanf'
../../../hw/xfree86/os-support/xf86_ansic.h:184: error: previous 
declaration of 'xf86fscanf' was here
/usr/include/stdio.h:402: error: conflicting types for 'xf86sscanf'
../../../hw/xfree86/os-support/xf86_ansic.h:231: error: previous 
declaration of 'xf86sscanf' was here
/usr/include/stdio.h:435: error: conflicting types for 'xf86fgetc'
../../../hw/xfree86/os-support/xf86_ansic.h:167: error: previous 
declaration of 'xf86fgetc' was here
/usr/include/stdio.h:436: error: conflicting types for 'xf86getc'
../../../hw/xfree86/os-support/xf86_ansic.h:168: error: previous 
declaration of 'xf86getc' was here
/usr/include/stdio.h:477: error: conflicting types for 'xf86fputc'
../../../hw/xfree86/os-support/xf86_ansic.h:178: error: previous 
declaration of 'xf86fputc' was here
/usr/include/stdio.h:484: error: syntax error before 'xf86stdout'
/usr/include/stdio.h:526: error: conflicting types for 'xf86fgets'
../../../hw/xfree86/os-support/xf86_ansic.h:170: error: previous 
declaration of 'xf86fgets' was here
/usr/include/stdio.h:583: error: conflicting types for 'xf86fputs'
../../../hw/xfree86/os-support/xf86_ansic.h:179: error: previous 
declaration of 'xf86fputs' was here
/usr/include/stdio.h:589: error: syntax error before 'xf86stdout'
/usr/include/stdio.h:596: error: conflicting types for 'xf86ungetc'
../../../hw/xfree86/os-support/xf86_ansic.h:263: error: previous 
declaration of 'xf86ungetc' was here
/usr/include/stdio.h:603: error: conflicting types for 'xf86fread'
../../../hw/xfree86/os-support/xf86_ansic.h:180: error: previous 
declaration of 'xf86fread' was here
/usr/include/stdio.h:609: error: conflicting types for 'xf86fwrite'
../../../hw/xfree86/os-support/xf86_ansic.h:192: error: previous 
declaration of 'xf86fwrite' was here
/usr/include/stdio.h:643: error: conflicting types for 'xf86fseek'
../../../hw/xfree86/os-support/xf86_ansic.h:189: error: previous 
declaration of 'xf86fseek' was here
/usr/include/stdio.h:648: error: conflicting types for 'xf86ftell'
../../../hw/xfree86/os-support/xf86_ansic.h:191: error: previous 
declaration of 'xf86ftell' was here
/usr/include/stdio.h:653: error: conflicting types for 'xf86rewind'
../../../hw/xfree86/os-support/xf86_ansic.h:223: error: previous 
declaration of 'xf86rewind' was here
/usr/include/stdio.h:692: error: conflicting types for 'xf86fgetpos'
../../../hw/xfree86/os-support/xf86_ansic.h:169: error: previous 
declaration of 'xf86fgetpos' was here
/usr/include/stdio.h:697: error: conflicting types for 'xf86fsetpos'
../../../hw/xfree86/os-support/xf86_ansic.h:190: error: previous 
declaration of 'xf86fsetpos' was here
/usr/include/stdio.h:720: error: conflicting types for 'xf86clearerr'
../../../hw/xfree86/os-support/xf86_ansic.h:158: error: previous 
declaration of 'xf86clearerr' was here
/usr/include/stdio.h:722: error: conflicting types for 'xf86feof'
../../../hw/xfree86/os-support/xf86_ansic.h:164: error: previous 
declaration of 'xf86feof' was here
/usr/include/stdio.h:724: error: conflicting types for 'xf86ferror'
../../../hw/xfree86/os-support/xf86_ansic.h:165: error: previous 
declaration of 'xf86ferror' was here
In file included from /usr/include/stdio.h:828,
                  from ../main/glheader.h:66,
                  from ../main/imports.h:41,
                  from ../main/context.h:52,
                  from xf86glx.c:55:
/usr/include/bits/stdio.h: In function 'vprintf':
/usr/include/bits/stdio.h:36: error: 'stdout' undeclared (first use in 
this function)
/usr/include/bits/stdio.h:36: error: (Each undeclared identifier is 
reported only once
/usr/include/bits/stdio.h:36: error: for each function it appears in.)
/usr/include/bits/stdio.h: In function 'getchar':
/usr/include/bits/stdio.h:43: error: 'stdin' undeclared (first use in 
this function)
/usr/include/bits/stdio.h: In function 'getchar_unlocked':
/usr/include/bits/stdio.h:59: error: 'stdin' undeclared (first use in 
this function)
/usr/include/bits/stdio.h: At top level:
/usr/include/bits/stdio.h:66: error: syntax error before 'xf86stdout'
/usr/include/bits/stdio.h:67: error: conflicting types for 'xf86fputc'
../../../hw/xfree86/os-support/xf86_ansic.h:178: error: previous 
declaration of 'xf86fputc' was here
/usr/include/bits/stdio.h: In function 'xf86fputc':
/usr/include/bits/stdio.h:67: error: number of arguments doesn't match 
prototype
../../../hw/xfree86/os-support/xf86_ansic.h:178: error: prototype 
declaration
/usr/include/bits/stdio.h:68: error: '__c' undeclared (first use in this 
function)
/usr/include/bits/stdio.h:68: error: 'stdout' undeclared (first use in 
this function)
/usr/include/bits/stdio.h: In function 'putchar_unlocked':
/usr/include/bits/stdio.h:94: error: 'stdout' undeclared (first use in 
this function)
xf86glx.c: In function '__glXMesaContextDestroy':
xf86glx.c:219: warning: implicit declaration of function 
'GlxFlushContextCache'
xf86glx.c:219: warning: nested extern declaration of 'GlxFlushContextCache'
xf86glx.c: In function '__glXMesaContextForceCurrent':
xf86glx.c:264: warning: implicit declaration of function 
'GlxSetRenderTables'
xf86glx.c:264: warning: nested extern declaration of 'GlxSetRenderTables'
xf86glx.c: At top level:
xf86glx.c:469: warning: no previous prototype for 'GlxGetMesaProvider'
make[3]: *** [xf86glx.lo] Error 1
make[3]: Leaving directory `/home/colin/xgl/xgl/GL/mesa/X'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/colin/xgl/xgl/GL/mesa'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colin/xgl/xgl/GL'
make: *** [all-recursive] Error 1





-- 

+------------------------+
|     Colin Guthrie      |
+------------------------+
| xorg(at)colin.guthr.ie |
| http://colin.guthr.ie/ |
+------------------------+



More information about the xorg mailing list