Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255027 - x11-libs/libXi requires trivial patch to fix build failure
Summary: x11-libs/libXi requires trivial patch to fix build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-15 10:59 UTC by Stuart Shelton
Modified: 2009-01-18 12:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!