home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / Documents / FAQ / SGI-faq / faq / apps < prev    next >
Encoding:
Internet Message Format  |  1993-07-15  |  21.2 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!usc!elroy.jpl.nasa.gov!ames!sgi!fido.asd.sgi.com!holodeck.csd.sgi.com!aschaffe
  2. From: aschaffe@holodeck.csd.sgi.com (Allan Schaffer)
  3. Newsgroups: comp.sys.sgi.misc,comp.sys.sgi.admin,comp.sys.sgi.apps,comp.sys.sgi.bugs,comp.sys.sgi.graphics,comp.sys.sgi.hardware,comp.answers,news.answers
  4. Subject: SGI apps Frequently Asked Questions (FAQ)
  5. Supersedes: <apps_742714517@fido.asd.sgi.com>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 15 Jul 1993 07:00:58 GMT
  8. Organization: Silicon Graphics, Inc., Mountain View, CA
  9. Lines: 525
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: 13 Aug 1993 07:01:01 GMT
  12. Message-ID: <apps_742719661@fido.asd.sgi.com>
  13. References: <misc_742719661@fido.asd.sgi.com>
  14. Reply-To: sgi-faq@archone.tamu.edu
  15. NNTP-Posting-Host: holodeck.csd.sgi.com
  16. Originator: aschaffe@holodeck.csd.sgi.com
  17. Xref: senator-bedfellow.mit.edu comp.sys.sgi.misc:3348 comp.sys.sgi.admin:2208 comp.sys.sgi.apps:1070 comp.sys.sgi.bugs:1109 comp.sys.sgi.graphics:1592 comp.sys.sgi.hardware:1774 comp.answers:1308 news.answers:10355
  18.  
  19.  
  20. Archive-name: sgi/faq/apps
  21.  
  22.            SGI apps Frequently Asked Questions (FAQ)
  23.  
  24.  
  25. This information is freely distributable and wide circulation is encouraged.
  26. The contents are accurate as far as we know, but the usual disclaimers apply.
  27. This FAQ contains errors! Finding them is an exercise for alert readers.
  28.  
  29. Please send additions and changes to sgi-faq@archone.tamu.edu.
  30.  
  31. This FAQ is one of the SGI FAQ series, which consists of:
  32.  
  33.      SGI Admin FAQ - IRIX System Administration
  34.      SGI Apps FAQ - Applications & Compilers
  35.      SGI Graphics FAQ - Graphics & Windowing
  36.      SGI Hardware FAQ - Hardware issues
  37.      SGI Misc FAQ - Introduction & Miscellaneous Information
  38.  
  39. Each FAQ is posted to each comp.sys.sgi.* group as well as the news.answers
  40. and comp.answers newsgroups (whose purpose is to store FAQs) every two weeks.
  41. If you can't find one of the FAQs with your news program, you can get it by
  42. anonymous FTP from one of these sites:
  43.  
  44.  rtfm.mit.edu:pub/usenet/news.answers/sgi/faq/apps
  45.  rtfm.mit.edu:pub/usenet/comp.sys.sgi.misc/SGI_apps_Frequently_Asked_Questions
  46.  archone.tamu.edu:ftp/pub/sgi/faq/apps
  47.  rtfm.mit.edu:pub/usenet/comp.answers/sgi/faq/apps
  48.  
  49. Note that rtfm.mit.edu is home to many other FAQs and informational documents,
  50. and is a good place to look if you can't find an answer here.
  51.  
  52. Topics covered in this FAQ:
  53. --------------------------
  54.   -1- How can I quickly find the question I want in this FAQ?
  55. ! -2- What's a good graphic text editor for SGIs?
  56.   -3- What about Explorer?
  57. ! -4- How can I make the 'install' program work like BSD 'install'?
  58. + -5- How can I convert ASCII to PostScript?
  59. ! -6- How can I preview PostScript?
  60.   -7- How can I edit PostScript files?
  61.   -8- How can I format unformatted manpages?
  62. ! -9- Why can't I compile application X?
  63. ! -10- Why does GNU Emacs not compile, or compile but not run?
  64.   -11- Why doesn't Xarchie 1.3 work?
  65. + -12- What are the correct versions of the Irix Development Option (IDO)
  66.        for current versions of IRIX?
  67. ! -13- What do I need to do to build gcc/g++?
  68.   -14- Can I use dynamic shared libraries in IRIX?
  69.   -15- How can I make Fortran load entirely from a library?
  70.   -16- How can I make my 4.0.x Fortran program read binary data files 
  71.        written by a 3.3.x Fortran program?
  72.   -17- Credits
  73.  
  74. ----------------------------------------------------------------------
  75.  
  76. Subject:   -1- How can I quickly find the question I want in this FAQ?
  77. Date: 27 May 93 00:00:01 EST
  78.  
  79. - This FAQ follows the RFC1153 recommendations for message digests and thus
  80.   can be viewed easily with newsreaders that understand message digests.
  81. - Each question has a Subject: line, so you can easily step through the answers
  82.   with rn's ^G command.
  83. - Each question is marked with a "dash number dash" so that you can find any
  84.   answer with a simple search pattern.
  85. - Questions marked with a '+' are new this posting; those marked with a '!'
  86.   have significant new content since the last edition.
  87.  
  88. ------------------------------
  89.  
  90. Subject: ! -2- What's a good graphic text editor for SGIs?
  91. Date: 13 Jun 93 00:00:01 EST
  92.  
  93. The most popular graphic text editors on SGIs include:
  94.  
  95. zip (by Tom Davis of SGI) is something like jot but is orders of magnitude
  96. faster and laden with nifty features. It doesn't run well remotely or at all on
  97. X-terminals, text terminals or non-SGI machines, but if most of your editing
  98. will be at an SGI console, read no further! FTP to ftp.sgi.com and look in
  99. /graphics/zip.
  100.  
  101. GNU Emacs, a perennial favorite, isn't just an editor; it's a way of life.  It
  102. has a X-windows mode and works on X-windows terminals as well as SGI consoles
  103. and text terminals. Its X-windows support, once rather lackluster, has improved
  104. in the recently released version 19. It may be FTPed from any GNU archive.
  105.  
  106. Epoch is a derivative of GNU Emacs 18 with better X-windows support. It may be
  107. found at cs.uiuc.edu in /pub/epoch-files/epoch.
  108.  
  109. Lucid Emacs is a derivative of GNU Emacs 19 with better X-windows support (than
  110. GNU Emacs 18). It may be found at labrea.stanford.edu in /pub/gnu/lucid.
  111.  
  112. Finally, the comp.windows.x FAQ (found at rtfm.mit.edu in
  113. /pub/usenet/comp.windows.x) lists many more editors which run under X-windows,
  114. both free and commercial.
  115.  
  116. ------------------------------
  117.  
  118. Subject:   -3- What about Explorer?
  119. Date: 07 May 93 00:00:01 EST
  120.  
  121. The IRIS Explorer data visualization system has its own newsgroup,
  122. comp.graphics.explorer. There is an FAQ, which can be found, along with many
  123. other Explorer goodies, at swedishchef.lerc.nasa.gov in the explorer directory.
  124.  
  125. ------------------------------
  126.  
  127. Subject: ! -4- How can I make the 'install' program work like BSD 'install'?
  128. Date: 16 Jun 93 00:00:01 EST
  129.  
  130. The BSD and System V versions of the 'install' command are incompatible; the
  131. BSD version is most often used by Makefiles. IRIX provides both the System V
  132. version (/etc/install) and the BSD version (/usr/bin/X11/bsdinst.sh). SGI's
  133. 'imake' defines INSTALL as /usr/bin/X11/bsdinst.sh, and the Install* rules
  134. use that definition, so Imakefile-generated Makefiles will use the BSD version.
  135.  
  136. Michael Joosten <joost@ori.cadlab.de> points out that you can also use GNU
  137. install (available from any GNU archive), which emulates the BSD version.
  138. Unlike /usr/bin/X11/bsdinst.sh, it has a manpage.
  139.  
  140. ------------------------------
  141.  
  142. Subject: + -5- How can I convert ASCII to PostScript?
  143. Date: 13 Jun 93 00:00:01 EST
  144.  
  145. - IRIX 4.0.x includes 'lptops', which because it's called indirectly from 'lp',
  146.   isn't as well known as it ought to be. Read the 'lptops' and 'gpsinterface'
  147.   manpages.
  148. - Adobe Transcript, which includes 'enscript' (something like 'lptops') and
  149.   'psroff' (nroff/troff-to-PostScript) is available at extra cost from SGI.
  150.   Most people manage without it.
  151. - Popular free converters include 'a2ps' (at imag.fr in
  152.   /pub/archives/postscript), 'lwf' (in volume 15 of comp.sources.unix) and
  153.   'psf' (in volume 35 of comp.sources.misc). The comp.lang.postscript FAQ (at
  154.   rtfm.mit.edu in /pub/usenet/comp.lang.postscript) has a much longer list of
  155.   such programs, unfortunately no longer including reviews or FTP sites.
  156.  
  157. ------------------------------
  158.  
  159. Subject: ! -6- How can I preview PostScript?
  160. Date: 07 May 93 00:00:01 EST
  161.  
  162. Display Postscript (DPS), which includes the 'xpsview' PostScript previewer,
  163. is an extra-cost option from SGI. Happily, Robert Keller of SGI
  164. <rck@fangio.asd.sgi.com> has made available GNU's GhostScript previewer,
  165. compiled *and* in SGI 'inst' installable form. FTP it from ftp.sgi.com in
  166. /sgi/ghost.
  167.  
  168. ------------------------------
  169.  
  170. Subject:   -7- How can I edit PostScript files?
  171. Date: 07 May 93 00:00:01 EST
  172.  
  173. Ivan Bach <ib@sgi.com> collected some testimonials from a number of SGIers:
  174.  
  175. - Adobe Illustrator and Corel Draw can edit PS files of type AI (a simplified
  176.   version of PS that facilitates editing).
  177. - If you have DPS extensions on your server and a DPS compile time
  178.   environment you can do this quite well with xfig. Check out the version on
  179.   crocus.medicine.rochester.edu.
  180. - The InterViews tool `idraw' allows manipulation of EPS (Encapsulated
  181.   PostScript) files, and has a `mac-type' interface.
  182. - Island Draw 3.0 has an option to import Postscript, and it seems to accept
  183.   arbitrary Postscript.  I have fed it single page Postcript files from
  184.   Illustrator, Corel, Ventura, Designer, Eroff, and hand-coded files, and it
  185.   made Island Draw objects out of them.  The file initially opens as one
  186.   grouped object, but if you ungroup, you get editible objects.  I was quite
  187.   impressed.  I don't doubt there are ways to fool the interpreter, but it
  188.   works for output from drawing and publishing packages, which is what I need
  189.   it for.
  190.  
  191. ------------------------------
  192.  
  193. Subject:   -8- How can I format unformatted manpages?
  194. Date: 07 May 93 00:00:01 EST
  195.  
  196. SGI provides manpages in formatted form, and does not therefore need to provide
  197. us all with the formatting software. Most FTPable software, however, comes with
  198. unformatted manpages.
  199.  
  200. Manpages are most often formatted with Documenter's Workbench (DWB), which SGI
  201. has had to license separately from USL and we have to buy separately from SGI.
  202. SGI's DWB is based on version 2.1; the current version from USL is 3.3.
  203.  
  204. Public domain alternatives to DWB include 'groff' and 'awf':
  205.  
  206. 'groff' is by the Free Software Foundation and can be had from any GNU
  207. archive.  Compilers beware: it must be compiled with g++ (or another C++
  208. compiler?). However, there are compiled binaries on cb-iris.stanford.edu.
  209. David Hinds <dhinds@allegro.stanford.edu> gives this advice for installing
  210. groff so that it can format manpages on the fly:
  211.  
  212. Create a script called 'eqn':
  213.  
  214.  > #!/bin/sh
  215.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  216.  > geqn $*
  217.  
  218. and a script called 'neqn':
  219.  
  220.  > #!/bin/sh
  221.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  222.  > geqn -Tascii $*
  223.  
  224. and do:
  225.  
  226.  > ln -s gnroff nroff
  227.  
  228. and edit the end of the gnroff script to be:
  229.  
  230.  > rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  231.  > exec groff -Wall -mtty-char $T $opts $rest
  232.  
  233. To get PostScript output from 'man -t', you also need to create a 'psroff'
  234. script similar to 'nroff'.  Here are the context diffs:
  235.  
  236. *** /usr/local/bin/nroff        Sat Feb 13 15:51:09 1993
  237. --- /usr/local/bin/psroff       Sat Feb 13 17:45:46 1993
  238. ***************
  239. *** 1,8 ****
  240.   #!/bin/sh
  241. ! # Emulate nroff with groff.
  242.  
  243.   prog="$0"
  244. ! T=-Tascii
  245.   opts=
  246.  
  247.   for i
  248. --- 1,8 ----
  249.   #!/bin/sh
  250. ! # Emulate psroff with groff.
  251.  
  252.   prog="$0"
  253. ! T=-Tps
  254.   opts=
  255.  
  256.   for i
  257. ***************
  258. *** 25,30 ****
  259. --- 25,33 ----
  260.         -Tascii|-Tlatin1)
  261.                 T=$1
  262.                 ;;
  263. +       -t)
  264. +               # ignore -- default is send to stdout
  265. +               ;;
  266.         -T*)
  267.                 # ignore other devices
  268.                 ;;
  269. ***************
  270. *** 49,53 ****
  271.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  272.  
  273.   # This shell script is intended for use with man, so warnings are
  274.   # probably not wanted.  Also load nroff-style character definitions.
  275. ! exec groff -Wall -mtty-char $T $opts $rest
  276. --- 52,56 ----
  277.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  278.  
  279.   # This shell script is intended for use with man, so warnings are
  280. ! # probably not wanted.
  281. ! exec groff -Wall $T $opts $rest
  282.  
  283. The binaries on cb-iris.stanford.edu have these changes already made.
  284.  
  285. Henry Spencer's awf ("Amazingly Workable Formatter") is written in 'awk',
  286. which we all have, and does a pretty good job, considering. It can be FTPed
  287. from fresnel.stanford.edu in /pub/4D.
  288.  
  289. ------------------------------
  290.  
  291. Subject: ! -9- Why can't I compile application X?
  292. Date: 13 Jun 93 00:00:01 EST
  293.  
  294. Plenty of reasons, but here are some of the most common:
  295.  
  296. - SGI's C compiler is ANSI C by default in IRIX 4.0.x. Use the '-cckr' option
  297.   to compile K&R C. You can do this most easily by setting the environment
  298.   variable SGI_CC to "-cckr" or by editing the application's Makefile, often
  299.   by adding "-cckr" to the CFLAGS variable.
  300.  
  301. - A related problem is that Makefiles generated by 'imake' most often use
  302.   'cc -cckr -prototypes'; missing or incorrect prototypes usually just generate
  303.   pages of warnings but may cause an unrecoverable error. This can often be
  304.   worked around by removing "-prototypes" from the line where it appears in 
  305.   the Makefile (not the Imakefile).
  306.  
  307. - If you run NIS (aka Yellow Pages), programs which access files served by NIS
  308.   need to be linked with -lsun. The functions in libc.a which deal with these
  309.   files are not NIS-aware; the NIS versions are in libsun.a. Using libsun.a
  310.   usually means adding '-lsun' to the variable LIBS or LDFLAGS in one's
  311.   Makefile.
  312.  
  313. ------------------------------
  314.  
  315. Subject: ! -10- Why does GNU Emacs not compile, or compile but not run?
  316. Date: 14 Jun 93 00:00:01 EST
  317.  
  318. Emacs 18.59 is the last release of Emacs version 18, and builds and runs
  319. correctly under IRIX 4.0.x. Some earlier versions failed to compile (because cc
  320. now needs -cckr for K&R C compatibility) or failed to run when stripped
  321. (because of object file format changes). For the same reasion, the file
  322. unexmips.c in some versions of Epoch and Lucid Emacs should be replaced with
  323. the same-named file from the GNU Emacs 18.59 distribution.
  324.  
  325. Emacs 19.13 is the most recent release of Emacs version 19. The following
  326. patch, from Thomas Eberhardt <thomas@mathematik.uni-bremen.de>, fixes a
  327. problem with setpgrp wihich breaks subprocess calling:
  328.  
  329. ---- cut here ---------- cut here ---------- cut here ---------- cut here ----
  330. *** callproc.c-    Tue May 25 08:38:06 1993
  331. --- callproc.c    Tue Jun  8 21:40:50 1993
  332. ***************
  333. *** 520,526 ****
  334. --- 520,528 ----
  335.     close (err);
  336.   
  337.   #ifdef USG
  338. + #ifndef IRIX /* This would kill the controlling tty set up in create_process */
  339.     setpgrp ();            /* No arguments but equivalent in this case */
  340. + #endif
  341.   #else
  342.     setpgrp (pid, pid);
  343.   #endif /* USG */
  344. ---- cut here ---------- cut here ---------- cut here ---------- cut here ----
  345.  
  346. Karsten Kuenne <kuenne@desy.de> has patched Emacs 18.59 to work with IRIX
  347. 5.0's new object file format. The patches are at ftp.desy.de in
  348. /pub/gnu/emacs/emacs-irix5.0-patches. Emacs version 19 is not yet known to 
  349. work under IRIX 5.0.
  350.  
  351. ------------------------------
  352.  
  353. Subject:   -11- Why doesn't Xarchie 1.3 work?
  354. Date: 07 May 93 00:00:01 EST
  355.  
  356. The app-defaults file supplied with Xarchie 1.3 used fonts which did not exist
  357. on some versions of IRIX, resulting in invisible text and sometimes program
  358. lockups. You can either replace the "fixed" and "fixed*bold" fonts with
  359. "screen13" and "screen-bold13" everywhere they appear in the Xarchie.ad file,
  360. or better yet upgrade to Xarchie 2.0, in which this problem has been fixed.
  361. The current version of Xarchie can be found on export.lcs.mit.edu in the
  362. contrib directory.
  363.  
  364. ------------------------------
  365.  
  366. Subject: + -12- What are the correct versions of the Irix Development Option (IDO)
  367.                 for current versions of IRIX?
  368. Date: 13 Jun 93 00:00:01 EST
  369.  
  370. IDO 4.1.1, which includes the 3.10.1 back-end, is the most recent version of
  371. IDO suitable for IRIX 4.0.5x. Earlier versions compatible with IRIX 4.0.5x
  372. include IDO 4.0.1, which includes the 2.40 back-end, and IDO 4.1, which
  373. includes the 3.10 back-end. IRIX 5.0 requires IDO 5.0.
  374.  
  375. ------------------------------
  376.  
  377. Subject: ! -13- What do I need to do to build gcc/g++?
  378. Date: 16 Jun 93 00:00:01 EST
  379.  
  380. Before you start, remember that you need the headers and runtime libraries from
  381. SGI's extra-cost development option both to compile and use gcc. (glibc does
  382. not yet work on SGIs.) Of course if you buy the development option you'll get
  383. SGI's compiler anyway; this is comp.sys.sgi.*'s most popular Catch-22.
  384.  
  385. Don't forget to install the dev.cmplrs_hdr.internal subsystem, which contains
  386. needed headers and is not installed by default. You'll also need some way to
  387. read the manpages (see above) and up to 80Mb of free disk space. You can manage
  388. with as little as 50Mb by compiling without "-g", stripping binaries and
  389. pruning after each build stage.
  390.  
  391. First, FTP, unzip and untar gcc-2.4.x.tar.gz and libg++-2.3.x.tar.gz from
  392. aeneas.mit.edu in /pub/gnu. (You'll need 'gunzip', described in the README in
  393. the same directory.) The current versions at this writing are gcc 2.4.3.1 (!)
  394. and libg++ 2.3.1. If you're starting over from a failed build, do 'make
  395. distclean' to get rid of previous botches. Read the INSTALL document and follow
  396. the directions.
  397.  
  398. Michael Joosten <joost@ori.cadlab.de> provides these specifics for gcc-2.4.3:
  399. Run 'configure mips-sgi-irix4loser' instead of mips-sgi-irix4, that allegedly
  400. fixes some bugs with the assembler's instruction reordering (see the INSTALL
  401. file for some more details). You can use mips-sgi-irix4 if you already have the
  402. GNU assambler, 'gas'. Start with [g]make LANGUAGES=c for the first run.  Since
  403. 2.4.0, fixincludes is run automatically now. Then '[g]make stage1', [g]make
  404. CC="stage1/xgcc -Bstage1/" CFLAGS=-O LANGUAGES="c c++ proto" and repeat that
  405. for stage2. Some hours later 8-) you can run '[g]make compare' to check if the
  406. objects of stage2 and the last make doesn't differ. Finally, you can install it
  407. all with [g]make <all previous flags> install'. READ the INSTALL file if you
  408. are unsure: IRIX is mentioned with other MIPS machines near the end!
  409.  
  410. Now to libg++-2.3.1. Run 'configure mips-sgi-irix4 [-srcdir=] [-prefix=]'. To
  411. build it without debugging symbols, enter '[g]make CFLAGS=-O CC=gcc CXXFLAGS=-O
  412. LDFLAGS='. If you haven't installed gcc yet, you must give a 'CXX=....', too.
  413. This should take 30-45 minutes. If you are still brave, you can then make all
  414. tests, but be warned! This will make every subdirectory of libg++/etc, too, and
  415. it takes lots of space: without debugging I needed ca 20MB!  Furthermore you
  416. need two patches for libg++-2.3.1, that fixes problems in libg++/etc/trie-gen:
  417.  
  418. ===8<=== snip ===8<===
  419. *** Makefile.in-        Wed Jun 16 13:46:41 1993
  420. --- Makefile.in Wed Jun 16 13:46:57 1993
  421. ***************
  422. *** 101,111 ****
  423.   
  424.   out.cc: trie-gen
  425.         @echo "Generating a compacted minimal-prefix trie for files in /bin"
  426. !       /bin/ls -1 /bin | ./trie-gen -c > out.cc
  427.   
  428.   check: out.o test.o
  429.         $(CXX) out.o test.o $(LIBS)
  430. !       /bin/ls -1 /bin | ./a.out -v
  431.   
  432.   run_tests: check
  433.   
  434. --- 101,111 ----
  435.   
  436.   out.cc: trie-gen
  437.         @echo "Generating a compacted minimal-prefix trie for files in /bin"
  438. !       /bin/ls  /bin | ./trie-gen -c > out.cc
  439.   
  440.   check: out.o test.o
  441.         $(CXX) out.o test.o $(LIBS)
  442. !       /bin/ls  /bin | ./a.out -v
  443.   
  444.   run_tests: check
  445.   
  446. *** compact.cc- Wed Jun 16 14:00:39 1993
  447. --- compact.cc  Wed Jun 16 14:01:02 1993
  448. ***************
  449. *** 332,338 ****
  450.       ;
  451.   
  452.     printf ("\n};\n\nstatic const %s yy_next[%d] = \n{\n  ",
  453. !           max_number < MAX_SIGNED_CHAR ? "char" : max_number < MAX_SIGNED_SHORT ? "short" : "int",
  454.             compressed_len + 1);
  455.         
  456.     for (i = 0; i <= compressed_len; )
  457. --- 332,338 ----
  458.       ;
  459.   
  460.     printf ("\n};\n\nstatic const %s yy_next[%d] = \n{\n  ",
  461. !           max_number < MAX_SIGNED_CHAR ? "signed char" : max_number < MAX_SIGNED_SHORT ? "short" : "int",
  462.             compressed_len + 1);
  463.         
  464.     for (i = 0; i <= compressed_len; )
  465. ===8<=== snip ===8<===
  466.  
  467. Note that gcc 2.4.x, unlike gcc 2.3.x, can be compiled with optimization, and
  468. has a 'fixincludes' which works properly.
  469.  
  470. All of the above applies to IRIX 4.0.x; gcc is not known to deal with 5.x.
  471.  
  472. ------------------------------
  473.  
  474. Subject:   -14- Can I use dynamic shared libraries in IRIX?
  475. Date: 07 May 93 00:00:01 EST
  476.  
  477. IRIX 5.0 supports SVR4-style dynamic shared libraries. IRIX 4.0.x does not,
  478. but Jack Jansen <jack@cwi.nl> has written a package to do it anyway. Get the
  479. file /pub/dl-1.3.tar.Z from ftp.cwi.nl by anonymous FTP.
  480.  
  481. ------------------------------
  482.  
  483. Subject:   -15- How can I make Fortran load entirely from a library?
  484. Date: 07 May 93 00:00:01 EST
  485.  
  486. Bron Nelson <bron@sgi.com> writes:
  487. > Is there any way to tell f77 to load entirely from a library? When using ld
  488. > for C, it is possible to use -u symname to force the loader to start its
  489. > work. This makes it possible to load entirely from a library.
  490.  
  491. The same trick works for Fortran, but (like all things Fortranish) you have to
  492. do a little dance to make things work out.
  493.  
  494. The trouble is that the Fortran compiler has an "-u" option, so you have to
  495. arrange to pass the "-u symname" option directly to the loader, by-passing the
  496. Fortran front end.
  497.  
  498. Try adding the incantation "-Wl,-u,MAIN__" to the link line.  e.g.:
  499.  
  500.     f77 -Wl,-u,MAIN__ -o myprog myprog.a
  501.  
  502. The "-W" option is described in the man page.
  503.  
  504. ------------------------------
  505.  
  506. Subject:   -16- How can I make my 4.0.x Fortran program read binary data files 
  507.                 written by a 3.3.x Fortran program?
  508. Date: 07 May 93 00:00:01 EST
  509.  
  510. You must compile your program with the -old_rl flag (described in the f77
  511. manpage) _and_ open the file with the option "form='unformatted'", for example:
  512.  
  513. open(1, file='filename', access='direct', recl=1, form='unformatted')
  514.  
  515. ------------------------------
  516.  
  517. Subject:   -17- Credits
  518. Date: 6 May 93 00:00:01 EST
  519.  
  520. The comp.sys.sgi FAQs are the collective effort of
  521.  
  522.   Dale Chayes        dale@ldeo.columbia.edu
  523.   Steve Rikli        steve@archone.tamu.edu
  524.   Allan Schaffer    aschaffe@sgi.com
  525.   Dave Schweisguth    dcs@neutron.chem.yale.edu
  526.  
  527. Special thanks are due to
  528.  
  529.   Tom Davis        Author of 'zip'
  530.   Harry Mangalam    Maintainer of the comp.sys.sgi.* WAIS database
  531.  
  532. Finally, much thanks to all of the SGI employees on Usenet, all of whom have
  533. provided gigabytes of help and information.
  534.  
  535. Credits for individual contributions are given in the answers.
  536.  
  537. ------------------------------
  538. -- 
  539. Allan Schaffer
  540. aschaffe@sgi.com
  541. -- 
  542. Allan Schaffer
  543. aschaffe@sgi.com
  544.