Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: mesa git compile error

  1. #11
    Join Date
    Jan 2010
    Posts
    7

    Default

    Same here.
    But why isn't it used?

    I do
    export PKG_CONFIG_PATH=/usr/src/dri2proto/:/usr/src/glproto/:${PKG_CONFIG_PATH}

    then ./autogen.sh (in mesa dir)
    then ./configure --prefix=/opt/xorg --with-dri-drivers=radeon,r600 --disable-gallium
    and make

  2. #12
    Join Date
    Jan 2010
    Posts
    7

    Default

    docs/fbdev-dri.html
    section 2.1....
    Copy it to the /mesa/include/GL/ directory

    Then it gets farther on with the compilation but fails:
    gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/xorg/lib/dri\" dri2_glx.c -o dri2_glx.o
    dri2_glx.c: In function ‘dri2DrawableGetMSC’:
    dri2_glx.c:208: warning: pointer targets in passing argument 3 of ‘DRI2GetMSC’ differ in signedness
    dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c:208: warning: pointer targets in passing argument 4 of ‘DRI2GetMSC’ differ in signedness
    dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c:208: warning: pointer targets in passing argument 5 of ‘DRI2GetMSC’ differ in signedness
    dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c: In function ‘dri2WaitForMSC’:
    dri2_glx.c:216: warning: pointer targets in passing argument 6 of ‘DRI2WaitMSC’ differ in signedness
    dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c:216: warning: pointer targets in passing argument 7 of ‘DRI2WaitMSC’ differ in signedness
    dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c:216: warning: pointer targets in passing argument 8 of ‘DRI2WaitMSC’ differ in signedness
    dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c: In function ‘dri2WaitForSBC’:
    dri2_glx.c:224: warning: pointer targets in passing argument 4 of ‘DRI2WaitSBC’ differ in signedness
    dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c:224: warning: pointer targets in passing argument 5 of ‘DRI2WaitSBC’ differ in signedness
    dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c:224: warning: pointer targets in passing argument 6 of ‘DRI2WaitSBC’ differ in signedness
    dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c: In function ‘dri2SwapBuffers’:
    dri2_glx.c:385: warning: pointer targets in passing argument 6 of ‘DRI2SwapBuffers’ differ in signedness
    dri2.h:89: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
    dri2_glx.c: In function ‘dri2CreateScreen’:
    dri2_glx.c:583: warning: assignment from incompatible pointer type
    gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/xorg/lib/dri\" dri2.c -o dri2.o
    dri2.c: In function ‘DRI2WireToEvent’:
    dri2.c:94: error: ‘DRI2_BufferSwapComplete’ undeclared (first use in this function)
    dri2.c:94: error: (Each undeclared identifier is reported only once
    dri2.c:94: error: for each function it appears in.)
    dri2.c:97: error: ‘xDRI2BufferSwapComplete’ undeclared (first use in this function)
    dri2.c:97: error: ‘awire’ undeclared (first use in this function)
    dri2.c:97: error: expected expression before ‘)’ token
    dri2.c:99: error: ‘DRI2_EXCHANGE_COMPLETE’ undeclared (first use in this function)
    dri2.c:102: error: ‘DRI2_BLIT_COMPLETE’ undeclared (first use in this function)
    dri2.c:105: error: ‘DRI2_FLIP_COMPLETE’ undeclared (first use in this function)
    dri2.c: In function ‘load_swap_req’:
    dri2.c:454: error: ‘xDRI2SwapBuffersReq’ has no member named ‘target_msc_hi’
    dri2.c:455: error: ‘xDRI2SwapBuffersReq’ has no member named ‘target_msc_lo’
    dri2.c:456: error: ‘xDRI2SwapBuffersReq’ has no member named ‘divisor_hi’
    dri2.c:457: error: ‘xDRI2SwapBuffersReq’ has no member named ‘divisor_lo’
    dri2.c:458: error: ‘xDRI2SwapBuffersReq’ has no member named ‘remainder_hi’
    dri2.c:459: error: ‘xDRI2SwapBuffersReq’ has no member named ‘remainder_lo’
    dri2.c: In function ‘DRI2SwapBuffers’:
    dri2.c:473: error: ‘xDRI2SwapBuffersReply’ undeclared (first use in this function)
    dri2.c:473: error: expected ‘;’ before ‘rep’
    dri2.c:484: error: ‘rep’ undeclared (first use in this function)
    dri2.c: In function ‘DRI2GetMSC’:
    dri2.c:496: error: ‘xDRI2GetMSCReq’ undeclared (first use in this function)
    dri2.c:496: error: ‘req’ undeclared (first use in this function)
    dri2.c:497: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
    dri2.c:497: error: expected ‘;’ before ‘rep’
    dri2.c:502: error: ‘sz_xDRI2GetMSCReq’ undeclared (first use in this function)
    dri2.c:502: error: expected expression before ‘)’ token
    dri2.c:502: error: ‘X_DRI2GetMSC’ undeclared (first use in this function)
    dri2.c:507: error: ‘rep’ undeclared (first use in this function)
    dri2.c: At top level:
    dri2.c:524: error: expected ‘)’ before ‘*’ token
    dri2.c: In function ‘DRI2WaitMSC’:
    dri2.c:539: error: ‘xDRI2WaitMSCReq’ undeclared (first use in this function)
    dri2.c:539: error: ‘req’ undeclared (first use in this function)
    dri2.c:540: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
    dri2.c:540: error: expected ‘;’ before ‘rep’
    dri2.c:545: error: ‘sz_xDRI2WaitMSCReq’ undeclared (first use in this function)
    dri2.c:545: error: expected expression before ‘)’ token
    dri2.c:545: error: ‘X_DRI2WaitMSC’ undeclared (first use in this function)
    dri2.c:549: warning: implicit declaration of function ‘load_msc_req’
    dri2.c:551: error: ‘rep’ undeclared (first use in this function)
    dri2.c: At top level:
    dri2.c:568: error: expected ‘)’ before ‘*’ token
    dri2.c: In function ‘DRI2WaitSBC’:
    dri2.c:578: error: ‘xDRI2WaitSBCReq’ undeclared (first use in this function)
    dri2.c:578: error: ‘req’ undeclared (first use in this function)
    dri2.c:579: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
    dri2.c:579: error: expected ‘;’ before ‘rep’
    dri2.c:584: error: ‘sz_xDRI2WaitSBCReq’ undeclared (first use in this function)
    dri2.c:584: error: expected expression before ‘)’ token
    dri2.c:584: error: ‘X_DRI2WaitSBC’ undeclared (first use in this function)
    dri2.c:588: warning: implicit declaration of function ‘load_sbc_req’
    dri2.c:590: error: ‘rep’ undeclared (first use in this function)
    dri2.c: In function ‘DRI2SwapInterval’:
    dri2.c:609: error: ‘xDRI2SwapIntervalReq’ undeclared (first use in this function)
    dri2.c:609: error: ‘req’ undeclared (first use in this function)
    dri2.c:614: error: ‘sz_xDRI2SwapIntervalReq’ undeclared (first use in this function)
    dri2.c:614: error: expected expression before ‘)’ token
    dri2.c:614: error: ‘X_DRI2SwapInterval’ undeclared (first use in this function)
    gmake[2]: *** [dri2.o] Error 1
    gmake[2]: Leaving directory `/usr/src/mesa/src/glx/x11'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/usr/src/mesa/src'
    make: *** [default] Error 1

  3. #13
    Join Date
    Jan 2010
    Posts
    7

    Default

    mesa]# mkdir -p include/X11/extensions
    mesa]# cp ../dri2proto/dri2proto.h include/X11/extensions/
    mesa]# cp ../dri2proto/dri2tokens.h include/X11/extensions/
    make...

    and it builds.

    isn't this a task for autogen/config to fix?

  4. #14
    Join Date
    Jul 2008
    Posts
    208

    Default

    I upgraded the two protos a couple of days ago and everything worked fine. I just recompiled libdrm, mesa, xf...ati, and xf...radeonhd. No problems.

    I still use in the configure
    Code:
     --disable-gallium \
     --with-dri-drivers=swrast,radeon,r600
    Could this be difference?

    Is gallium ready to try?

    By the way, since I copy new code to directory each time I use autogen vs configure.

  5. #15
    Join Date
    Apr 2009
    Posts
    6

    Default

    The culprit was glproto-1.4.11 and dri2proto-2.2 packages.
    I run mostly a gentoo stable amd64 system, so just
    those 2 needed to be put in package.keywords

    Thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •