Hi, i too am getting the same errors as caner when attempting to carry out the solo build
this is on a ppc based version of ubuntu

miniglx.c:120: error: expected â)â before â*â token
miniglx.c:124: error: expected â)â before â*â token
miniglx.c:131: error: expected â)â before â*â token
miniglx.c:133: error: expected â)â before â*â token
miniglx.c:137: error: expected â)â before â*â token
miniglx.c:140: error: expected â)â before â*â token
miniglx.c:143: error: expected â)â before â*â token
miniglx.c:146: error: expected â)â before â*â token
miniglx.c:751: error: expected â)â before â*â token
miniglx.c:768: error: expected â)â before â*â token
miniglx.c:1140: warning: initialization from incompatible pointer type
miniglx.c:1142: warning: initialization from incompatible pointer type
miniglx.c:1143: warning: initialization from incompatible pointer type
miniglx.c:1145: error: â__glXFindDRIScreenâ undeclared here (not in a function)
miniglx.c:1146: error: â__glXWindowExistsâ undeclared here (not in a function)
miniglx.c:1148: error: â__glXCreateContextWithConfigâ undeclared here (not in a function)
miniglx.c:1149: error: âxf86DRI_DestroyContextâ undeclared here (not in a function)
miniglx.c:1149: warning: excess elements in struct initializer
miniglx.c:1149: warning: (near initialization for âinterface_methodsâ)
miniglx.c:1151: error: âxf86DRI_CreateDrawableâ undeclared here (not in a function)
miniglx.c:1151: warning: excess elements in struct initializer
miniglx.c:1151: warning: (near initialization for âinterface_methodsâ)
miniglx.c:1152: error: âxf86DRI_DestroyDrawableâ undeclared here (not in a function)
miniglx.c:1152: warning: excess elements in struct initializer
miniglx.c:1152: warning: (near initialization for âinterface_methodsâ)
miniglx.c:1153: error: â__glXGetDrawableInfoâ undeclared here (not in a function)
miniglx.c:1153: warning: excess elements in struct initializer
miniglx.c:1153: warning: (near initialization for âinterface_methodsâ)
miniglx.c:1155: warning: excess elements in struct initializer
miniglx.c:1155: warning: (near initialization for âinterface_methodsâ)
miniglx.c:1156: error: â__glXGetMscRateâ undeclared here (not in a function)
miniglx.c:1156: warning: excess elements in struct initializer
miniglx.c:1156: warning: (near initialization for âinterface_methodsâ)
miniglx.c: In function âCallCreateNewScreenâ:
miniglx.c:1279: warning: passing argument 1 of âdpy->createNewScreenâ makes integer from pointer without a cast
miniglx.c:1279: warning: passing argument 2 of âdpy->createNewScreenâ makes pointer from integer without a cast
miniglx.c:1279: warning: passing argument 3 of âdpy->createNewScreenâ from incompatible pointer type
miniglx.c:1279: warning: passing argument 6 of âdpy->createNewScreenâ from incompatible pointer type
miniglx.c:1279: warning: passing argument 8 of âdpy->createNewScreenâ makes integer from pointer without a cast
miniglx.c:1279: warning: passing argument 9 of âdpy->createNewScreenâ makes integer from pointer without a cast
miniglx.c:1279: warning: passing argument 10 of âdpy->createNewScreenâ makes pointer from integer without a cast
miniglx.c:1279: warning: passing argument 11 of âdpy->createNewScreenâ makes pointer from integer without a cast
miniglx.c:1279: error: too many arguments to function âdpy->createNewScreenâ
miniglx.c: In function âXCloseDisplayâ:
miniglx.c:1431: warning: passing argument 1 of âdpy->driScreen.destroyScreenâ from incompatible pointer type
miniglx.c:1431: error: too many arguments to function âdpy->driScreen.destroyScreenâ
miniglx.c: In function âXCreateWindowâ:
miniglx.c:1562: warning: passing argument 1 of âdpy->driScreen.createNewDrawableâ from incompatible pointer type
miniglx.c:1562: warning: passing argument 3 of âdpy->driScreen.createNewDrawableâ makes pointer from integer without a cast
miniglx.c:1562: warning: passing argument 4 of âdpy->driScreen.createNewDrawableâ makes integer from pointer without a cast
miniglx.c: In function âXDestroyWindowâ:
miniglx.c:1601: warning: passing argument 1 of âwin->driDrawable.destroyDrawableâ from incompatible pointer type
miniglx.c:1601: error: too many arguments to function âwin->driDrawable.destroyDrawableâ
miniglx.c: In function âglXCreateContextâ:
miniglx.c:2118: error: â__DRIcontextâ has no member named âmodeâ
miniglx.c:2120: warning: passing argument 1 of âdpy->driScreen.createNewContextâ from incompatible pointer type
miniglx.c:2120: warning: passing argument 5 of âdpy->driScreen.createNewContextâ makes integer from pointer without a cast
miniglx.c:2120: error: too few arguments to function âdpy->driScreen.createNewContextâ
miniglx.c: In function âglXDestroyContextâ:
miniglx.c:2149: warning: passing argument 1 of âctx->driContext.bindContextâ from incompatible pointer type
miniglx.c:2149: error: too many arguments to function âctx->driContext.bindContextâ
miniglx.c:2152: warning: passing argument 1 of âctx->driContext.destroyContextâ from incompatible pointer type
miniglx.c:2152: error: too many arguments to function âctx->driContext.destroyContextâ
miniglx.c: In function âglXMakeCurrentâ:
miniglx.c:2193: error: â__DRIidâ undeclared (first use in this function)
miniglx.c:2193: error: (Each undeclared identifier is reported only once
miniglx.c:2193: error: for each function it appears in.)
miniglx.c:2193: error: expected â)â before âoldDrawableâ
miniglx.c:2194: warning: passing argument 1 of âoldContext->driContext.unbindContextâ from incompatible pointer type
miniglx.c:2194: error: too many arguments to function âoldContext->driContext.unbindContextâ
miniglx.c:2198: error: expected â)â before âdrawableâ
miniglx.c:2199: warning: passing argument 1 of âctx->driContext.bindContextâ from incompatible pointer type
miniglx.c:2189: warning: unused variable âoldDrawableâ
miniglx.c:2205: warning: passing argument 1 of âctx->driContext.bindContextâ from incompatible pointer type
miniglx.c:2205: error: too many arguments to function âctx->driContext.bindContextâ
miniglx.c: In function âglXSwapBuffersâ:
miniglx.c:2235: warning: passing argument 1 of âdrawable->driDrawable.swapBuffersâ from incompatible pointer type
miniglx.c:2235: error: too many arguments to function âdrawable->driDrawable.swapBuffersâ
miniglx.c: At top level:
miniglx.c:2277: error: expected â)â before â*â token
miniglx.c:2303: error: expected â)â before â*â token
miniglx.c:2348: error: expected â)â before â*â token
miniglx.c:2355: error: expected â)â before â*â token
miniglx.c:2372: error: expected â)â before â*â token
miniglx.c: In function âglXAllocateMemoryMESAâ:
miniglx.c:2511: error: â__DRIscreenâ has no member named âallocateMemoryâ
miniglx.c:2512: error: â__DRIscreenâ has no member named âallocateMemoryâ
miniglx.c: In function âglXFreeMemoryMESAâ:
miniglx.c:2522: error: â__DRIscreenâ has no member named âfreeMemoryâ
miniglx.c:2523: error: â__DRIscreenâ has no member named âfreeMemoryâ
miniglx.c: In function âglXGetMemoryOffsetMESAâ:
miniglx.c:2530: error: â__DRIscreenâ has no member named âmemoryOffsetâ
miniglx.c:2531: error: â__DRIscreenâ has no member named âmemoryOffsetâ
miniglx.c: At top level:
miniglx.c:2573: error: expected â)â before â*â token
make[3]: *** [miniglx.o] Error 1
make[3]: Leaving directory `/mnt/share/mesarepo/src/glx/mini'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/mnt/share/mesarepo/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/mnt/share/mesarepo'
make: *** [linux-solo] Error 2


Hi,
I am trying to build the linux-solo configuration(MESA 7.0.3) with
radeon
driver. I have the latest code with the fixes you have done. I am
having
troubles with compilation of "miniglx.c". You haven't fixed anything
specific to 855GME driver, have you? The error message I am having is
as
follows. Do you have any idea why it could be?


gcc -c -I. -I../../../include -I../../../src/mesa
-I../../../src/mesa/main
-I../../../src/mesa/glapi -I../../../src/glx/x11
-I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm`
`pkg-config --cflags pciaccess` -Wall -Wundef -O3 -g -fPIC
-D_POSIX_SOURCE
-D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
-DHAVE_POSIX_MEMALIGN -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER
-DHAVE_ALIAS -DGLX_DIRECT_RENDERING -DIN_MINI_GLX -UIN_DRI_DRIVER
-std=c99
-ffast-math -fno-strict-aliasing -D_POSIX_SOURCE
-D_POSIX_C_SOURCE=199309L
-D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DHAVE_POSIX_MEMALIGN
-DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS
-DGLX_DIRECT_RENDERING -DIN_MINI_GLX -UIN_DRI_DRIVER miniglx.c -o
miniglx.o
miniglx.c:120: error: expected ‘)’ before ‘*’ token
miniglx.c:124: error: expected ‘)’ before ‘*’ token
miniglx.c:131: error: expected ‘)’ before ‘*’ token
miniglx.c:133: error: expected ‘)’ before ‘*’ token
miniglx.c:137: error: expected ‘)’ before ‘*’ token
miniglx.c:140: error: expected ‘)’ before ‘*’ token
miniglx.c:143: error: expected ‘)’ before ‘*’ token
miniglx.c:146: error: expected ‘)’ before ‘*’ token
miniglx.c:751: error: expected ‘)’ before ‘*’ token
miniglx.c:768: error: expected ‘)’ before ‘*’ token
miniglx.c:1140: warning: initialization from incompatible pointer type
miniglx.c:1142: warning: initialization from incompatible pointer type
miniglx.c:1143: warning: initialization from incompatible pointer type
miniglx.c:1145: error: ‘__glXFindDRIScreen’ undeclared here (not in
a
function)
miniglx.c:1146: error: ‘__glXWindowExists’ undeclared here (not in
a
function)
miniglx.c:1148: error: ‘__glXCreateContextWithConfig’ undeclared
here (not
in a function)
miniglx.c:1149: error: ‘xf86DRI_DestroyContext’ undeclared here
(not in a
function)
miniglx.c:1149: warning: excess elements in struct initializer
miniglx.c:1149: warning: (near initialization for
‘interface_methods’)
miniglx.c:1151: error: ‘xf86DRI_CreateDrawable’ undeclared here
(not in a
function)
miniglx.c:1151: warning: excess elements in struct initializer
miniglx.c:1151: warning: (near initialization for
‘interface_methods’)
miniglx.c:1152: error: ‘xf86DRI_DestroyDrawable’ undeclared here
(not in a
function)
miniglx.c:1152: warning: excess elements in struct initializer
miniglx.c:1152: warning: (near initialization for
‘interface_methods’)
miniglx.c:1153: error: ‘__glXGetDrawableInfo’ undeclared here (not
in a
function)
miniglx.c:1153: warning: excess elements in struct initializer
miniglx.c:1153: warning: (near initialization for
‘interface_methods’)
miniglx.c:1155: warning: excess elements in struct initializer
miniglx.c:1155: warning: (near initialization for
‘interface_methods’)
miniglx.c:1156: error: ‘__glXGetMscRate’ undeclared here (not in a
function)
miniglx.c:1156: warning: excess elements in struct initializer
miniglx.c:1156: warning: (near initialization for
‘interface_methods’)
miniglx.c: In function ‘CallCreateNewScreen’:
miniglx.c:1279: warning: passing argument 1 of
‘dpy->createNewScreen’ makes
integer from pointer without a cast
miniglx.c:1279: warning: passing argument 2 of
‘dpy->createNewScreen’ makes
pointer from integer without a cast
miniglx.c:1279: warning: passing argument 3 of
‘dpy->createNewScreen’ from
incompatible pointer type
miniglx.c:1279: warning: passing argument 6 of
‘dpy->createNewScreen’ from
incompatible pointer type
miniglx.c:1279: warning: passing argument 8 of
‘dpy->createNewScreen’ makes
integer from pointer without a cast
miniglx.c:1279: warning: passing argument 9 of
‘dpy->createNewScreen’ makes
integer from pointer without a cast
miniglx.c:1279: warning: passing argument 10 of
‘dpy->createNewScreen’ makes
pointer from integer without a cast
miniglx.c:1279: warning: passing argument 11 of
‘dpy->createNewScreen’ makes
pointer from integer without a cast
miniglx.c:1279: error: too many arguments to function
‘dpy->createNewScreen’
miniglx.c: In function ‘XCloseDisplay’:
miniglx.c:1431: warning: passing argument 1 of
‘dpy->driScreen.destroyScreen’ from incompatible pointer type
miniglx.c:1431: error: too many arguments to function
‘dpy->driScreen.destroyScreen’
miniglx.c: In function ‘XCreateWindow’:
miniglx.c:1562: warning: passing argument 1 of
‘dpy->driScreen.createNewDrawable’ from incompatible pointer type
miniglx.c:1562: warning: passing argument 3 of
‘dpy->driScreen.createNewDrawable’ makes pointer from integer
without a cast
miniglx.c:1562: warning: passing argument 4 of
‘dpy->driScreen.createNewDrawable’ makes integer from pointer
without a cast
miniglx.c: In function ‘XDestroyWindow’:
miniglx.c:1601: warning: passing argument 1 of
‘win->driDrawable.destroyDrawable’ from incompatible pointer type
miniglx.c:1601: error: too many arguments to function
‘win->driDrawable.destroyDrawable’
miniglx.c: In function ‘glXCreateContext’:
miniglx.c:2118: error: ‘__DRIcontext’ has no member named
‘mode’
miniglx.c:2120: warning: passing argument 1 of
‘dpy->driScreen.createNewContext’ from incompatible pointer type
miniglx.c:2120: warning: passing argument 5 of
‘dpy->driScreen.createNewContext’ makes integer from pointer
without a cast
miniglx.c:2120: error: too few arguments to function
‘dpy->driScreen.createNewContext’
miniglx.c: In function ‘glXDestroyContext’:
miniglx.c:2149: warning: passing argument 1 of
‘ctx->driContext.bindContext’
from incompatible pointer type
miniglx.c:2149: error: too many arguments to function
‘ctx->driContext.bindContext’
miniglx.c:2152: warning: passing argument 1 of
‘ctx->driContext.destroyContext’ from incompatible pointer type
miniglx.c:2152: error: too many arguments to function
‘ctx->driContext.destroyContext’
miniglx.c: In function ‘glXMakeCurrent’:
miniglx.c:2193: error: ‘__DRIid’ undeclared (first use in this
function)
miniglx.c:2193: error: (Each undeclared identifier is reported only
once
miniglx.c:2193: error: for each function it appears in.)
miniglx.c:2193: error: expected ‘)’ before ‘oldDrawable’
miniglx.c:2194: warning: passing argument 1 of
‘oldContext->driContext.unbindContext’ from incompatible pointer
type
miniglx.c:2194: error: too many arguments to function
‘oldContext->driContext.unbindContext’
miniglx.c:2198: error: expected ‘)’ before ‘drawable’
miniglx.c:2199: warning: passing argument 1 of
‘ctx->driContext.bindContext’
from incompatible pointer type
miniglx.c:2189: warning: unused variable ‘oldDrawable’
miniglx.c:2205: warning: passing argument 1 of
‘ctx->driContext.bindContext’
from incompatible pointer type
miniglx.c:2205: error: too many arguments to function
‘ctx->driContext.bindContext’
miniglx.c: In function ‘glXSwapBuffers’:
miniglx.c:2235: warning: passing argument 1 of
‘drawable->driDrawable.swapBuffers’ from incompatible pointer type
miniglx.c:2235: error: too many arguments to function
‘drawable->driDrawable.swapBuffers’
miniglx.c: At top level:
miniglx.c:2277: error: expected ‘)’ before ‘*’ token
miniglx.c:2303: error: expected ‘)’ before ‘*’ token
miniglx.c:2348: error: expected ‘)’ before ‘*’ token
miniglx.c:2355: error: expected ‘)’ before ‘*’ token
miniglx.c:2372: error: expected ‘)’ before ‘*’ token
miniglx.c: In function ‘glXAllocateMemoryMESA’:
miniglx.c:2511: error: ‘__DRIscreen’ has no member named
‘allocateMemory’
miniglx.c:2512: error: ‘__DRIscreen’ has no member named
‘allocateMemory’
miniglx.c: In function ‘glXFreeMemoryMESA’:
miniglx.c:2522: error: ‘__DRIscreen’ has no member named
‘freeMemory’
miniglx.c:2523: error: ‘__DRIscreen’ has no member named
‘freeMemory’
miniglx.c: In function ‘glXGetMemoryOffsetMESA’:
miniglx.c:2530: error: ‘__DRIscreen’ has no member named
‘memoryOffset’
miniglx.c:2531: error: ‘__DRIscreen’ has no member named
‘memoryOffset’
miniglx.c: At top level:
miniglx.c:2573: error: expected ‘)’ before ‘*’ token
make[3]: *** [miniglx.o] Error 1
make[3]: Leaving directory `/home/caner/mesa/src/glx/mini'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/caner/mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/home/caner/mesa'
make: *** [linux-solo] Error 2






gavin li-3 wrote:
>
> Hi,
>
> I have successfully ran build linux-solo with Mesa-7.0.2 &
> Mea-7.0.3-rc1 with some twicks on my intel-855GME chipset embedded
> system.
>
> My embedded system support two video output: one is VGA, the other is
> LVDS LCD pannel.
>
> I could run miniglxsample when I boot it with ONLY VGA output in
BIOS,
> and have to make this change:
> I have to change linux kernel driver. The file chaned is
> driver/char/drm/drm_drv.c, search master, and comment out that line
> releated to master. I don't know what that "master" means, but it
> prevented me from running the sample_server
>
> I couldn't run miniglxsample when I boot it with LCD pannel ( or
> VGA+LCD pannel ),
> it failed at OpenFBDev( Display *dpy, int use_vt ) of ioctl()
> (src/glx/mini/miniglx.c)
>
> 344 /* Turn off hw accels (otherwise mmap of mmio region will be
> 345 * refused)
> 346 */
> 347 dpy->VarInfo.accel_flags = 0;
> 348 if (ioctl(dpy->FrameBufferFD, FBIOPUT_VSCREENINFO,
&dpy->VarInfo))
> {
> 349 fprintf(stderr, "error: ioctl(FBIOPUT_VSCREENINFO) failed:
> %s\n",
> 350 strerror(errno));
> 351 return GL_FALSE;
> 352 }
>
> Gavin
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mesa3d-users mailing list
> Mesa3d-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa3d-users
>
>


Never miss a thing. Make Yahoo your homepage.