SGI IRIX 6.5 Tips

First published — Oct 10, 2005
Last updated — Oct 10, 2005

SGI IRIX 6.5. Misc user tips.

Table of Contents


A quick, unsorted list of SGI IRIX 6.5 user tips.

Buying Advice


For historical purposes, in June 2005, the prices on EBay were as follows:

  • Indy machines: as low as 50 EUR

  • O2 machines: up to 150 EUR

  • Octane machines: no more than 400 EUR

  • Octane2 machines: any configuration for well under 1000 EUR

In January 2005, the following two Octane 2 systems went for 650 EUR each:

SGI Octane 2 (IP30)
2x R12k processors @ 400MHZ
3x 18.2GB disk

SGI Octane 2 (IP30)
2x R12k processors @ 400MHZ
3x 36.8GB disk

In April 2017:
RAD, Serials, 2x FC, LVDS, DCD, 4x 700, 5 GB, 6.5.28, 1 disk, smoke, stone, wire
RAD, Serials, GBIT eth, 2x FC, LVDS, DCD, ??, 2 GB

RAD audio: $64, Serial ports: $150, Qlogic card: $30
1x FC, GBIT eth, SCSI?, LVDS, DCD, 4x 800, 8 GB, 2x73 GB
GBIT eth, 2x FC, LVDS, DCD, 4x 1Ghz, 8 GB, 146 GB

SGI dialbox, 8 dials, no power supply.


For Tezro sleds, Sun P/N 330-3696 can be a replacement.

P/N 024-1895-001 is the 4x1GHz node board.

User Tips


stty susp ^Z
trap - 2 3
alias vi=vim


4DWm*curNewBackground:  1
ScreenSaver*saverSelected:      Blank
ScreenSaver*lastScreenSaverTimeout:     600
4DWm*Desk 1.backgroundDescription:      -xpm /usr/include/X11/bitmaps/sgidesktop/bg03.xpm -colors #12123a #16163c #1a1a42 #222256


:0 secure /usr/bin/X11/X -bs -c -class TrueColor -depth 24 -solidroot sgilightblue -cursorFG red -cursorBG white -overlay

Install Nekoware

Use the script.

And point it to nekoware mirror .

MIPSPro - GCC Wrapper

Linux VPro Patches

Alpha support was available on .

Compilation Errors

A quick, unsorted list of compilation errors on SGI IRIX 6.5, along with fixes.

error: `sighandler_t’ undeclared (first use this function)

sighandler_t comes from Linux. It is defined as typedef void (*sighandler_t)(int); so you can copy this definition.

invalid conversion from unsigned int*' to socklen_t*'

E.g. happening during initializing argument 5 of int getsockopt(int, int, int, void*, socklen_t*).

Cast to proper type, (socklen_t*).

error: `textdomain’ undeclared (first use this function)

textdomain() is actually named libintl_textdomain(), and for that you need to include libintl.h and link with -lintl.

Also, *domain functions are supposedly NO-OPs so, alternatively, you can comment them from source.

A value of type “void *” cannot be used to initialize an entity of type “buffer_proc_t”.

No solution on record.

The expression must be a pointer to a complete object type.

This error may occur on lines such as data->data.ptr += length;.

Use this syntax:

-      data->data.ptr += length;
+      {
+        char* p = (char*)(data->data.ptr) + length;
+        data->data.ptr = p;
+      }

The source file “obstack.h” is unavailable.

That error may occur on lines such as #include <obstack.h>.

Find the header file location and provide it directly, using double quotes:

-#include <obstack.h>
+#include "getopt/obstack.h"

An entity with internal linkage cannot be referenced within an inline function with external linkage

You probably have the function declared as inline. You need to remove the inline.

Unresolved text symbol “strnlen” – 1st referenced by …

That error may happen in object files such as ../lib/libdpkg.a(tarfn.o).

Define strnlen directly in program source, like this:

strnlen(const char *s, size_t len)  {
  size_t l = 0;
  while(s[l] && l < len) l++;
  return l;

For MIPSPro Compiler >= 7.3


+/* Needed for IRIX/C99 */
+#if defined(__sgi) && defined(_COMPILER_VERSION) &&          _COMPILER_VERSION >= 740 && defined(__c99)
+  #ifndef __FUNCTION__
+  #define __FUNCTION__ __func__
+  #endif


Automatic Links

The following links appear in the article:

1. -
3. Nekoware Mirror -