Build error with latest git LibX11/LibXi

Shunichi Fuji palglowr at gmail.com
Fri Jun 12 17:57:57 PDT 2009


http://cgit.freedesktop.org/xorg/proto/inputproto/commit/?id=1d59de593c5aac8e109fcb3c1173d4dc14742dee

This change is triggered to fail building the Xserver.
it would resolve by this patch.

------
diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c
index 1259de5..7a16e85 100644
--- a/Xi/xiselectev.c
+++ b/Xi/xiselectev.c
@@ -46,7 +46,7 @@ SProcXISelectEvents(ClientPtr client)
     REQUEST(xXISelectEventsReq);
     swaps(&stuff->length, n);
     REQUEST_AT_LEAST_SIZE(xXISelectEventsReq);
-    swapl(&stuff->window, n);
+    swapl(&stuff->win, n);
     swaps(&stuff->num_masks, n);
 
     evmask = (xXIEventMask*)&stuff[1];
@@ -76,7 +76,7 @@ ProcXISelectEvents(ClientPtr client)
     if (stuff->num_masks == 0)
         return BadValue;
 
-    rc = dixLookupWindow(&win, stuff->window, client, DixReceiveAccess);
+    rc = dixLookupWindow(&win, stuff->win, client, DixReceiveAccess);
     if (rc != Success)
         return rc;
 
@@ -154,7 +154,7 @@ SProcXIGetSelectedEvents(ClientPtr client)
     REQUEST(xXIGetSelectedEventsReq);
     swaps(&stuff->length, n);
     REQUEST_SIZE_MATCH(xXIGetSelectedEventsReq);
-    swapl(&stuff->window, n);
+    swapl(&stuff->win, n);
 
     return (ProcXIGetSelectedEvents(client));
 }
@@ -175,7 +175,7 @@ ProcXIGetSelectedEvents(ClientPtr client)
     REQUEST(xXIGetSelectedEventsReq);
     REQUEST_SIZE_MATCH(xXIGetSelectedEventsReq);
 
-    rc = dixLookupWindow(&win, stuff->window, client, DixReceiveAccess);
+    rc = dixLookupWindow(&win, stuff->win, client, DixReceiveAccess);
     if (rc != Success)
         return rc;
 

On Fri, 12 Jun 2009 11:33:41 -0700 (PDT)
ace102 <mgavl69 at juno.com> wrote:

> 
> LibX11
> 
> ../../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../../../src
> -I../../../include/X11    -I../../../include -I../../../include/X11
> -I../../../include -I../../../include/X11 -I../../../src/xcms
> -I../../../src/xkb -I../../../src/xlibi18n -Wall -Wpointer-arith
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wnested-externs -fno-strict-aliasing -Wbad-function-cast
> -Wold-style-definition -Wdeclaration-after-statement -Wall -Wpointer-arith
> -Wstrict-prototypes 	-Wmissing-prototypes -Wmissing-declarations 
> -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
> -DHAS_STICKY_DIR_BIT          -D_BSD_SOURCE -DXIM_t -DTRANS_CLIENT
> -DMALLOC_0_RETURNS_NULL -g -O2 -MT imLcIm.lo -MD -MP -MF .deps/imLcIm.Tpo -c
> -o imLcIm.lo imLcIm.c
> imLcIm.c: In function ‘_XimCachedFileName’:
> imLcIm.c:364: warning: format ‘%03x’ expects type ‘unsigned int’, but
> argument 6 has type ‘long unsigned int’
> imLcIm.c:367: warning: format ‘%03x’ expects type ‘unsigned int’, but
> argument 6 has type ‘long unsigned int’
> imLcIm.c:370: warning: implicit declaration of function ‘open’
> imLcIm.c:370: warning: nested extern declaration of ‘open’
> imLcIm.c:370: error: ‘O_RDONLY’ undeclared (first use in this function)
> imLcIm.c:370: error: (Each undeclared identifier is reported only once
> imLcIm.c:370: error: for each function it appears in.)
> imLcIm.c:376: warning: implicit declaration of function ‘close’
> imLcIm.c:376: warning: nested extern declaration of ‘close’
> imLcIm.c:383: warning: implicit declaration of function ‘time’
> imLcIm.c:383: warning: nested extern declaration of ‘time’
> imLcIm.c:386: warning: implicit declaration of function ‘unlink’
> imLcIm.c:386: warning: nested extern declaration of ‘unlink’
> imLcIm.c: In function ‘_XimWriteCachedDefaultTree’:
> imLcIm.c:493: error: ‘O_WRONLY’ undeclared (first use in this function)
> imLcIm.c:493: error: ‘O_CREAT’ undeclared (first use in this function)
> imLcIm.c:493: error: ‘O_EXCL’ undeclared (first use in this function)
> imLcIm.c: In function ‘_XimCreateDefaultTree’:
> imLcIm.c:530: warning: implicit declaration of function ‘geteuid’
> imLcIm.c:530: warning: nested extern declaration of ‘geteuid’
> imLcIm.c:531: warning: implicit declaration of function ‘getegid’
> imLcIm.c:531: warning: nested extern declaration of ‘getegid’
> imLcIm.c:544: error: ‘O_RDONLY’ undeclared (first use in this function)
> imLcIm.c:559: warning: implicit declaration of function ‘getuid’
> imLcIm.c:559: warning: nested extern declaration of ‘getuid’
> imLcIm.c:559: warning: implicit declaration of function ‘getgid’
> imLcIm.c:559: warning: nested extern declaration of ‘getgid’
> make[3]: *** [imLcIm.lo] Error 1
> make[3]: Leaving directory
> `/media/ubu/Goodone/hax/xorg-checkout/xorg/lib/libX11/modules/im/ximcp'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory
> `/media/ubu/Goodone/hax/xorg-checkout/xorg/lib/libX11/modules/im'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory
> `/media/ubu/Goodone/hax/xorg-checkout/xorg/lib/libX11/modules'
> make: *** [install-recursive] Error 1
> ---------------------------------
> 
> LibXi/Xserver
> 
>   CC    xiselectev.o
> xiselectev.c: In function ‘SProcXISelectEvents’:
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c: In function ‘ProcXISelectEvents’:
> xiselectev.c:79: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c: In function ‘SProcXIGetSelectedEvents’:
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c: In function ‘ProcXIGetSelectedEvents’:
> xiselectev.c:178: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> make[1]: *** [xiselectev.lo] Error 1
> make: *** [all-recursive] Error 1
> 
> Making install in Xi
>   CC    xiselectev.o
> xiselectev.c: In function ‘SProcXISelectEvents’:
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c:49: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c: In function ‘ProcXISelectEvents’:
> xiselectev.c:79: error: ‘xXISelectEventsReq’ has no member named ‘window’
> xiselectev.c: In function ‘SProcXIGetSelectedEvents’:
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c:157: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> xiselectev.c: In function ‘ProcXIGetSelectedEvents’:
> xiselectev.c:178: error: ‘xXIGetSelectedEventsReq’ has no member named
> ‘window’
> make[1]: *** [xiselectev.lo] Error 1
> make: *** [install-recursive] Error 1
> 
> Can these be safely ignored? I have these the latest protos installed also.
> 
> Thanks.
> 
> -----
> Error:Success
> -- 
> View this message in context: http://www.nabble.com/Build-error-with-latest-git-LibX11-LibXi-tp24004060p24004060.html
> Sent from the Free Desktop - xorg mailing list archive at Nabble.com.
> 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg



More information about the xorg mailing list