SGI IRIX 6.5 Tips

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

SGI IRIX 6.5. Misc user tips.

Article Collection

This article is part of the following series:

1. Misc

Table of Contents

Summary

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

Buying Advice

Prices

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
3GB RAM

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

In April 2017:

https://www.ebay.de/itm/SGI-SILICON-GRAPHICS-TEZRO-AUTODESK-SMOKE-IRIX-6-5-28-STONE-AND-WIRE-2007-CMN027-/231522799349?pt=LH_DefaultDomain_0&hash=item35e7d58ef5#shpCntId
RAD, Serials, 2x FC, LVDS, DCD, 4x 700, 5 GB, 6.5.28, 1 disk, smoke, stone, wire
$2132

https://www.ebay.com/itm/SGI-SILICON-GRAPHICS-TEZRO-AUTODESK-R1600-No-HDD-2-GB-/271833292065?pt=LH_DefaultDomain_0&rmvSB=true
RAD, Serials, GBIT eth, 2x FC, LVDS, DCD, ??, 2 GB
$900

RAD audio: $64, Serial ports: $150, Qlogic card: $30

https://www.ebay.com/itm/SGI-Tezro-4x-800Mhz-8gig-ram-2-x-73gig-drive-V12-graphics-DCD-DM-DVD-/251915225308?pt=LH_DefaultDomain_0&rmvSB=true
1x FC, GBIT eth, SCSI?, LVDS, DCD, 4x 800, 8 GB, 2x73 GB
$995

https://www.ebay.com/itm/SGI-Tezro-4x1Ghz-8gig-ram-146gig-drive-V12-graphics-DCD-DM-DVD-/251911749910?pt=LH_DefaultDomain_0&rmvSB=true
GBIT eth, 2x FC, LVDS, DCD, 4x 1Ghz, 8 GB, 146 GB
$2500

SGI dialbox, 8 dials, no power supply.
$45

Tezro

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

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

User Tips

/etc/profile

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

.Sgiresources

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

/var/X11/xdm/Xservers

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

Install Nekoware

Use the nekodeps.pl script.

And point it to pixelbart.net nekoware mirror.

MIPSPro - GCC Wrapper

https://github.com/srcshelton/IRIX-MIPSpro-wrapper

Linux VPro Patches

Alpha support was available on https://skylark.cs.put.poznan.pl/ip30/.

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:

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

For MIPSPro Compiler >= 7.3

COMPILER_VERSION >= 7.3
__sgi

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

__cplusplus

Article Collection

This article is part of the following series:

1. Misc

Automatic Links

The following links appear in the article:

1. Nekodeps.pl - http://techpubs.spinlocksolutions.com/irix/nekoware-installer/
2. https://github.com/srcshelton/IRIX-MIPSpro-wrapper
3. Pixelbart.net Nekoware Mirror - https://pixelbart.net/SGI/Nekoware/
4. https://skylark.cs.put.poznan.pl/ip30/