After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 308449 - modifications needed to compile gtk2 on IRIX 5.3
modifications needed to compile gtk2 on IRIX 5.3
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Input Methods
2.7.x
Other IRIX
: Normal normal
: Need diagnosis
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-06-20 21:48 UTC by Georg Schwarz
Modified: 2013-08-14 01:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Georg Schwarz 2005-06-20 21:48:48 UTC
Version details: 2.7.6
Distribution/Version: 5.3

The following modifications were necessary to compile gtk2 on IRIX5.3:
- it had to be configured using ac_cv_lib_X11_XkbQueryExtension=no.
- gtk/xdgmime/xdgmimecache.c needed the following extra lines:

ifndef MAP_FAILED
#define MAP_FAILED      ((void *) -1)
#endif
typedef unsigned short          uint16_t;
typedef unsigned int            uint32_t;

- gtk/gtkiconcache.c needed the following extra lines:

#ifndef MAP_FAILED
#define MAP_FAILED      ((void *) -1)
#endif

- On IRIX 5.3 /usr/include/X11/Xlib.h defines:

typedef struct _XIMStringConversionCallbackStruct {
    XIMStringConversionPosition position;
    XIMStringConversionType type;
    XIMStringConversionOperation operation;
    unsigned short factor;
    XIMStringConversionText *text;
} XIMStringConversionCallbackStruct;

please note the second item is called type, not direction as on other 
OSes, e.g. Linux.
So I had to make the following change to the code:

--- modules/input/gtkimcontextxim.c.orig        Sat Jun 18 23:50:32 2005
+++ modules/input/gtkimcontextxim.c     Sun Jun 19 00:37:17 2005
@@ -1245,7 +1245,7 @@
             return;
         }
 
-      switch (conv_data->direction)
+      switch (conv_data->type)
         {
         case XIMForwardChar:
           for (i = conv_data->factor, q = p; i > 0 && *q; --i)

I am not sure if this is accurate though.
Comment 1 Matthias Clasen 2005-06-21 03:45:04 UTC
I've fixed the MAP_FAILED issue, not sure about the imcontext problem.
Comment 2 Matthias Clasen 2005-08-01 20:05:34 UTC
This needs to be investigated by someone with access to IRIX 5.3