home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / sgi / faq / apps < prev    next >
Encoding:
Internet Message Format  |  2001-07-06  |  61.6 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!howland.erols.net!netnews.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!news.tamu.edu!sgi-faq
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI apps Frequently Asked Questions (FAQ)
  5. Supersedes: <apps_993016817@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 6 Jul 2001 05:59:42 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 1491
  10. Approved: news-answers-request@mit.edu
  11. Expires: 3 Aug 2001 06:00:15 GMT
  12. Message-ID: <apps_994399215@viz.tamu.edu>
  13. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  14. NNTP-Posting-Host: viz.tamu.edu
  15. NNTP-Posting-Date: 6 Jul 2001 05:59:42 GMT
  16. Originator: sgi-faq@viz.tamu.edu
  17. Xref: senator-bedfellow.mit.edu comp.sys.sgi.misc:57358 comp.answers:46103 news.answers:210655
  18.  
  19. Archive-name: sgi/faq/apps
  20. Last-modified: Tue Jun 20  1:00:03 CDT 2000
  21. Posting-Frequency: Twice monthly
  22. URL: http://www-viz.tamu.edu/~sgi-faq/
  23.  
  24.     SGI apps Frequently Asked Questions (FAQ)
  25.  
  26. This is one of the Silicon Graphics FAQ series, which consists of:
  27.  
  28.     SGI admin FAQ - IRIX system administration
  29.     SGI apps FAQ - Applications and miscellaneous programming
  30.     SGI audio FAQ - Audio applications and programming
  31.     SGI diffs FAQ - Changes to the other FAQs since the last posting
  32.     SGI graphics FAQ - Graphics and user environment customization
  33.     SGI hardware FAQ - Hardware
  34.     SGI impressario FAQ - IRIS Impressario
  35.     SGI inventor FAQ - IRIS Inventor
  36.     SGI misc FAQ - Introduction & miscellaneous information
  37.     SGI movie FAQ - Movies
  38.     SGI performer FAQ - IRIS Performer
  39.     SGI pointer FAQ - Pointer to the other FAQs
  40.     SGI security FAQ - IRIX security
  41.  
  42. Read the misc FAQ for information about the FAQs themselves. Each FAQ is
  43. posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  44. newsgroups (whose purpose is to store FAQs) twice per month. If you
  45. can't find one of the FAQs with your news program, you can get it from
  46.  
  47.     ftp://viz.tamu.edu/pub/sgi/faq/
  48.     ftp://rtfm.mit.edu/pub/usenet/news.answers/sgi/faq/
  49.  
  50. (rtfm.mit.edu is home to many other FAQs and informational documents,
  51. and is a good place to look if you can't find an answer here.) The FAQs
  52. are on the World Wide Web at
  53.  
  54.     http://www-viz.tamu.edu/~sgi-faq/
  55.  
  56. If you can't use FTP or WWW, send mail to mail-server@rtfm.mit.edu with
  57. the word 'help' on a line by itself in the text, and it will send you a
  58. document describing how to get files from rtfm.mit.edu by mail. Send the
  59. command 'send usenet/news.answers/sgi/faq/misc' to get the SGI misc FAQ,
  60. and similarly for the other FAQs. Send the command 'send
  61. usenet/news.answers/internet-services/access-via-email' to get the
  62. "Accessing the Internet by E-Mail FAQ".
  63.  
  64. You may distribute the SGI FAQs freely and we encourage you to do so.
  65. However, you must keep them intact, including headers and this notice,
  66. and you must not charge for or profit from them. Contact us for other
  67. arrangements. We can't be responsible for copies of the SGI FAQs at
  68. sites which we do not control, and copies published on paper or CD-ROM
  69. are certain to be out of date. The contents are accurate as far as we
  70. know, but the usual disclaimers apply. Send additions and changes to
  71. sgi-faq@viz.tamu.edu.
  72.  
  73. Topics covered in this FAQ:
  74. ---------------------------
  75.    -1- Where can I find software for SGIs?
  76.    -2- Where can I find software already compiled for SGIs?
  77.    -3- What about Explorer?
  78.    -4- WHAT TO USE?
  79.    -5- Where's the C compiler?
  80.    -6- What's a good graphical text editor for SGIs?
  81.    -7- What's a good mail program for SGIs?
  82.    -8- What's a good POP server for SGIs?
  83.    -9- Can I use MediaMail with a POP server?
  84.   -10- What's a good graphical 'diff' (side-by-side file comparison)
  85.        program for SGIs?
  86.   -11- What's a good calendar/reminder program?
  87.   -12- What is a good serial communications application?
  88.   -13- How can I convert ASCII to PostScript?
  89.   -14- How can I preview PostScript?
  90.   -15- How can I edit PostScript files?
  91.   -16- How can I deal with PDF (Portable Document Format) files?
  92.   -17- How can I format unformatted manpages?
  93.   -18- IRIX' version of top(1) doesn't let me renice or kill processes
  94.        interactively. What to do?
  95.   -19- What is the IRIX equivalent of 'trace'/'truss'?
  96.   -20- What is the IRIX equivalent of 'etherfind'?
  97.   -21- How can I capture a single frame from my IndyCam on the command
  98.        line?
  99.   -22- BUGS AND PROBLEMS
  100.   -23- Why isn't Iris Insight working properly?
  101.   -24- Why don't the arrow keys work in vi?
  102.   -25- How can I tell application X about my screen size?
  103.   -26- Why does ksh lock up if one's home directory is NFS-mounted?
  104.   -27- Why can't I 'talk' to Suns?
  105.   -28- How can I change what the keys on my keyboard do?
  106.   -29- Why is 'jot' so slow on a remote display in IRIX 5.2?
  107.   -30- Why does 'man -k' repeat itself in IRIX 5.2?
  108.   -31- Netscape 1.1S (the custom SGI version) says it can't find
  109.        'soundplayer'. What should I do?
  110.   -32- Netscape emits "X Error"s. What should I do?
  111.   -33- Netscape complains about a conflicting 'Netscape' file. What
  112.        should I do?
  113.   -34- Why do unwanted programs (e.g. Netscape) start themselves every
  114.        time I log in?
  115.   -35- COMPILERS AND PROGRAMMING
  116.   -36- What are the correct versions of the Irix Development Option
  117.        (IDO) and Fortran for current versions of IRIX?
  118.   -37- Why can't I compile my non-ANSI C program?
  119.   -38- Why doesn't application X understand NIS (Yellow Pages)?
  120.   -39- Where's 'edge' in IRIX 5.x? What can I use instead?
  121.   -40- How can I generate IRIX 4.0.x-compatible executables under IRIX
  122.        5.x?
  123.   -41- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  124.   -42- Why are some non-shared libraries missing in IRIX 5.x?
  125.   -43- Where are the audio, CD and DAT libraries in IRIX 5.2?
  126.   -44- Why can't my networking application resolve hostnames in IRIX
  127.        5.x?
  128.   -45- Can I use dynamic shared objects in IRIX?
  129.   -46- How can I tell which shared objects my executable uses?
  130.   -47- Why does malloc() never return NULL?
  131.   -48- What is the difference between libc's malloc() and libmalloc's
  132.        malloc()?
  133.   -49- What prototypes are missing in IRIX 4.0.x and 5.x?
  134.   -50- Where are the regcmp and regex functions?
  135.   -51- Why does make(1) complain about syntax errors that I can't find?
  136.   -52- What's wrong with strip(1)?
  137.   -53- Why does my floating point signal processing routine, when given
  138.        certain inputs, run incredibly slowly and consume all of the CPU
  139.        in _system_ or _interrupt_ time ?
  140.   -54- Why don't IRIX 5.3 executables run on IRIX 6.0.1?
  141.   -55- Why don't COFF executables run on IRIX 6.1 or 6.2?
  142.   -56- What object file formats does IRIX 6.2 support?
  143.   -57- What are GP-relative and GOT overflows, and how can I fix them?
  144.   -58- Why can't Perl open a socket on my SGI?
  145.   -59- PORTING
  146.   -60- How can I make the 'install' program work like BSD 'install'?
  147.   -61- Where's 'ranlib'?
  148.   -62- What do I need to do to build gcc/g++?
  149.   -63- Is there an SGI-compatible version of XView?
  150.   -64- How can I get db-1.85 to work on IRIX 5.x?
  151.  
  152. ----------------------------------------------------------------------
  153.  
  154. Subject:    -1- Where can I find software for SGIs?
  155. Date: 4 Nov 1998 00:00:01 EST
  156.  
  157.   Silicon Graphics can tell you about their own and third-party
  158.   commercial software.  Call SGI Direct for more information (see the
  159.   misc FAQ for phone numbers) or look around on SGI's WWW server,
  160.   Silicon Surf (http://www.sgi.com/ or its mirrors; see the misc FAQ),
  161.   particularly under "Surf Shop" and "Subsidiaries and Partners".
  162.  
  163.   The best general reference for finding sources on the Internet is
  164.   Jonathan Kamens' "Finding Sources" document. It can be FTPed from
  165.   ftp://rtfm.mit.edu/pub/usenet/news.answers/finding-sources. Read it
  166.   carefully before you post a question about finding software ...
  167.   because half of your answers will be "look in Archie" anyway, and
  168.   "Finding Sources" tells you how to do that.
  169.  
  170.   Useful general archive sites include ftp://ftp.x.org/ for X software
  171.   (particularly in the /contrib and /R5contrib directories) and X itself
  172.   (in /pub), ftp://prep.ai.mit.edu/pub/gnu/ for GNU software, and
  173.   ftp://ftp.uu.net/ and ftp://wuarchive.wustl.edu/ for nearly anything,
  174.   including archives of many Usenet sources newsgroups and mirrors of
  175.   the aforementioned GNU and X archives.
  176.  
  177.   The best SGI-specific reference is Bill Henderson's
  178.   <billh@hampton.sgi.com> SGI anonymous FTP list. (Look in the misc FAQ
  179.   under "WWW pages" and "network-accessible documents".)  Good places to
  180.   look, if you just feel like looking, are ftp://ftp.sgi.com/ and
  181.   ftp://sgigate.sgi.com/, where are kept any number of freebies from the
  182.   folks at SGI, http://www.sgi.com/Fun/free/, a collection of freeware
  183.   from SGI and elsewhere, and ftp://swedishchef.lerc.nasa.gov/, a site
  184.   particularly well-stocked with SGI-related materials.
  185.  
  186.   SGI publishes a freeware CD-ROM with sources and binaries for popular
  187.   free software; it is included with new systems and its most recent
  188.   versions are available on the web at http://freeware.sgi.com/ which  
  189.   is updated frequently.
  190.  
  191.   Finally, see the next question for places to find precompiled
  192.   software and questions (in this and the other SGI FAQs) which discuss
  193.   particular packages for pointers to those packages.
  194.  
  195. ------------------------------
  196.  
  197. Subject:    -2- Where can I find software already compiled for SGIs?
  198. Date: Wed Sep 22 14:11:20 CDT 1999
  199.  
  200.   ftp://cb-iris.stanford.edu/pub/ *
  201.   ftp://detritus.phys.wesleyan.edu/pub/
  202.   ftp://ftp.uni-stuttgart.de/sw/
  203.   ftp://mat075402.student.utwente.nl/pub/SGI/ *
  204.   http://mat075402.student.utwente.nl/pub/SGI/index.html *
  205.   http://www.ibd.nrc.ca/~sgi/
  206.   http://www.madness.net/sgi.html
  207.   http://www.pk.edu.pl/pub/sgi/ *
  208.   http://www.sgi.com/Fun/free/ *
  209.  
  210.   are good places to try. (At least some of the software at the sites
  211.   marked with `*' is not only precompiled but packaged so that you can
  212.   install it with 'inst' and/or 'swmgr'.) If all else fails, check Bill
  213.   Henderson's list (see the misc FAQ).  Keep in mind that many of these
  214.   binaries won't be the latest version, and it's worth checking the
  215.   latest version to see if IRIX support has improved.  SGI's presence is
  216.   continuously increasing and the trend is definitely toward better IRIX
  217.   support.
  218.  
  219. ------------------------------
  220.  
  221. Subject:    -3- What about Explorer?
  222. Date: 04 Aug 1995 00:00:01 EST
  223.  
  224.   The IRIS Explorer data visualization system has its own newsgroup,
  225.   comp.graphics.apps.iris-explorer. There is an FTP site at
  226.   ftp://ftp.epcc.ac.uk/pub/explorer/ (with a North American mirror at
  227.   ftp://swedishchef.lerc.nasa.gov/explorer/), a WWW page at
  228.   http://www.nag.co.uk:70/1h/Welcome_IEC and an FAQ which you can find
  229.   at any of those sites.
  230.  
  231. ------------------------------
  232.  
  233. Subject:    -4- WHAT TO USE?
  234. Date: 10 Dec 1993 00:00:01 EST
  235.  
  236.   The next few questions discuss software for various applications.
  237.  
  238. ------------------------------
  239.  
  240. Subject:    -5- Where's the C compiler?
  241. Date: Mon May 22 11:49:44 CDT 2000
  242.  
  243.   For IRIX 5.3, IDO is now available on the web free. See
  244.   http://www.sgi.com/developers/devtools/apis/ido.html
  245.   Complete with C compiler, headers, libraries, and tools.
  246.  
  247.   For IRIX 6.2-6.4, one needs IDF/IDL plus a compiler.  Purchase a
  248.   C compiler from SGI (IDF/IDL come with the compiler) or download
  249.   IDF/IDL (and gcc) for free.  IDF/IDL images for 6.2, 6.3, 6.4 are
  250.   at http://www.sgi.com/developers/devtools/apis/idf_idl.html
  251.   Get gcc from http://freeware.sgi.com/ to have a free C compiler.
  252.  
  253.   For IRIX 6.5, one needs IDF/IDL plus a compiler.  IDF and IDL are
  254.   shipped with IRIX6.5.  Purchase a C compiler from SGI and/or get
  255.   gcc for free from http://freeware.sgi.com/.
  256.  
  257. ------------------------------
  258.  
  259. Subject:    -6- What's a good graphical text editor for SGIs?
  260. Date: 24 Aug 1996 00:00:01 EST
  261.  
  262.   The most popular graphic text editors on SGIs include:
  263.  
  264.   IRIX 5.x includes jot, which is very nice. It requires GL, i.e. no
  265.   X-terminals, text terminals or non-SGI machines. See below for a bug
  266.   and workaround. zip is the IRIX 4.x incarnation of jot (the jot which
  267.   comes with IRIX 4.x is something else entirely); FTP it from
  268.   ftp://ftp.sgi.com/graphics/zip/.
  269.  
  270.   nedit is a straightforward graphical editor with programmers'
  271.   features. It needs X-windows but not GL. Get it from
  272.   ftp://ftp.fnal.gov/pub/nedit/, and see also
  273.   http://www-pat.fnal.gov/nirvana/nedit.html.
  274.  
  275.   GNU Emacs, a perennial favorite, isn't just an editor; it's a way of
  276.   life.  It has a X-windows mode and works on X-windows terminals as
  277.   well as SGI consoles and text terminals. Its X-windows support, once
  278.   rather lackluster, has improved in the recently released version 19.
  279.   It may be FTPed from any GNU archive, e.g.
  280.   ftp://prep.ai.mit.edu/pub/gnu/.
  281.  
  282.   XEmacs (formerly Lucid Emacs) is a derivative of GNU Emacs 19. It has
  283.   subsumed Epoch, another derivative of GNU Emacs. It may be found in
  284.   ftp://cs.uiuc.edu/pub/xemacs/, and it has a WWW page at
  285.   http://xemacs.cs.uiuc.edu/. It works on both text and graphics
  286.   terminals.
  287.  
  288.   Finally, the comp.windows.x FAQ (at
  289.   ftp://rtfm.mit.edu/pub/usenet/comp.windows.x/) lists many more editors
  290.   which run under X-windows, both free and commercial.
  291.  
  292. ------------------------------
  293.  
  294. Subject:    -7- What's a good mail program for SGIs?
  295. Date: 18 Jun 1995 00:00:01 EST
  296.  
  297.   Z-Mail is a commercial product written by Z-Code and redistributed by
  298.   SGI. IRIX 5.x includes MediaMail, a subset of Z-Mail. Both are
  299.   graphical, MIME-compatible (MIME, described in RFC1521, is a standard
  300.   for enclosing multimedia material in your mail) and have a text-only
  301.   mode.
  302.   ftp://viz.tamu.edu/pub/sgi/software/mail/zmail-vs-mediamail.ps.gz
  303.   describes the differences between Z-Mail and MediaMail. Z-Mail has its
  304.   own WWW site (http://www.ncd.com/Z-Code/zcode.html) and newsgroup
  305.   (comp.mail.zmail).
  306.  
  307.   The free programs Elm and Pine use text-based menus. They are easy to
  308.   use, powerful and can easily be run in a separate window. They can be
  309.   configured to use 'metamail' for MIME support. Elm can be FTPed from
  310.   ftp://dsinc.dsi.com/elm/, Pine from ftp.cac.washington.edu:/pine/ and
  311.   'metamail' from ftp://thumper.bellcore.com/pub/nsb/. Z-Mail/MediaMail
  312.   includes 'metamail', so if you use both Z-Mail/MediaMail and Elm or
  313.   Pine or another free mail program, you can save yourself some trouble
  314.   by configuring the latter to use the former's 'metamail'. Elm has an
  315.   FAQ in ftp://rtfm.mit.edu/pub/usenet/comp.mail.elm/. Packages which
  316.   make Elm work nicely with IRIX 4.0.x's WorkSpace and IRIX 5.2's Indigo
  317.   Magic are at ftp://proton.chem.yale.edu/pub/elm-ws-support.shar and
  318.   ftp://proton.chem.yale.edu/pub/elm-im-support.shar. Elm's autoreply/
  319.   arepdaemon subsystem has a bad security hole, so don't install those
  320.   binaries. (They have been removed from v. 2.4.24 and later.) The rest
  321.   of Elm is fine. Both programs have newsgroups, comp.mail.elm and
  322.   comp.mail.pine.
  323.  
  324.   'mh' is a free, command-line oriented Mail Handling system. FTP the
  325.   source code from ftp://ftp.ics.uci.edu/pub/mh/ and patches for IRIX
  326.   from ftp://viz.tamu.edu/pub/sgi/software/mail/. If you build 'mh' you
  327.   can use 'xmh', a graphical mailer, which is part of Xwindows and thus
  328.   comes with IRIX. 'mh' has a newsgroup, comp.mail.mh.
  329.  
  330.   Finally, Chris Lewis' "Unix Email Software - a Survey" lists many
  331.   more mail programs. FTP it from
  332.   ftp://rtfm.mit.edu/pub/usenet/news.answers/mail/setup/unix/.
  333.  
  334. ------------------------------
  335.  
  336. Subject:    -8- What's a good POP server for SGIs?
  337. Date: 17 Feb 1996 00:00:01 EST
  338.  
  339.   Try the Berkeley popper, under http://www.ibd.nrc.ca/~sgi/, the
  340.   Qualcomm popper, in ftp://ftp.qualcomm.com/quest/unix/servers/popper/,
  341.   the Z-Code popper, in ftp://ftp.ncd.com/pub/z-code/supported/z-pop/,
  342.   or imapd (which supports pop2 and pop3) in
  343.   ftp://ftp.cac.washington.edu/mail/. Some info is at
  344.   http://www.sgi.com/Technology/Connectivity/pop.html. On a related
  345.   note, some ports of poppassd (a POP password changing daemon) to IRIX
  346.   5.3 are in ftp://viz.tamu.edu/pub/sgi/software/mail/.
  347.  
  348. ------------------------------
  349.  
  350. Subject:    -9- Can I use MediaMail with a POP server?
  351. Date: 09 Dec 1995 00:00:01 EST
  352.  
  353.   Walter Roberson <roberson@hamer.ibd.nrc.ca> writes:
  354.  
  355.   Under IRIX 5.2, set the environment variable MAILHOST to the name of
  356.   the mail server, and set the zmail variable 'use_pop'.  You may also
  357.   wish to set the zmail variable 'pop_options' to have mail retained on
  358.   the server. Your userids on the machine with MediaMail and on the POP
  359.   server must be the same.
  360.  
  361.   Under IRIX 5.3 all of the above still applies as well as the
  362.   following: You can set the zmail variable 'mailhost' instead of the
  363.   environment variable MAILHOST.  You can set the zmail variable
  364.   'pop_user' to your userid on the POP server if it is different from
  365.   your local userid.
  366.  
  367.   Note that MediaMail, like any POP client, cannot send mail to the POP
  368.   server, only retrieve mail which has been sent to the server. That's
  369.   just fine; doing the above doesn't prevent MediaMail from delivering
  370.   mail normally.
  371.  
  372.   "Digital Media Execution Environment and Tools 5.5", at
  373.   http://www.sgi.com/Products/Evaluation/dmedia/dmedia.html, includes an
  374.   updated version of MediaMail for IRIX 5.3.
  375.  
  376. ------------------------------
  377.  
  378. Subject:   -10- What's a good graphical 'diff' (side-by-side file
  379.                 comparison) program for SGIs?
  380. Date: Tue Dec  7 10:04:06 CST 1999
  381.  
  382.   gdiff(1) has been a part of IRIX for many years. It requires GL. It is
  383.   SGI-proprietary and was written using a now-obsolete UI toolkit, so
  384.   its source isn't available and you wouldn't want it anyway.
  385.  
  386.   'xdiff' first appeared on the second IndiZone CD. It is not to be
  387.   confused with the much less useful program of the same name posted to
  388.   comp.sources.x some years ago. The IndyZoneII version of xdiff is
  389.   now part of IRIX. A newer version of 'xdiff', capable of more
  390.   than two files, is available from http://reality.sgi.com/rudy/xdiff.
  391.  
  392.   'mgdiff' is a gdiff lookalike based on X11 and Motif, written by Dan
  393.   Williams <dan@sass.com>. It is in the X11R6 contrib stuff, at
  394.   ftp://ftp.x.org/contrib/applications/mgdiff.tar.gz among other places.
  395.  
  396. ------------------------------
  397.  
  398. Subject:   -11- What's a good calendar/reminder program?
  399. Date: 06 May 1995 00:00:01 EST
  400.  
  401.   SGI doesn't provide one. There are several free graphical calendars
  402.  
  403.       acal    On the second IndiZone CD (IndiZone info is at
  404.                 http://www.sgi.com/Products/Indy/IndiZone/)
  405.       lowcal  ftp://ftp.netcom.com/pub/benoist/sgi/
  406.       plan    ftp://ftp.fu-berlin.de/pub/unix/graphics/plan/
  407.       vcal    ftp://ftp.sgi.com/sgi/vcal/
  408.  
  409.   and a text-only reminder program
  410.  
  411.       remind  ftp://ftp.doe.carleton.ca/pub/remind-3.0/
  412.  
  413.   which work on SGIs. They're all good; try them out and see which you
  414.   like best.
  415.  
  416. ------------------------------
  417.  
  418. Subject:   -12- What is a good serial communications application?
  419. Date: Mon May 22 15:59:47 CDT 2000
  420.  
  421.   C-Kermit is a combined serial and network communication software
  422.   package providing online sessions, file transfer, international
  423.   character-set translation, numeric and alpha paging, full scripting
  424.   of communications tasks.  As of the time of writing, the current
  425.   version is 7.0 and is available precompiled for IRIX releases from
  426.   5.3 to 6.5.  Previous versions are avaiable for earlier IRIX releases.
  427.  
  428.   http://www.columbia.edu/kermit/ckermit.html.
  429.  
  430. ------------------------------
  431.  
  432. Subject:   -13- How can I convert ASCII to PostScript?
  433. Date: 19 Jun 1994 00:00:01 EST
  434.  
  435.   - IRIX comes with 'lptops', which, because it's called indirectly
  436.     from 'lp', isn't as well known as it ought to be. Read the lptops(1)
  437.     and gpsinterface(1) manpages.
  438.  
  439.   - Adobe Transcript, which includes 'enscript' (something like
  440.     'lptops') and 'psroff' (nroff/troff-to-PostScript) is available at
  441.     extra cost from SGI.  Most people manage without it.
  442.  
  443.   - SGI's own Impressario does PostScript and a lot of other things. It
  444.     too costs extra, but is better liked than Transcript. See the
  445.     impressario FAQ.
  446.  
  447.   - Popular free converters include 'a2ps' (at
  448.     ftp://imag.fr/archive/postscript/), 'lwf' (in volume 15 of
  449.     comp.sources.unix, e.g.
  450.     ftp://ftp.uu.net/usenet/comp.sources.unix/volume15/lwf/) and 'psf'
  451.     (in volume 35 of comp.sources.misc, e.g.
  452.     ftp://ftp.uu.net/usenet/comp.sources.misc/volume35/psf3/).  The
  453.     comp.lang.postscript FAQ (at
  454.     ftp://rtfm.mit.edu/pub/usenet/comp.lang.postscript/) has a much
  455.     longer list of such programs, unfortunately no longer including
  456.     reviews or FTP sites.
  457.  
  458.   - One good way to print manpages is with the '-m' option to 'a2ps'.
  459.  
  460. ------------------------------
  461.  
  462. Subject:   -14- How can I preview PostScript?
  463. Date: 11 Feb 1995 00:00:01 EST
  464.  
  465.   In one of two ways:
  466.  
  467.   Display Postscript (DPS) comes with IRIX 5.x. (Machines which came
  468.   with IRIX 4.0.1-4.0.4 didn't get DPS in later versions of IRIX 4.x,
  469.   but it is standard in 5.x.)  It includes the 'xpsview' viewer. The DPS
  470.   developer's option, which you need to write or build programs which
  471.   exploit DPS, costs extra.
  472.  
  473.   Ghostscript is free from Aladdin Software and the Free Software
  474.   Foundation; ghostview (a viewer which uses ghostscript) is likewise
  475.   free from the FSF. Original sources are in
  476.   ftp://ftp.cs.wisc.edu/pub/ghost/, and Robert Keller of SGI
  477.   <rck@fangio.asd.sgi.com> has put a compiled, 'inst'-installable
  478.   package at ftp://ftp.sgi.com/sgi/ghost/.
  479.  
  480.   Dale Atems <atems@physics.wayne.edu> points out:  Many people try
  481.   ghostscript and give it up because of the fonts.  There is something
  482.   about ghostscript that's not as widely known as it should be and
  483.   deserves emphasis: if you have SGI's Display Postscript, you can
  484.   forget about most of the ugly bitmap fonts that come with
  485.   ghostscript.  Edit your Fontmap file to point ghostscript to the DPS
  486.   outline fonts (in /usr/lib/DPS/outline/base) and it will use them
  487.   instead. This will improve both screen display and, if you're not
  488.   using a Postscript printer with those fonts already built in,
  489.   printing quality. [Editor's note: This seems to cause problems with
  490.   some files under IRIX 5.x. Any details?]
  491.  
  492. ------------------------------
  493.  
  494. Subject:   -15- How can I edit PostScript files?
  495. Date: 16 Sep 1995 00:00:01 EST
  496.  
  497.   Ivan Bach <ib@sgi.com> collected some testimonials from a number of
  498.   SGIers:
  499.  
  500.   - Adobe Illustrator and Corel Draw can edit PS files of type AI (a
  501.     simplified version of PS that facilitates editing).
  502.  
  503.   - Transverter (from TechPool, 212-291-1922) can convert some general
  504.     PostScript files to AI PostScript. It also does other conversions,
  505.     e.g. to TIFF.
  506.  
  507.   - If you have DPS and the DPS developer's kit you can do this quite
  508.     well with xfig. Check out the version in
  509.     ftp://ftp.x.org/contrib/R5contrib-fixes/xfig-patches/.
  510.  
  511.   - The InterViews tool `idraw' allows manipulation of EPS
  512.     (Encapsulated PostScript) files, and has a `mac-type' interface.
  513.  
  514.   - Island Draw 3.0 has an option to import Postscript, and it seems to
  515.     accept arbitrary Postscript.  I have fed it single page Postcript
  516.     files from Illustrator, Corel, Ventura, Designer, Eroff, and
  517.     hand-coded files, and it made Island Draw objects out of them.  The
  518.     file initially opens as one grouped object, but if you ungroup, you
  519.     get editable objects.  I was quite impressed.  I don't doubt there
  520.     are ways to fool the interpreter, but it works for output from
  521.     drawing and publishing packages, which is what I need it for.
  522.  
  523.   - Jack Howarth <howarth@nitro.med.uth.tmc.edu> adds: ps2ai.ps converts
  524.     Postscript to AI Postscript. It requires ghostscript (see above).
  525.     aimaker is a front end to ps2ai.ps. Both programs can be found in
  526.     ftp://toby.princeton.edu/pub/olszewsk/.
  527.  
  528. ------------------------------
  529.  
  530. Subject:   -16- How can I deal with PDF (Portable Document Format)
  531.                 files?
  532. Date: 23 Sep 1995 00:00:01 EST
  533.  
  534.   Adobe Acrobat is at (naturally enough)
  535.   ftp://ftp.adobe.com/pub/adobe/Applications/Acrobat/SGI/ and also
  536.   http://www.sgi.com/Products/software/Acrobat.html. John C. Hart
  537.   <hart@ginzoo.eecs.wsu.edu> has a modified version of Ghostscript
  538.   3.33/Ghostview which can read PDF files in
  539.   ftp://siggraph.org/utilities/unix/ghost/.
  540.  
  541. ------------------------------
  542.  
  543. Subject:   -17- How can I format unformatted manpages?
  544. Date: 20 Jul 1996 00:00:01 EST
  545.  
  546.   SGI provides manpages in formatted form, and does not therefore
  547.   provide us all with the formatting software. Most FTPable manpages,
  548.   however, come in nroff ("unformatted") form.
  549.  
  550.   To install an unformatted manpage, one needs to format it (more on
  551.   this in a moment), pack it with pack(1) and put it in the appropriate
  552.   place under one of the 'catman' directories (see man(1)).
  553.   Alternatively, one might simply put the unformatted manpage under one
  554.   of the 'man' directories (again, see man(1)) and let IRIX run the
  555.   formatting software on it as needed. Which method one uses is a matter
  556.   of taste. In any case, one needs formatting software, and that is what
  557.   the rest of this entry is about.
  558.  
  559.   Manpages are most often formatted with 'nroff', which is a part of
  560.   Documenter's Workbench (DWB), which SGI has had to license separately
  561.   from USL and we have to buy separately from SGI.  SGI's DWB is based
  562.   on version 2.1; the current version from USL is 3.3.
  563.  
  564.   You might be able to format manpages on a non-SGI machine which does
  565.   have DWB/nroff. You might need to specify the generic printer macros
  566.   with '-Tlp', e.g. 'nroff -man -Tlp foo.1 > foo'.
  567.  
  568.   Public domain alternatives to DWB include 'awf' and 'groff':
  569.  
  570.   Henry Spencer's awf ("Amazingly Workable Formatter") is written in
  571.   'awk', which we all have, and does a pretty good job, considering. It
  572.   can be FTPed from ftp://ftp.sgi.com/sgi/IRIX5.0/man/, along with a
  573.   version of 'man' which looks for awf if nroff isn't available. It will
  574.   come with releases of IRIX after 5.3. Dan Stromberg
  575.   <strombrg@hydra.acs.uci.edu> notes that there is a C version of 'awf'
  576.   called 'cawf' which may be preferable; we don't know if it runs on
  577.   IRIX.
  578.  
  579.   'groff' is by the Free Software Foundation and can be had from any GNU
  580.   archive (e.g. ftp://prep.ai.mit.edu/pub/gnu/).  Compilers beware: it
  581.   must be compiled with g++ or SGI's C++. However, there are compiled
  582.   binaries in ftp://cb-iris.stanford.edu/pub/gnu/.  David Hinds
  583.   <dhinds@allegro.stanford.edu>, the man who put them there, gives this
  584.   advice for installing groff so that it can format manpages on the fly
  585.   in IRIX 4.0.x:
  586.  
  587.   Create a script called 'eqn':
  588.  
  589.    > #!/bin/sh
  590.    > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  591.    > geqn $*
  592.  
  593.   and a script called 'neqn':
  594.  
  595.    > #!/bin/sh
  596.    > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  597.    > geqn -Tascii $*
  598.  
  599.   and do:
  600.  
  601.    > ln -s gnroff nroff
  602.  
  603.   and edit the end of the gnroff script to be:
  604.  
  605.    > rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  606.    > exec groff -Wall -mtty-char $T $opts $rest
  607.  
  608.   To get PostScript output from 'man -t', you also need to create a
  609.   'psroff' script similar to 'nroff'.  Here are the context diffs:
  610.  
  611.   *** /usr/local/bin/nroff        Sat Feb 13 15:51:09 1993
  612.   --- /usr/local/bin/psroff       Sat Feb 13 17:45:46 1993
  613.   ***************
  614.   *** 1,8 ****
  615.     #!/bin/sh
  616.   ! # Emulate nroff with groff.
  617.  
  618.     prog="$0"
  619.   ! T=-Tascii
  620.     opts=
  621.  
  622.     for i
  623.   --- 1,8 ----
  624.     #!/bin/sh
  625.   ! # Emulate psroff with groff.
  626.  
  627.     prog="$0"
  628.   ! T=-Tps
  629.     opts=
  630.  
  631.     for i
  632.   ***************
  633.   *** 25,30 ****
  634.   --- 25,33 ----
  635.           -Tascii|-Tlatin1)
  636.                   T=$1
  637.                   ;;
  638.   +       -t)
  639.   +               # ignore -- default is send to stdout
  640.   +               ;;
  641.           -T*)
  642.                   # ignore other devices
  643.                   ;;
  644.   ***************
  645.   *** 49,53 ****
  646.     rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  647.  
  648.     # This shell script is intended for use with man, so warnings are
  649.     # probably not wanted.  Also load nroff-style character definitions.
  650.   ! exec groff -Wall -mtty-char $T $opts $rest
  651.   --- 52,56 ----
  652.     rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  653.  
  654.     # This shell script is intended for use with man, so warnings are
  655.   ! # probably not wanted.
  656.   ! exec groff -Wall $T $opts $rest
  657.  
  658.   The binaries on cb-iris.stanford.edu have these changes already made.
  659.  
  660.   Paul Walmsley <ccshag@cclabs.missouri.edu> offers the following
  661.   advice for IRIX 5.x, which assumes that you have already followed
  662.   David Hinds' instructions for IRIX 4.0.x:
  663.  
  664.   1. Remove the link from tbl to gtbl.
  665.  
  666.   2. Rename gtroff to gtroff-exe or some other suitable name.  Note
  667.      that if you name it something other than gtroff-exe, you must
  668.      change the gtroff script below.
  669.  
  670.   3. Install the gtroff and tbl scripts included below in place of the
  671.      above two programs, and chmod them appropriately.
  672.  
  673.   --- cut here for tbl ---
  674.   #!/bin/sh
  675.   # Shoehorn gtbl into IRIX 5.2 - Shag
  676.   # Removes the -TX from gtbl's command line - yes, I know this is a kludge
  677.  
  678.   rest=`echo ${1+"$@"} | sed -e 's+-TX++'`
  679.   exec gtbl $rest
  680.   --- cut here for gtroff --
  681.   #!/bin/sh
  682.   # Shoehorn gtroff into working with IRIX 5.2 - Shag
  683.   # Translates all references for /usr/lib/tmac to /usr/local/lib/groff/tmac,
  684.   # and disables warnings - from David Hinds' code
  685.  
  686.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  687.   exec gtroff-exe -Wall -mtty-char $rest
  688.   --- you can stop cutting now ---
  689.  
  690.   It is also possible to avoid the need for these scripts by setting
  691.   some environment variables, which are only documented in the man(1)
  692.   manpage (q.v.) in IRIX 5.2 and later.
  693.  
  694.   Finally, under IRIX 5.3, you need to edit the 'eqn' and 'neqn' scripts
  695.   (above) a bit more. Add the following line
  696.  
  697.       if [ ${1:-""} = - ] ; then shift ; fi
  698.  
  699.   just before the last "geqn" line.
  700.  
  701. ------------------------------
  702.  
  703. Subject:   -18- IRIX' version of top(1) doesn't let me renice or kill
  704.                 processes interactively. What to do?
  705. Date: 21 Oct 1995 00:00:01 EST
  706.  
  707.   Try William LeFebvre's <phil@eecs.nwu.edu> version, which has these
  708.   capabilities. FTP it from ftp://eecs.nwu.edu/pub/top/. Ports to IRIX
  709.   are at ftp://ftp.cs.ruu.nl/pub/SGI/top-3.1.tar.gz,
  710.   ftp://ftp.cmpharm.ucsf.edu/pub/top/top-3.3beta3.irix.tar.Z, and
  711.   ftp://honey.bernstein.com/pub/entropy/top-3.3-irix-5.2-BETA.tar.gz.
  712.  
  713. ------------------------------
  714.  
  715. Subject:   -19- What is the IRIX equivalent of 'trace'/'truss'?
  716. Date: 15 Jun 1996 00:00:01 EST
  717.  
  718.   par(1). It's part of the eoe2.sw.perf subsystem in IRIX 5.x. There is
  719.   no equivalent in IRIX 4.0.x, but there are 'trace' ports and
  720.   workalikes at (among others) ftp://ftp.cwi.nl/pub/,
  721.   ftp.eit.com:/pub/dist/,
  722.   ftp://viz.tamu.edu/pub/sgi/software/debug/trace.tar.gz and
  723.   ftp://ftp.std.com/pub/jrs/strace-3.1.tar.gz.
  724.  
  725. ------------------------------
  726.  
  727. Subject:   -20- What is the IRIX equivalent of 'etherfind'?
  728. Date: 03 Dec 1995 00:00:01 EST
  729.  
  730.   'netsnoop', part of SGI's extra-cost NetVizualyzer package. Free
  731.   alternatives include 'etherman', part of 'netman', at
  732.   ftp://ftp.cs.curtin.edu.au/pub/netman/, 'etherview', at
  733.   ftp://ftp.funet.fi/pub/unix/sgi/bin/, and 'tcpdump', at
  734.   ftp://ftp.ee.lbl.gov/.
  735.  
  736. ------------------------------
  737.  
  738. Subject:   -21- How can I capture a single frame from my IndyCam on the
  739.                 command line?
  740. Date: 23 Sep 1995 00:00:01 EST
  741.  
  742.   Use vidtomem(1).
  743.  
  744. ------------------------------
  745.  
  746. Subject:   -22- BUGS AND PROBLEMS
  747. Date: 10 Dec 1993 00:00:01 EST
  748.  
  749.   This section discusses bugs and problems with various applications.
  750.  
  751. ------------------------------
  752.  
  753. Subject:   -23- Why isn't Iris Insight working properly?
  754. Date: 23 Mar 1996 00:00:01 EST
  755.  
  756.   The format for Insight's ~/.insightrc file changed in Insight 2.0. An
  757.   ~/.insightrc left over from an older version might cause Insight to
  758.   emit error messages or not work in various ways.  Just delete the old
  759.   ~/.insightrc and restart Insight.
  760.  
  761.   Insight generates PostScript which says "language level" where it
  762.   should say "languagelevel", and thus may not print on your printer.
  763.   Pipe the PostScript to a file, change every "language level" in the
  764.   file to "languagelevel" and print that.
  765.  
  766.   Insight doesn't understand the lpr printing system. To allow Insight
  767.   to print to an lpr printer, you must provide an lp interface to it.
  768.   See "How can I use lpr instead of or as well as lp?" in the admin FAQ.
  769.  
  770.   Insight, as well as other ViewKit applications, uses the Xpm library
  771.   (/usr/lib/libXpm.so). If you install another version of that library
  772.   where Insight can find it, Insight may coredump. Remove or hide the
  773.   new version of the library.
  774.  
  775.   Greg Ferguson's <gferg@hoop.timonium.sgi.com> list of other problems
  776.   with Insight is at
  777.   ftp://viz.tamu.edu/pub/sgi/software/insight-problems.  Most or all
  778.   have probably been fixed in subsequent versions of Insight and IRIX.
  779.  
  780. ------------------------------
  781.  
  782. Subject:   -24- Why don't the arrow keys work in vi?
  783. Date: 04 May 1994 00:00:01 EST
  784.  
  785.   Arrow keys send more than one character, and vi can misinterpret them
  786.   as multiple single-character commands on slow connections. Increase
  787.   vi's patience by putting the command 'set timeout=400' (or a larger
  788.   or smaller number to your taste) in the file ~/.exrc or the EXINIT
  789.   environment variable.  See also the ex(1) and vi(1) manpages.
  790.  
  791.   Or use h, j, k and l. Or jot or Emacs.
  792.  
  793.   Incidentally, an article in the March/April 1994 Pipeline discusses a
  794.   variety of 'vi' tips and tricks.
  795.  
  796. ------------------------------
  797.  
  798. Subject:   -25- How can I tell application X about my screen size?
  799. Date: 30 Mar 1996 00:00:01 EST
  800.  
  801.   IRIX does not have 'stty rows n' or 'stty columns n' yet; it will in
  802.   6.2. Until then, use 'setenv LINES n' and 'setenv COLUMNS n'.
  803.  
  804. ------------------------------
  805.  
  806. Subject:   -26- Why does ksh lock up if one's home directory is NFS-
  807.                 mounted?
  808. Date: 15 Oct 1995 00:00:01 EST
  809.  
  810.   ksh(1) uses a single ~/.sh_history file for all of a given user's ksh
  811.   processes, so must be able to lock that file. Locking is robust for
  812.   local files but not over NFS. Install patch 547 (or its successor) to
  813.   fix some known NFS bugs and be sure lockd is 'chkconfig'ed on and
  814.   rpc.lockd and rpc.statd are actually running.  If all else fails, set
  815.   the HISTFILE environment variable to a file on a local disk.
  816.  
  817. ------------------------------
  818.  
  819. Subject:   -27- Why can't I 'talk' to Suns?
  820. Date: 16 Mar 1994 00:00:01 EST
  821.  
  822.   SGI, and most Unix vendors, use the 4.3BSD talk protocol, while Sun
  823.   still uses the 4.2BSD talk protocol. The fault is Sun's, not SGI's.
  824.   Look in ftp://thor.ece.uc.edu/pub/sun-faq/ for Sun-compatible versions
  825.   of 'new talk' (ntalk.tar.Z) and 'ytalk', which speaks both old and new
  826.   'talk' (ytalk-3.0.1.tar.gz).
  827.  
  828.   You could also run 'ytalk' on your SGI. Get it from
  829.   ftp://ftp.uu.net/usenet/comp.sources.unix/volume27/ytalk-3.0/.
  830.  
  831. ------------------------------
  832.  
  833. Subject:   -28- How can I change what the keys on my keyboard do?
  834. Date: 04 May 1994 00:00:01 EST
  835.  
  836.   Use xmodmap(1). The manpage describes how to swap control and caps-
  837.   lock, which is the most common use. xwsh(1G) and tcsh(1) also have
  838.   key-binding facilities, described in their manpages; consider these
  839.   if you want to change key meanings only in 'xwsh' windows or only in
  840.   'tcsh'.
  841.  
  842. ------------------------------
  843.  
  844. Subject:   -29- Why is 'jot' so slow on a remote display in IRIX 5.2?
  845. Date: 03 Jun 1995 00:00:01 EST
  846.  
  847.   It's a bug. A fixed version is in ftp://ftp.sgi.com/graphics/jot/.
  848.   The bug is fixed in IRIX 5.3.
  849.  
  850. ------------------------------
  851.  
  852. Subject:   -30- Why does 'man -k' repeat itself in IRIX 5.2?
  853. Date: 03 Jun 1995 00:00:01 EST
  854.  
  855.   'man -k' looks for two whatis databases, the default
  856.   (/usr/share/catman/whatis) and one in a directory specified by the
  857.   environment variable LANG. If LANG is set but empty, the paths come
  858.   out the same and you see the same database twice. Fix the problem by
  859.   doing 'unsetenv LANG' or 'setenv'ing it to something sensible.
  860.   This is not an issue in IRIX 5.3.
  861.  
  862.   This can also happen if the old Irix 4.0.x database is left behind
  863.   after upgrading to Irix 5.2. Fix the problem by removing
  864.   /usr/catman/whatis.
  865.  
  866. ------------------------------
  867.  
  868. Subject:   -31- Netscape 1.1S (the custom SGI version) says it can't
  869.                 find 'soundplayer'. What should I do?
  870. Date: 23 Sep 1995 00:00:01 EST
  871.  
  872.   'soundplayer' is a new tool which has not yet become part of IRIX
  873.   proper.  Bryan James <bryanj@spiff.esd.sgi.com> describes several ways
  874.   to deal with its absence:
  875.  
  876.   - Get Webforce (an extra-cost product) or Digital Media Tools 5.5
  877.     (free from
  878.     http://www.sgi.com/Products/Evaluation/dmedia/dmedia.html), both of
  879.     which include soundplayer. Both require IRIX 5.3.
  880.  
  881.   - 'sfplay' is part of standard IRIX and handles almost all of the same
  882.     audio formats as does 'sfplay'. Edit the file
  883.     /usr/local/lib/netscape/mailcap and replace every instance of the
  884.     word "soundplayer" with "sfplay".
  885.  
  886.     'sfplay' does NOT handle mpeg audio bitstreams (.mp2) like those
  887.     from the Internet Underground Music Archive site. Get 'maplay', an
  888.     MPEG audio file player, from
  889.     ftp://ftp.cs.tu-berlin.de/incoming/maplay1_2/; you can get the C++
  890.     source code (maplay1_2.tar.Z) and compile it yourself or just get
  891.     the IRIX binary (maplay_indigo.Z). (See also Doug Cook's audio apps
  892.     list, referenced in the misc FAQ.) After you've set up 'maplay',
  893.     edit /usr/local/lib/netscape/mailcap, find the line beginning with
  894.     "audio/x-mpeg" and replace the word "soundplayer" with "maplay" on
  895.     that line only.
  896.  
  897. ------------------------------
  898.  
  899. Subject:   -32- Netscape emits "X Error"s. What should I do?
  900. Date: 07 Sep 1996 00:00:01 EST
  901.  
  902.   It's a bug, fixed by patch 1095. You may also be able to work around
  903.   the problem by removing conflicting X resource files or setting the
  904.   resource "Netscape*useEnhancedFSB: False".
  905.  
  906. ------------------------------
  907.  
  908. Subject:   -33- Netscape complains about a conflicting 'Netscape' file.
  909.                 What should I do?
  910. Date: 09 Dec 1995 00:00:01 EST
  911.  
  912.   The file in question, probably /usr/lib/X11/app-defaults/Netscape, is
  913.   the X resources (app-defaults) file from another version of Netscape.
  914.   No version of Netscape actually needs that file, so remove it and all
  915.   your versions of Netscape can coexist.
  916.  
  917.   If you can't, or if you want a customized app-defaults file for each
  918.   version of Netscape, use a script like this:
  919.  
  920.   #!/bin/sh
  921.   # Set NS to the directory containing the Netscape distribution
  922.   NS=/usr/local/lib/netscape-2.0b3
  923.   XUSERFILESEARCHPATH=$NS/%N.ad:$XUSERFILESEARCHPATH
  924.   export XUSERFILESEARCHPATH
  925.   exec $NS/netscape $*
  926.  
  927. ------------------------------
  928.  
  929. Subject:   -34- Why do unwanted programs (e.g. Netscape) start
  930.                 themselves every time I log in?
  931. Date: 07 Sep 1996 00:00:01 EST
  932.  
  933.   It's a feature of the desktop startup script
  934.   (/var/X11/xdm/Xsession.dt) in IRIX 6.2. To stop it, do 'chkconfig
  935.   firsttimeprograms off'.
  936.  
  937. ------------------------------
  938.  
  939. Subject:   -35- COMPILERS AND PROGRAMMING
  940. Date: 10 Dec 1993 00:00:01 EST
  941.  
  942.   This section discusses general compilers and programming issues.  See
  943.   the audio, graphics and movie FAQs for audio, graphics and movie
  944.   programming issues, and the impressario, inventor and performer FAQs
  945.   for discussions of those packages.
  946.  
  947. ------------------------------
  948.  
  949. Subject:   -36- What are the correct versions of the Irix Development
  950.                 Option (IDO) and Fortran for current versions of IRIX?
  951. Date: 06 Feb 1997 00:00:01 EST
  952.  
  953.   If you're using IRIX 4.0.x, you should be using IDO 4.1.1.  It
  954.   includes C 3.10.1 and the 3.12 back-end (the part of the compiler
  955.   which actually produces the executable; 3.12 is the number you see
  956.   when you use the 'file' command on an executable). The previous
  957.   version was badly buggy; upgrade ASAP.
  958.  
  959.   IRIX 5.2 needs IDO 5.2, which includes C 3.18. Executables produced by
  960.   the IRIX 5.x back-end don't show a version number with 'file', although
  961.   this information can be obtained via 'odump -V'. 
  962.  
  963.   Each version of IDO has a corresponding version of Fortran, and they
  964.   MUST be used together. IDO 4.1.1 needs Fortran 3.5.1 and IDO 5.2 needs
  965.   Fortran 4.0.1. This is true for other languages as well, but only
  966.   Fortran has confused enough people to have its version numbers here.
  967.  
  968.   Ping Huang <pshuang@sgi.com> adds:
  969.  
  970.   IRIX 5.3 needs IDO 5.3, IRIX 6.0 needs IDO 6.0, and IRIX 6.1 needs
  971.   IDO 6.1; that's pretty easy.
  972.  
  973.   After that, IDO version numbers are no longer tightly coupled to the
  974.   IRIX version number.  The first IDO for IRIX 6.2 was IDO 6.2, but
  975.   then IDO 7.0 and IDO 7.0.1 came out for IRIX 6.2 as well.  And IDO
  976.   7.1 comes in three different flavors: IDO 7.1 for IRIX 6.2, IDO 7.1
  977.   for IRIX 6.3, and IDO 6.1 for IRIX 6.4.
  978.  
  979.   If you use IRIX 6.2, use IDO 7.1 for IRIX 6.2.  If you use IRIX 6.3
  980.   or 6.4, the appropriate flavor of IDO 7.1 is your only choice (for now).
  981.  
  982. ------------------------------
  983.  
  984. Subject:   -37- Why can't I compile my non-ANSI C program?
  985. Date: 11 Jun 1995 00:00:01 EST
  986.  
  987.   SGI's C compiler is ANSI C by default in IRIX 4 and later. Use the
  988.   '-cckr' option to compile K&R (traditional) C. You can do this most
  989.   easily by setting the environment variable SGI_CC to "-cckr" or by
  990.   editing the application's Makefile, often by adding "-cckr" to the
  991.   CFLAGS variable.
  992.  
  993.   A related problem is that Makefiles generated by 'imake' most often
  994.   use 'cc -cckr -prototypes'; missing or incorrect prototypes usually
  995.   just generate pages of warnings but may cause an unrecoverable
  996.   error.  You can often work around this by removing "-prototypes" from
  997.   the line where it appears in the Makefile (not the Imakefile).
  998.  
  999. ------------------------------
  1000.  
  1001. Subject:   -38- Why doesn't application X understand NIS (Yellow Pages)?
  1002. Date: 11 Feb 1996 00:00:01 EST
  1003.  
  1004.   Under IRIX 4.0.x, programs which access files served by NIS must be
  1005.   linked with -lsun. The functions in libc.a which deal with these files
  1006.   are not NIS-aware; the NIS versions are in libsun.a. Using libsun.a
  1007.   usually means adding '-lsun' to the variable LIBS or LDFLAGS in one's
  1008.   Makefile. If '-lc' or '-lc_s' (libc_s.a is the shared version of
  1009.   libc.a) is given explicitly, '-lsun' must precede it.
  1010.  
  1011.   Under IRIX 5.x, libc.so is NIS-aware and -lsun is unnecessary.
  1012.   However, linking with -lnsl and/or -lsocket will confuse libc.so and
  1013.   NIS access won't work. Either remove -lnsl and/or -lsocket or put an
  1014.   explicit -lc *before* them in the link line.
  1015.  
  1016. ------------------------------
  1017.  
  1018. Subject:   -39- Where's 'edge' in IRIX 5.x? What can I use instead?
  1019. Date: 03 Sep 1995 00:00:01 EST
  1020.  
  1021.   SGI does not include edge with IRIX 5.x. When asked for substitutes,
  1022.   SGI will direct you to their CASEVision debugger, which costs extra.
  1023.  
  1024.   An oft-mentioned free graphical debugger is 'xdbx'; you can find the
  1025.   original source in ftp://ftp.x.org/R5contrib/, a patch to make it work
  1026.   on IRIX 4.0.x in
  1027.   ftp://viz.tamu.edu/pub/sgi/software/debug/xdbx.sgi.patch and patched
  1028.   versions for IRIX 4.0.x and 5.x in
  1029.   ftp://swedishchef.lerc.nasa.gov/programs/X/. An 'inst'-installable
  1030.   binary for IRIX 5.x only is in ftp://ftp.sgi.com/sgi/xdbx/.
  1031.  
  1032.   If you have 'gdb', you can try 'tgdb' and 'tgdb_wish', which may be
  1033.   FTPed from ftp://sunsite.unc.edu/pub/Linux/devel/debuggers/ and
  1034.   ftp://ftp.aud.alcatel.com/tcl/code/ respectively.
  1035.  
  1036. ------------------------------
  1037.  
  1038. Subject:   -40- How can I generate IRIX 4.0.x-compatible executables
  1039.                 under IRIX 5.x?
  1040. Date: 06 Apr 1996 00:00:01 EST
  1041.  
  1042.   Strictly speaking, you can't. Many things changed in IRIX 5.x. You
  1043.   can, however generate executables in COFF (IRIX 4.0.x) format instead
  1044.   of ELF (IRIX 5.x) format, and these will often work on IRIX 4.0.x if
  1045.   they don't use complex things like multiprocessing. The manual and
  1046.   release notes describe how, and here's a summary:
  1047.  
  1048.   1) Make sure you've installed all of the appropriate irix4
  1049.      compatibility subsystems. These include irix4_eoe, irix4_dev,
  1050.      irix4_c and others for Motif, Inventor, etc.
  1051.  
  1052.   2) setenv SGI_IRIX4 1
  1053.  
  1054.   3) If your source uses explicit paths to headers, libraries, etc.,
  1055.      change them to point to the irix4 versions.
  1056.  
  1057.   4) Use cc or make or whatever as you normally would.
  1058.  
  1059.   You can't do this in IRIX 6.2., which doesn't support COFF at all.
  1060.  
  1061. ------------------------------
  1062.  
  1063. Subject:   -41- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  1064. Date: 04 Nov 1994 00:00:01 EST
  1065.  
  1066.   Sez Jay McCauley <mccauley@sgi.com>:  IRIX does not and cannot have a
  1067.   coff2elf (actually, it's 'cof2elf') converter.  The COFF (actually,
  1068.   ECOFF) to ELF transition was also the transition to the use of
  1069.   Expanded Fundamental Types (EFT), an SVR4-ism.  EFT enlarges a number
  1070.   of basic data types, finally casting off the last vestiges of the
  1071.   PDP-11.  So, structures built in an EFT world would have their
  1072.   members at different offsets than they would in a pre-EFT (e.g. IRIX
  1073.   4.x) world. The operating system uses the fact that an executable is
  1074.   in ELF to trigger the use of EFT-based strucures for input and
  1075.   output.  So, even if you had a program like coff2elf, the resulting
  1076.   transformed executable would not operate correctly for almost any
  1077.   interesting case.  Trivial programs that don't have any system calls
  1078.   which pass in structures or get structures back from the OS could
  1079.   theoretically work, but these fall into the "uninteresting" class.
  1080.  
  1081.   Note that the cof2elf(1) program referred to by the elf(1) manpage in
  1082.   IRIX 5.2 does not exist. The elf(1) manpage is wrong.
  1083.  
  1084. ------------------------------
  1085.  
  1086. Subject:   -42- Why are some non-shared libraries missing in IRIX 5.x?
  1087. Date: 02 Jan 1995 00:00:01 EST
  1088.  
  1089.   - Some of the non-shared libraries which do come with IRIX 5.x are
  1090.     installed by default and some are not.  The shared library you want
  1091.     may be in one of the "speclibs" subsystems,
  1092.     e.g. dev.sw.irix_speclibs, which contains /usr/lib/nonshared/crt1.o,
  1093.     a very popular item among those compiling nonshared.
  1094.  
  1095.   - IRIX 5.x does not have non-shared versions of some libraries,
  1096.     notably libX11.a. Nonshared libraries are provided if 1) they are
  1097.     required by the MIPS ABI (Application Binary Interface), a
  1098.     binary-compatibility standard, 2) they are needed to compile
  1099.     benchmarks (these are the libraries in the "speclibs" subsystems) or
  1100.     3) SGI hasn't gotten around to providing a shared library.
  1101.  
  1102.   So, why do you want that nonshared library?
  1103.  
  1104.   - If you just want to compile something whose link statement
  1105.     explicitly specifies a particular nonshared library, substitute the
  1106.     shared version (e.g. libX11.so.1 instead of libX11.a).
  1107.  
  1108.   - If you really need a nonshared application, and you can't find all
  1109.     the nonshared libraries you need, you're out of luck.
  1110.  
  1111. ------------------------------
  1112.  
  1113. Subject:   -43- Where are the audio, CD and DAT libraries in IRIX 5.2?
  1114. Date: 18 Mar 1995 00:00:01 EST
  1115.  
  1116.   In IRIX 5.2, they (and the associated headers, sample code, etc.)
  1117.   moved to the extra-cost Digital Media Development option.  In IRIX
  1118.   5.3, they moved back to IDO.
  1119.  
  1120. ------------------------------
  1121.  
  1122. Subject:   -44- Why can't my networking application resolve hostnames in
  1123.                 IRIX 5.x?
  1124. Date: 14 May 1994 00:00:01 EST
  1125.  
  1126.   The resolv.conf file, which tells IRIX how to resolve hostnames, is
  1127.   in /usr/etc in IRIX 4.0.x but /etc in IRIX 5.x. Applications compiled
  1128.   under IRIX 4.0.x and moved to a 5.x system will not be able to find
  1129.   it.  The easiest fix is to do 'ln -s /etc/resolv.conf /usr/etc', and
  1130.   the best fix is to recompile. See 'man 4 resolv.conf'.
  1131.  
  1132. ------------------------------
  1133.  
  1134. Subject:   -45- Can I use dynamic shared objects in IRIX?
  1135. Date: 07 May 1993 00:00:01 EST
  1136.  
  1137.   IRIX 5.x supports SVR4-style dynamic shared objects. IRIX 4.0.x does
  1138.   not, but Jack Jansen <jack@cwi.nl> has written a package to do it
  1139.   anyway. Get ftp://ftp.cwi.nl/pub/dl-1.3.tar.Z.
  1140.  
  1141. ------------------------------
  1142.  
  1143. Subject:   -46- How can I tell which shared objects my executable uses?
  1144. Date: 05 Nov 1995 00:00:01 EST
  1145.  
  1146.   To see static dependencies (the names of libraries specified at
  1147.   compile time), use 'odump -Lv' for COFF format executables (under IRIX
  1148.   4.0.x, or 5.x using the irix4 compatibility stuff) and 'odump -Dl' or
  1149.   'elfdump -Dl' for ELF format executables (IRIX 5.x only). (Both are in
  1150.   the dev.cmplrs_sw.util subsystem.)
  1151.  
  1152.   To see dynamic dependencies (the full paths to libraries determined at
  1153.   runtime, after environment variables are taken into account, which is
  1154.   what SunOS' 'ldd' tells you), use rld.debug and turn on rld tracing
  1155.   with _RLD_ARGS. See the rld(1) manpage.
  1156.  
  1157. ------------------------------
  1158.  
  1159. Subject:   -47- Why does malloc() never return NULL?
  1160. Date: 05 Jul 1994 00:00:01 EST
  1161.  
  1162.   Virtual memory is effectively infinitely large in IRIX 4.0.x, and it
  1163.   can be configured to be so in IRIX 5.x. malloc() never returns NULL
  1164.   because requests are always granted. The admin FAQ gives further
  1165.   background, and tells how to configure your system to limit virtual
  1166.   memory to physical memory and physical swap space.
  1167.  
  1168. ------------------------------
  1169.  
  1170. Subject:   -48- What is the difference between libc's malloc() and
  1171.                 libmalloc's malloc()?
  1172. Date: 22 Oct 1995 00:00:01 EST
  1173.  
  1174.   Under versions of IRIX prior to 5.x, malloc(3X) -- the malloc in
  1175.   libmalloc -- was preferable to the libc malloc, or malloc(3C).
  1176.   However, in IRIX 5.x and above, the libc malloc is faster and is
  1177.   probably preferable.
  1178.  
  1179. ------------------------------
  1180.  
  1181. Subject:   -49- What prototypes are missing in IRIX 4.0.x and 5.x?
  1182. Date: 03 Sep 1995 00:00:01 EST
  1183.  
  1184.   Kevin Russo <russo@rudedog.nrl.navy.mil> has compiled lists, which you
  1185.   can FTP from
  1186.   ftp://viz.tamu.edu/pub/sgi/software/programming/missing-protos.shar.
  1187.  
  1188. ------------------------------
  1189.  
  1190. Subject:   -50- Where are the regcmp and regex functions?
  1191. Date: 13 Nov 1994 00:00:01 EST
  1192.  
  1193.   In the libPW.a (IRIX 4.0.x) or libgen.a (IRIX 5.x) library. Add
  1194.   '-lPW' or '-lgen' to your linking command.
  1195.  
  1196. ------------------------------
  1197.  
  1198. Subject:   -51- Why does make(1) complain about syntax errors that I
  1199.                 can't find?
  1200. Date: 26 May 1994 00:00:01 EST
  1201.  
  1202.   Two possibilities:
  1203.  
  1204.   - SGI's make sends shell commands to your shell (specified in the
  1205.     SHELL environment variable), while every other make in the world
  1206.     uses /bin/sh by default. Put the line "SHELL=/bin/sh" at the top of
  1207.     a Makefile to tell SGI's make to use /bin/sh.
  1208.  
  1209.   - Dependency lines in your Makefile may begin with spaces.  Some
  1210.     'make's accept spaces; SGI's requires tabs.
  1211.  
  1212. ------------------------------
  1213.  
  1214. Subject:   -52- What's wrong with strip(1)?
  1215. Date: 06 Apr 1996 00:00:01 EST
  1216.  
  1217.   In IRIX 5.2 and 5.3, strip(1) fails to remove all of the debugging
  1218.   information that it could. This isn't a big problem; it just wastes
  1219.   a bit of disk space. Patches 247 and 248 fix that bug.
  1220.  
  1221.   Patch 410 to IRIX 5.3 includes a new loader (ld32), the output of
  1222.   which strip mangles horribly. Patch 1068 and IRIX 6.2 include a strip
  1223.   which can strip ld32 binaries, but which does not follow symlinks.
  1224.  
  1225.   In IRIX 6.0 and 6.0.1, 'strip *' strips the first executable correctly
  1226.   and corrupts the rest. Work around the bug by stripping only one file
  1227.   at a time.
  1228.  
  1229. ------------------------------
  1230.  
  1231. Subject:   -53- Why does my floating point signal processing routine,
  1232.                 when given certain inputs, run incredibly slowly and
  1233.                 consume all of the CPU in _system_ or _interrupt_ time ?
  1234. Date: 03 Sep 1995 22:28:13 PDT
  1235.  
  1236.   You may be experiencing an undesirable "floating point underflow"
  1237.   behavior of the floating point unit on R3k's and beyond. You'll need
  1238.   to add a workaround to your code and, on some machines, install a
  1239.   patch as well. A thorough writeup by Chris Pirazzi of SGI
  1240.   <cpirazzi@cp.esd.sgi.com> is at
  1241.   ftp://viz.tamu.edu/pub/sgi/software/programming/fp-underflow.
  1242.  
  1243. ------------------------------
  1244.  
  1245. Subject:   -54- Why don't IRIX 5.3 executables run on IRIX 6.0.1?
  1246. Date: 04 Aug 1995 00:00:01 EST
  1247.  
  1248.   IRIX 6.0.1 was based on IRIX 5.2. IRIX 6.1 is based on IRIX 5.3
  1249.   and runs IRIX 5.3 binaries accordingly. 
  1250.  
  1251. ------------------------------
  1252.  
  1253. Subject:   -55- Why don't COFF executables run on IRIX 6.1 or 6.2?
  1254. Date: 15 Jun 1996 00:00:01 EST
  1255.  
  1256.   IRIX 6.1 has kernel support for COFF executables, but does not have at
  1257.   least some of the shared libraries. If you copy the needed shared
  1258.   libraries from an IRIX 6.0.1 (or perhaps 5.3) system to your IRIX 6.1
  1259.   system your COFF executable should work.
  1260.  
  1261.   IRIX 6.2 does not have kernel support for COFF, so you will have to
  1262.   recompile your COFF binaries. The IRIX 6.2 installation procedure will
  1263.   warn you about COFF binaries, although only on local disks; be sure to
  1264.   check machines yourself which provide binaries to IRIX 6.2 machines
  1265.   via NFS. You can find COFF binaries yourself with something like
  1266.   'find / -print | xargs file | grep COFF', or use the script
  1267.   ftp://ftp.sgi.com/support/Pipeline/coffcheck.tar.Z. See also "The End
  1268.   of COFF Support" in the Jan/Feb 1996 Pipeline.
  1269.  
  1270. ------------------------------
  1271.  
  1272. Subject:   -56- What object file formats does IRIX 6.2 support?
  1273. Date: 20 Dec 1996 00:00:01 EST
  1274.  
  1275.   Bruce Karsh <karsh@audio.esd.sgi.com> and Ping Huang <pshuang@sgi.com>
  1276.   write: IRIX 6.2 supports
  1277.     
  1278.     6 processors:       R4000, R4400, R4600, R5000, R8000, R10000 
  1279.     3 ABIs:        -32, -n32, -64
  1280.     4 instruction sets:    mips1, mips2, mips3, mips4
  1281.  
  1282.   Irix 6.2 will not support R3000 (or earlier) processors.
  1283.  
  1284.   Instruction sets:
  1285.  
  1286.     mips1:  The old 32 bit R3000 instruction set.  It's mostly for
  1287.         compatibility.  New code probably should not use it.
  1288.         Available on all 6 processors.
  1289.  
  1290.     mips2:  Adds more floating point registers Adds some improvements
  1291.         to the floating point instructions.  mips2 code may be a
  1292.         bit smaller than mips3 code.
  1293.         Available on all 6 processors.
  1294.  
  1295.     mips3:  General purpose registers are 64 bits wide.  Some new
  1296.         instructions are added to load, store, and manipulate 64
  1297.         bit wide quantities.
  1298.         Available on all 6 processors.
  1299.     
  1300.     mips4:  Adds some supercomputing-style instructions.
  1301.         Available on the R5000, R8000, and R10000.
  1302.  
  1303.     The mips1 and mips2 instruction sets both are available only on the
  1304.     -32 ABI.  The mips3 and mips4 instruction sets both are available
  1305.     on either the -n32 or -64 ABI, but not on the -32 ABI.
  1306.  
  1307.     You may mix -mips1 and -mips2 objects together to make a -mips2
  1308.     executable.  You may mix -mips3 and -mips4 objects together to make
  1309.     a -mips4 executable.  No other mixing of instruction sets is
  1310.     allowed.
  1311.  
  1312.   ABIs:
  1313.  
  1314.     -32:    Supports the 32 bit instruction sets.  This is just what we
  1315.         are all used to from 5.3.
  1316.         Available on all 6 processors.
  1317.  
  1318.     -n32:   Supports the 64 bit instruction sets, but not pointers and
  1319.         longs all remain 32 bits long.  (long longs are 64 bits
  1320.         wide).  The -n32 ABI is source code compatible with -32.
  1321.         Available on all 6 processors.
  1322.  
  1323.     -64     Supports 64 bit instruction sets and 64 bit pointers.
  1324.         longs and pointers are all 64 bits wide.  Great for apps
  1325.         which need a LARGE address space.  The -64 ABI is not
  1326.         source code compatible with -n32 and -32 since in -64 longs
  1327.         and pointers are now 64 bit quantities.  This means that
  1328.         casts of ints to/from pointers will not work in most cases
  1329.         and the layout of structs will be different.
  1330.             Available on the R8000, R10000, and the IP19 (R4400) 
  1331.             processors only, due to OS restrictions.
  1332.         ( -64 requires a large kernel).
  1333.  
  1334.   Summary:
  1335.   
  1336.     Format     Function                               Processors
  1337.     ------     --------                               ----------
  1338.     -32  -mips1  old, 32 bit, mostly for compatibility  ALL
  1339.     -32  -mips2  above plus more fp regs, faster fp    ALL
  1340.     -n32 -mips3  64 bit regs, 32 bit pointers           ALL
  1341.     -n32 -mips4  above plus supercomputer instructions  R5/8/10000
  1342.     -64  -mips3  64 bit regs, 64 bit pointers           IP19 R4400 &
  1343.                                                         R8/10000
  1344.     -64  -mips4  above plus supercomputer instructions  R8/10000
  1345.  
  1346.   The compiler can produce executables in all supported formats on all
  1347.   supported processors, although not all formats will *execute* on all
  1348.   processors.  The old 4.x object file format, COFF, will no longer be
  1349.   supported.  Only the newer format, ELF, will be supported.
  1350.  
  1351.   ftp://viz.tamu.edu/pub/sgi/software/programming/sgi_opt_level.c
  1352.   determines programmatically the highest optimization level that can
  1353.   be performed on the current CPU.
  1354.  
  1355. ------------------------------
  1356.  
  1357. Subject:   -57- What are GP-relative and GOT overflows, and how can I
  1358.                 fix them?
  1359. Date: 21 Nov 1995 00:00:01 EST
  1360.  
  1361.   Read the dso(5) and gp_overflow(5) manpages. If you don't have the
  1362.   latter (it exists only in very recent compiler releases), see
  1363.   ftp://viz.tamu.edu/pub/sgi/software/programming/gp-overflow-errors.
  1364.   See also the Nov/Dec 1995 Pipeline.
  1365.  
  1366. ------------------------------
  1367.  
  1368. Subject:   -58- Why can't Perl open a socket on my SGI?
  1369. Date: 21 Dec 1995 00:00:01 EST
  1370.  
  1371.   You're handing socket() the wrong constants (address family or socket
  1372.   type). These used to be standard across almost all Unixes (including
  1373.   IRIX 4.x and earlier), so were often hardcoded in Perl scripts, but
  1374.   changed in System V release 4 Unixes (including IRIX 5.x and later),
  1375.   so the hardcoded values became wrong. At least one routine included
  1376.   with Perl (syslog.pl) makes this error, and does not work on IRIX 5.x.
  1377.  
  1378.   Read /usr/include/sys/socket.h to see what the values are on your
  1379.   system. To get them into your Perl program in a nice way, either
  1380.   'require socket.ph' or (under Perl 5) 'use Socket'.
  1381.  
  1382.   Entry 4.21 of the Perl FAQ (http://www.perl.com/perl/faq/Q4.21.html)
  1383.   will back us up on this.
  1384.  
  1385.   Incidentally, patch 596 fixes (among other things) a separate problem
  1386.   with the socket interface.
  1387.  
  1388. ------------------------------
  1389.  
  1390. Subject:   -59- PORTING
  1391. Date: 10 Dec 1993 00:00:01 EST
  1392.  
  1393.   This section discusses problems with porting software from other
  1394.   systems to SGIs. Be sure to look through the previous section and the
  1395.   programming part of the graphics FAQ too.
  1396.  
  1397. ------------------------------
  1398.  
  1399. Subject:   -60- How can I make the 'install' program work like BSD
  1400.                 'install'?
  1401. Date: 22 Nov 1994 00:00:01 EST
  1402.  
  1403.   The BSD and System V versions of the 'install' command are
  1404.   incompatible; the BSD version is most often used by Makefiles. IRIX
  1405.   provides both the System V version (/etc/install) and the BSD version
  1406.   (/usr/bin/X11/bsdinst.sh in IRIX 4.0.x, and /usr/bin/X11/bsdinst in
  1407.   IRIX 5.x). SGI's 'imake' defines INSTALL as /usr/bin/X11/bsdinst,
  1408.   and the Install* rules use that definition, so Imakefile-generated
  1409.   Makefiles will use the BSD version.
  1410.  
  1411.   Michael Joosten <joost@ori.cadlab.de> points out that you can also use
  1412.   GNU install (available from any GNU archive, e.g.
  1413.   ftp://prep.ai.mit.edu/pub/gnu/), which emulates the BSD version.
  1414.   Unlike /usr/bin/X11/bsdinst, it has a manpage.  It also may be better
  1415.   debugged; SGI's version reportedly mishandles '-o' and installs
  1416.   multiple files into a single directory.
  1417.  
  1418. ------------------------------
  1419.  
  1420. Subject:   -61- Where's 'ranlib'?
  1421. Date: 16 Sep 1993 00:00:01 EST
  1422.  
  1423.   IRIX doesn't need it. Read the description of the 's' option in the
  1424.   ar(1) manpage. When the Makefile for a program you're porting wants
  1425.   ranlib, delete the ranlib command, substitute 'true' or put a little
  1426.   shell script in your PATH to fake it.
  1427.  
  1428. ------------------------------
  1429.  
  1430. Subject:   -62- What do I need to do to build gcc/g++?
  1431. Date: 4 Nov 1998 00:00:01 EST
  1432.  
  1433.   Presuming you have the IDO (Iris Development Option) installed,
  1434.   recent versions of gcc build reliably on IRIX without much 
  1435.   difficulty. Just read the INSTALL document and follow the
  1436.   directions.  A few hints:
  1437.  
  1438.   - Don't. Several people have already, and they'll let you have a
  1439.     copy.  Even if you must do it yourself, you can bootstrap from
  1440.     someone else's binary. Furthermore, their distribution may include
  1441.     notes on how they did it, if they didn't think it was obvious.  See
  1442.     "Where can I get software already compiled for SGIs?" above.
  1443.  
  1444.   - Don't forget to install the dev.cmplrs_hdr.internal (IRIX 4.0.x), 
  1445.     dev.hdr.lib (IRIX 5.x, 6.0.x, 6.1), or eoe.hdr.lib (IRIX 6.2+)
  1446.     subsystem, which contains needed headers and is not installed by
  1447.     default.
  1448.  
  1449.   - READ THE RELEASE NOTES! gcc (and gas, etc.) are updated too
  1450.     frequently for this FAQ to document every quirk of every release.
  1451.     The release notes often describe quirks that have not yet been
  1452.     fixed.
  1453.  
  1454.   The following advice applies if you do not have the IDO installed:
  1455.  
  1456.   If you're running any release of IRIX previous to 6.2, you will be 
  1457.   unable to build or use gcc, since you will be missing critical 
  1458.   header files and runtime libraries.  Of course if you buy IDO you'll 
  1459.   get SGI's compiler anyway; this is comp.sys.sgi.*'s most popular 
  1460.   Catch-22.
  1461.  
  1462.   IRIX 6.2 (or later) comes with a full set of headers. Before anything
  1463.   else - make sure you have all the SGI headers. They are not installed 
  1464.   by default, but are on the 6.2 CD in the subsystem eoe.hdr.lib.
  1465.  
  1466.   As of IRIX 6.5, support for gcc is much improved and includes the new
  1467.   ABIs (n32, 64). The SGI backend (including an assembler and linker
  1468.   supporting the n32 and 64 ABIs) plus all the bits and pieces needed
  1469.   for gcc (headers, libraries, runtime startup files, etc.) are included
  1470.   free with any IRIX 6.5 distribution on the 2 CDs titled "Development
  1471.   Foundation" and "Development Libraries" (in other words you don't need
  1472.   to have the SGI Developer's Option in order to use gcc.)
  1473.   In recent SGI releases, the SGI assembler and linker are in the
  1474.   subsystem compiler_dev.sw.base.
  1475.  
  1476.   Precompiled versions of gcc and g++ that were well-tested on 6.5
  1477.   and are known to work on IRIX 6.2 and up can be found in
  1478.   <http://reality.sgi.com/ariel/freeware> and will be available shortly
  1479.   on the SGI freeware site <http://freeware.sgi.com/>.  
  1480.  
  1481.  
  1482. ------------------------------
  1483.  
  1484. Subject:   -63- Is there an SGI-compatible version of XView?
  1485. Date: 04 Jun 1997 00:00:01 EST
  1486.  
  1487.   For IRIX 4.0.x, look in
  1488.   ftp://swedishchef.lerc.nasa.gov/libraries/XView3/. For IRIX 5.x, look
  1489.   in
  1490.   ftp://wuarchive.wustl.edu/graphics/graphics/sgi-stuff/XView/xview3/irix5/.
  1491.   A copy of the patches used to create the IRIX 5.x version is in
  1492.   ftp://viz.tamu.edu/pub/sgi/software/xview-on-irix5. 
  1493.   A version that reportedly builds cleanly on IRIX is available from 
  1494.   <ftp://ftp.sdsc.edu/pub/ccms/xview>.
  1495.  
  1496. ------------------------------
  1497.  
  1498. Subject:   -64- How can I get db-1.85 to work on IRIX 5.x?
  1499. Date: 07 Sep 1995 00:00:01 EST
  1500.  
  1501.   See ftp://viz.tamu.edu/pub/software/db-on-irix5.tar.gz.
  1502.  
  1503. ------------------------------
  1504.  
  1505. End of sgi/faq/apps Digest
  1506. ******************************
  1507. -- 
  1508. The SGI FAQ group <sgi-faq@viz.tamu.edu>   http://www-viz.tamu.edu/~sgi-faq/
  1509. Finger us for info on the SGI FAQs, or look in ftp://viz.tamu.edu/pub/sgi/.
  1510.