Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 255027

Summary: x11-libs/libXi requires trivial patch to fix build failure
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: IRIX   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stuart Shelton 2009-01-15 10:59:26 UTC
On IRIX, x11-libs/libXi-1.3.0 fails with:

cc-1119 cc: ERROR File = XListDProp.c, Line = 53
  The "return" expression type differs from the function return type.

        return (NoSuchExtension);
               ^

1 error detected in the compilation of "XListDProp.c".

... which can be trivially fixed with the patch:

--- var/tmp/portage/x11-libs/libXi-1.2.0/work/libXi-1.2.0/src/XListDProp.c.dist        2009-01-15 10:43:57.530778400 +0000
+++ var/tmp/portage/x11-libs/libXi-1.2.0/work/libXi-1.2.0/src/XListDProp.c     2009-01-15 10:44:21.486720000 +0000
@@ -50,7 +50,7 @@ XListDeviceProperties(Display* dpy, XDev
 
     LockDisplay(dpy);
     if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
-       return (NoSuchExtension);
+       return ((Atom*)NoSuchExtension);
 
     GetReq(ListDeviceProperties, req);
     req->reqType = info->codes->major_opcode;
Comment 1 Fabian Groffen gentoo-dev 2009-01-18 12:47:54 UTC
please in the future attach patches as attachments, that way I don't have to reproduce them (tabs, spaces, line wraps, etc.)

Patch added, thanks!