home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / aix-faq / part4 < prev    next >
Encoding:
Text File  |  2000-11-03  |  68.5 KB  |  1,882 lines

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!portc01.blue.aol.com!newsfeed.skycache.com!Cidera!nntp-out.teleweb.pt!news.teleweb.pt!not-for-mail
  2. From: bofh@mail.teleweb.pt
  3. Newsgroups: comp.unix.aix,comp.answers,news.answers
  4. Subject: comp.unix.aix Frequently Asked Questions (Part 4 of 5)
  5. Supersedes: <aix-faq-4-973024721@mail.teleweb.pt>
  6. Followup-To: comp.unix.aix
  7. Date: 2 Nov 2000 15:53:10 +0100
  8. Organization: What ?
  9. Lines: 1858
  10. Approved: news-answers-request@mit.edu
  11. Distribution: world
  12. Expires: 07 Dec 2000 15:25:21
  13. Message-ID: <aix-faq-4-973175121@mail.teleweb.pt>
  14. References: <aix-faq-1-973175121@mail.teleweb.pt>
  15. Reply-To: bofh@mail.teleweb.pt (Jose Pina Coelho)
  16. NNTP-Posting-Host: p140a55.teleweb.pt
  17. X-Trace: srvlis16.teleweb.pt 973177342 1432 212.16.140.55 (2 Nov 2000 15:02:22 GMT)
  18. X-Complaints-To: abuse@teleweb.pt
  19. NNTP-Posting-Date: 2 Nov 2000 15:02:22 GMT
  20. Summary: This posting contains AIX Frequently Asked Questions
  21.          and their answers.  AIX is IBM's version of Unix.
  22. Keywords: AIX RS/6000 questions answers
  23. Xref: senator-bedfellow.mit.edu comp.unix.aix:191693 comp.answers:42949 news.answers:195011
  24.  
  25. Posted-By: auto-faq 3.3 (Perl 5.005)
  26. Archive-name: aix-faq/part4
  27. Revision: 1.14 2000/01/04 02:34:26
  28. Posting-Frequency: monthly
  29.  
  30. ------------------------------
  31.  
  32. Subject: 2.05: How do I make my own shared library?
  33.  
  34. To make your own shared object or library of shared objects, you should
  35. know that a shared object cannot have undefined symbols.  Thus, if your
  36. code uses any externals from /lib/libc.a, the latter MUST be linked with
  37. your code to make a shared object.  Mike Heath (mike@pencom.com) said it
  38. is possible to split code into more than one shared object when externals
  39. in one object refer to another one.  You must be very good at
  40. import/export files.  Perhaps he or someone can provide an example. 
  41.  
  42. Assume you have one file, sub1.c, containing a routine with no external
  43. references, and another one, sub2.c, calling stuff in /lib/libc.a.  You
  44. will also need two export files, sub1.exp, sub2.exp.  Read the example
  45. below together with the examples on the ld man page. 
  46.  
  47. ---- sub1.c ----
  48.     int addint(int a, int b)
  49.     {
  50.       return a + b;
  51.     }
  52. ---- sub2.c ----
  53.     #include <stdio.h>
  54.  
  55.     void printint(int a)
  56.     {
  57.       printf("The integer is: %d\n", a);
  58.     }
  59. ---- sub1.exp ----
  60.     #!
  61.     addint
  62. ---- sub2.exp ----
  63.     #!
  64.     printint
  65. ---- usesub.c ----
  66.     main()
  67.     {
  68.       printint( addint(5,8) );
  69.     }
  70.  
  71. The following commands will build your libshr.a, and compile/link the
  72. program usesub to use it.
  73.  
  74.   $ cc  -c sub1.c
  75.   $ cc -bM:SRE -bnoentry -bE:sub1.exp -o sub1shr.o sub1.o
  76.   $ cc  -c sub2.c
  77.   $ cc -bM:SRE -bnoentry -bE:sub2.exp -o sub2shr.o sub2.o
  78.   $ ar r libshr.a sub1shr.o sub2shr.o
  79.   $ cc -o usesub usesub.c -L: libshr.a
  80.   $ usesub
  81.   The integer is: 13
  82.   $
  83.  
  84. A similar example can be found in the AIX manual online on the web at:
  85.  
  86. <http://www.rs6000.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/create_shared_lib.htm>
  87.  
  88. ------------------------------
  89.  
  90. Subject: 2.06: Linking my program fails with strange errors.  Why?
  91.  
  92. Very simple, the linker (actually called the binder), cannot get the
  93. memory it needs, either because your ulimits are too low or because you
  94. don't have sufficient paging space.  Since the linker is quite different
  95. >from normal Unix linkers and actually does much more than these, it also
  96. uses a lot of virtual memory.  It is not unusual to need 10000 pages (of
  97. 4k) or more to execute a fairly complex linking.
  98.  
  99. If you get 'BUMP error', either ulimits or paging is too low, if you get
  100. 'Binder killed by signal 9' your paging is too low.
  101.  
  102. First, check your memory and data ulimits; in korn shell 'ulimit -a' will
  103. show all limits and 'ulimit -m 99999' and 'ulimit -d 99999' will
  104. increase the maximum memory and data respectively to some high values. 
  105. If this was not your problem, you don't have enough paging space.
  106.  
  107. If you will or can not increase your paging space, you could try this:
  108.  
  109. - Do you duplicate libraries on the ld command line? That is never
  110.   necessary.
  111.  
  112. - Do more users link simultaneously? Try having only one linking going
  113.   on at any time.
  114.  
  115. - Do a partwise linking, i.e. you link some objects/libraries with the
  116.   -r option to allow the temporary output to have unresolved references,
  117.   then link with the rest of your objects/libraries.  This can be split
  118.   up as much as you want, and will make each step use less virtual memory.
  119.  
  120.   If you follow this scheme, only adding one object or archive at a
  121.   time, you will actually emulate the behavior of other Unix linkers.
  122.  
  123. If you decide to add more paging space, you should consider adding a new
  124. paging space on a second hard disk, as opposed to just increasing the
  125. existing one.  Doing the latter could make you run out of free space on
  126. your first harddisk. It is more involved to shrink a paging space
  127. but easier to delete one.
  128.  
  129. ------------------------------
  130.  
  131. Subject: 2.07: Why does it take so long to compile "hello world" with xlc?
  132.  
  133. Some systems have experienced delays of more than 60 seconds in
  134. compiling "#include <stdio.h> int main () {printf ("Hello world");}"
  135. The problem is with the license manager contact IBM to make sure
  136. you've got the latest PTF.
  137.  
  138. ------------------------------
  139.  
  140. Subject: 2.08: What's with malloc()?
  141.  
  142. malloc() uses a late allocation algorithm based on 4.3 BSD's malloc()
  143. for speed.  This lets you allocate very large sparse memory spaces,
  144. since the pages are not actually allocated until they are touched for
  145. the first time.  Unfortunately, it doesn't die gracefully in the face of
  146. loss of available memory.  See the "Paging Space Overview" under
  147. InfoExplorer, and see the notes on the linker in this document for an
  148. example of an ungraceful death.
  149.  
  150. If you want your program to get notified when running out of memory, you
  151. should handle the SIGDANGER signal.  The default is to ignore it. 
  152. SIGDANGER is sent to all processes when paging space gets low, and if
  153. paging space gets even lower, processes with the highest paging space
  154. usage are sent the SIGKILL signal.
  155.  
  156. malloc() is substantially different in 3.2, allocating memory more
  157. tightly.  If you have problems running re-compiled programs on 3.2,
  158. try running them with MALLOCTYPE=3.1.
  159.  
  160. Early Page Space Allocation (EPSA) added to AIX 3.2: see
  161. /usr/lpp/bos/README.PSALLOC - IX38211 / U422496 Allows setting of
  162. early allocation (vs. default late allocation) on a per-process basis.
  163.  
  164. ------------------------------
  165.  
  166. Subject: 2.09: Why does xlc complain about 'extern char *strcpy()'
  167.  
  168. The header <string.h> has a strcpy macro that expands strcpy(x,y) to
  169. __strcpy(x,y), and the latter is then used by the compiler to generate
  170. inline code for strcpy.  Because of the macro, your extern declaration
  171. contains an invalid macro expansion.  The real cure is to remove your
  172. extern declaration but adding -U__STR__ to your xlc will also do the
  173. trick, although your program might run a bit more slowly as the compiler
  174. cannot inline the string functions any more.
  175.  
  176. ------------------------------
  177.  
  178. Subject: 2.10: Why do I get 'Parameter list cannot contain fewer ....'
  179.  
  180. This is the same as above (2.9).
  181.  
  182. ------------------------------
  183.  
  184. Subject: 2.11: Why does xlc complain about
  185.                '(sometype *)somepointer = something'
  186.  
  187. Software that is developed using gcc may have this construct. However,
  188. standard C does not permit casts to be lvalues, so you will need to
  189. change the cast and move it to the right side of the assignment. If you
  190. compile with 'cc', removing the cast completely will give you a warning,
  191. 'xlc' will give you an error (provided somepointer and something are of
  192. different types - but else, why would the cast be there in the first place?)
  193.  
  194. ------------------------------
  195.  
  196. Subject: 2.12: Some more common errors
  197.  
  198. Here are a few other common errors with xlc:
  199.  
  200. 305 |     switch((((np)->navigation_type) ? (*((np)->navigation_type)) :
  201.       ((void *)0)))
  202.       .a...........  
  203. a - 1506-226: (S) The second and third operands of the conditional
  204. operator must be of the same type.
  205.  
  206. The reason for this is that xlc defines NULL as (void *)0, and it does
  207. not allow two different types as the second and third operand of ?:. 
  208. The second argument above is not a pointer and the code used NULL
  209. incorrectly as a scalar. NULL is a nil pointer constant in ANSI C and
  210. in some traditional compilers.
  211.  
  212. You should change NULL in the third argument above to an integer 0.
  213.  
  214.  
  215. ------------------------------
  216.  
  217. Subject: 2.13: Can the compiler generate assembler code?
  218.  
  219. Starting with version 1.3 of xlc and xlf the -S option will generate a
  220. .s assembly code file prior to optimization. The option -qlist will
  221. generate a human readable one in a .lst file.
  222.  
  223. There is also a disassembler in /usr/lpp/xlc/bin/dis include with the
  224. 1.3 version of xlc (and in /usr/lpp/xlC/bin/dis with the 2.1 version
  225. of xlC) that will disassemble existing object or executable files.
  226.  
  227. ------------------------------
  228.  
  229. Subject: 2.14: Curses
  230.  
  231. Curses based applications should be linked with -lcurses and _not_ with
  232. -ltermlib. It has also been reported that some problems with curses are
  233. avoided if your application is compiled with -DNLS.
  234.  
  235. Peter Jeffe <peter@ski.austin.ibm.com> also notes:
  236.  
  237. >the escape sequences for cursor and function keys are *sometimes*
  238. >treated as several characters: eg. the getch() - call does not return
  239. >KEY_UP but 'ESC [ C.'
  240.  
  241. You're correct in your analysis: this has to do with the timing of the
  242. escape sequence as it arrives from the net. There is an environment
  243. variable called ESCDELAY that can change the fudge factor used to decide
  244. when an escape is just an escape. The default value is 500; boosting
  245. this a bit should solve your problems.
  246.  
  247. Christopher Carlyle O'Callaghan <asdfjkl@wam.umd.edu> has more comments
  248. concerning extended curses:
  249.  
  250. 1) The sample program in User Interface Programming Concepts, page 7-13
  251.    is WRONG. Here is the correct use of panes and panels.
  252.  
  253. #include <cur01.h>
  254. #include <cur05.h>
  255.  
  256. main()
  257. {
  258. PANE *A, *B, *C, *D, *E, *F, *G, *H;
  259. PANEL *P;
  260.  
  261. initscr();
  262.  
  263. A = ecbpns (24, 79, NULL, NULL, 0, 2500, Pdivszp, Pbordry, NULL, NULL);
  264. D = ecbpns (24, 79, NULL, NULL, 0, 0,    Pdivszf, Pbordry, NULL, NULL);
  265. E = ecbpns (24, 79, D,    NULL, 0, 0,    Pdivszf, Pbordry, NULL, NULL);
  266. B = ecbpns (24, 79, A, D, Pdivtyh, 3000, Pdivszp, Pbordry, NULL, NULL);
  267. F = ecbpns (24, 79, NULL, NULL, 0, 0,    Pdivszf, Pbordry, NULL, NULL);
  268. G = ecbpns (24, 79, F,    NULL, 0, 5000, Pdivszp, Pbordry, NULL, NULL);
  269. H = ecbpns (24, 79, G,    NULL, 0, 3000, Pdivszp, Pbordry, NULL, NULL);
  270. C = ecbpns (24, 79, B, F, Pdivtyh, 0, Pdivszf, Pbordry, NULL, NULL);
  271. P = ecbpls (24, 79, 0, 0, "MAIN PANEL", Pdivtyv, Pbordry, A);
  272.  
  273. ecdvpl (P);
  274. ecdfpl (P, FALSE);
  275. ecshpl (P); 
  276. ecrfpl (P);
  277. endwin();
  278. }
  279.  
  280. 2) DO NOT include <curses.h> and any other <cur0x.h> file together.
  281.    You will get a bunch of redefined statements.
  282.  
  283. 3) There is CURSES and EXTENDED CURSES. Use only one or the other. If the
  284.    manual says that they're backwards compatible or some other indication 
  285.    that you can use CURSES routines with EXTENDED, don't believe it. To 
  286.    use CURSES you need to include <curses.h> and you can't (see above).
  287.  
  288. 4) If you use -lcur and -lcurses in the same link command, you will get
  289.    Memory fault (core dump) error. You CANNOT use both of them at the same
  290.    time. -lcur is for extended curses, -lcurses is for regular curses.
  291.  
  292. 5) When creating PANEs, when you supply a value (other than 0) for the
  293.    'ds' parameter and use Pdivszf value for the 'du' parameter, the 'ds'
  294.    will be ignored (the sample program on page 7-13 in User Interface
  295.    Programming Concepts is wrong.) For reasons as yet undetermined,
  296.    Pdivszc doesn't seem to work (or at least I can't figure out how to
  297.    use it.)
  298.  
  299. 6) If you're running into bugs and can't figure out what is happening,
  300.    try the following:
  301.    include -qextchk -g in your compile line
  302.     -qextchk will check to make sure you're passing the right number of
  303.        parameters to the functions
  304.     -g enables debug
  305.  
  306. 7) Do not use 80 as the number of columns if you want to use the whole
  307.    screen. The lower right corner will get erased.  Use 79 instead.
  308.  
  309. 8) If you create a panel, you must create at least 1 pane, otherwise you
  310.    will get a Memory fault (core dump).
  311.  
  312. 9) When creating a panel, if you don't have a border around it, any title
  313.    you want will not show up.
  314.  
  315. 10) to make the screen scroll down:
  316.     wmove (win, 0, 0);
  317.     winsertln (win)
  318.  
  319. 11) delwin(win) doesn't work in EXTENDED WINDOWS
  320.  
  321.     To make it appear as if a window is deleted, you need to do the following:
  322.     for every window that you want to appear on the screen
  323.     touchwin(win)
  324.     wrefresh(win)
  325.  
  326.     you must make sure that you do it in the exact same order as you put
  327.     them on the screen (i.e., if you called newwin with A, then C, then B,
  328.     then you must do the loop with A, then C, then B, otherwise you won't
  329.     get the same screen back).  The best thing to do is to put them into
  330.     an array and keep track of the last window index.
  331.  
  332. 12) mvwin(win, line, col) implies that it is only used for viewports and
  333.     subwindows. It can also be used for the actual windows themselves.
  334.  
  335. 13) If you specify the attribute of a window using wcolorout(win), any
  336.     subsequent calls to chgat(numchars, mode) or any of its relatives
  337.     will not work. (or at least they get very picky.)
  338.  
  339. ------------------------------
  340.  
  341. Subject: 2.15: How do I speed up linking
  342.  
  343. Please refer to sections 2.03 and 2.06 above.
  344.  
  345. From: losecco@undpdk.hep.nd.edu (John LoSecco) and
  346.       hook@chaco.aix.dfw.ibm.com (Gary R. Hook)
  347.  
  348. From oahu.cern.ch in /pub/aix3 you can get a wrapper for the existing
  349. linker called tld which can reduce link times with large libraries by
  350. factors of 3 to 4.
  351.  
  352. ------------------------------
  353.  
  354. Subject: 2.16: What is deadbeef?
  355.  
  356. When running the debugger (dbx), you may have wondered what the
  357. 'deadbeef' is you occasionally see in registers.  Do note, that
  358. 0xdeadbeef is a hexadecimal number that also happens to be some kind
  359. of word (the RS/6000 was built in Texas!), and this hexadecimal number
  360. is simply put into unused registers at some time, probably during
  361. program startup.
  362.  
  363.  
  364. ------------------------------
  365.  
  366. Subject: 2.17: How do I make an export list from a library archive?
  367. From: d.dennerline@bull.com (Dave Dennerline)
  368.  
  369. [ This script has been moved to section 8.10 ]
  370.  
  371. ------------------------------
  372.  
  373. Subject: 2.19: Building imake, makedepend
  374. From: crow@austin.ibm.com (David L. Crow)
  375.  
  376. [Editor's note: if you have AIX 4.x,  you need the X11.adt.imake LPP
  377. and probably most if not all of the X11.adt.* LPPs.  Imake, xmkmf and
  378. other utilities are delivered precompiled.]
  379.  
  380.     You need X11dev.src release 1.2.3.0 (ie the R5 release) [on AIX 3.2].
  381.  
  382.  
  383.      Unless you have an R5 release of AIXwindows, there is no xmkmf.
  384.   These are the steps that I use to make imake, makedepend and all
  385.   of it's config files, and then install them in the working tree
  386.   (ie not the Xamples) for daily use:
  387.   
  388.       cd /usr/lpp/X11/Xamples
  389.       make Makefile
  390.       make SUBDIRS="config util" Makefiles
  391.       make SUBDIRS="config util" linklibs
  392.       make SUBDIRS="config util" depend
  393.       make SUBDIRS="config util" 
  394.       make SUBDIRS="config util" install
  395.       
  396.   Then redo the steps everytime you apply an X11 update.
  397.  
  398. ------------------------------
  399.  
  400. Subject: 2.20: How can tell what shared libraries a binary is linked with?
  401.  
  402. Use "dump -H <execfilename>" and see if anything other than /unix is
  403. listed in the loader section (at the bottom).  The first example is
  404. /bin/sh (statically linked) and the second example is
  405. /usr/local/bin/bash (shared).
  406.  
  407. INDEX  PATH                          BASE                MEMBER              
  408. 0      /usr/lib:/lib                                                         
  409. 1      /                             unix                                    
  410.  
  411. INDEX  PATH                          BASE                MEMBER              
  412. 0      ./lib/readline/:./lib/glob/:/usr/lib:/lib               
  413. 1                                    libc.a              shr.o               
  414. 2                                    libcurses.a         shr.o               
  415.  
  416. The freeware tool "ldd" lists all the shared libraries needed
  417. by an executable, including those recursively included by other
  418. shared libraries. See question 2.27 "Where can I find ldd for AIX?".
  419.  
  420. ------------------------------
  421.  
  422. Subject: 2.21: Can I get a PTF for my C/C++ compiler from the net?
  423.  
  424. <http://service.software.ibm.com/>  contains pointers to most PTFs, including
  425. compilers.  You'll need the fixdist program (see 1.142) to retrieve them.
  426.  
  427. ------------------------------
  428.  
  429. Subject: 2.22: Why does "install"ing software I got from the net fail?
  430.  
  431. Note that the RS/6000 has two install programs, one with System V flavor
  432. in the default PATH (/etc/install with links from /usr/bin and /usr/usg),
  433. and one with BSD behavior in /usr/ucb/install.
  434.  
  435. ------------------------------
  436.  
  437. Subject: 2.23: What is Linker TOC overflow error 12?
  438.  
  439. There is a hard coded limit in the AIX 3.2.5 linker that is fixed in
  440. AIX 4.1.  A kind soul donated the following information to help people
  441. get the 3.2.5 fix
  442.  
  443.     The LPS (paperwork) 
  444.       AIX TOC Data Binder/6000 #P91128
  445.       Version 1.1
  446.       Program Number 5799-QDY
  447.       Reference No. GC23-2604-00, FC 5615
  448.     Pre Reqs listed were AIX 3.2.5
  449.       IBM C Set++ V2 (5765-186)
  450.  
  451. The above is not available any longer, see section 1.006.
  452.  
  453. You could also put some of the application code into shared libraries
  454. or, in the case of gcc, use -mminimal-toc.
  455.  
  456. ------------------------------
  457.  
  458. Subject: 2.24: What is the limit on number of shared memory segments
  459.                I can attach?
  460.  
  461. Each process has 16 segments.  One is used for private code, one for
  462. stack, one for heap; those, if memory serves, are segments 0, 1, and
  463. 2.  (If you look in sys/shm.h, you'll see that SHMLOSEG is 3 -- the
  464. lowest segment, in number and in the process' virtual address space,
  465. available to shmat.)
  466.  
  467. SHMHISEG, the highest segment you can attach to (also defined in
  468. sys/shm.h), is 12.  Segments 3 through 12 are available to shmat,
  469. giving the 10 segments your program used successfully.  (NSHMSEGS in
  470. sys/shm.h will give you this value, though it's of limited use, since
  471. most platforms that I've seen don't define it.)
  472.  
  473. Segment 13 is used by shared code your program has attached to;
  474. I think one of the others might be for kernel-mode data.
  475.  
  476. See also mmap.
  477.  
  478. ------------------------------
  479.  
  480. Subject: 2.25: I deleted libc.a by accident --- how do I recover?
  481. From: Ed Ravin <eravin@panix.com>
  482.  
  483. You can recover from this without rebooting or reinstalling, if you
  484. have another copy of libc.a available that is also named "libc.a".  If
  485. you moved libc.a to a different directory, you're in luck -- do the
  486. following:
  487.  
  488. export LIBPATH=/other/directory
  489.  
  490.  
  491. And your future commands will work.  But if you renamed libc.a, this
  492. won't do it.  If you have an NFS mounted directory somewhere, you can
  493. put libc.a on the that host, and point LIBPATH to that directory as
  494. shown above.
  495.  
  496. Failing that, turn off your machine, reboot off floppies or other
  497. media, and get a root shell.  I don't think you should do "getrootfs"
  498. as you usually do when accessing the root vg this way -- AIX may start
  499. looking for libc.a on the disk, and you'll just run into the same
  500. problem.  So do an importvg, varyonvg, and then mount /usr somewhere,
  501. then manually move libc.a back or copy in a new one from floppy.
  502.  
  503. ------------------------------
  504.  
  505. Subject: 2.26: Where can I find dlopen, dlclose, and dlsym for AIX?
  506.  
  507. An implementation of these dynamic code loading functions was written by
  508. Jens-Uwe Mager <jum@anubis.han.de> and can be found at
  509. <http://www.han.de/~jum/aix/dlfcn.shar>
  510.  
  511. From: Gary R. Hook <hook@austin.ibm.com>
  512.  
  513. Starting with AIX 4.2 a dlopen et. al. are included in the base OS in
  514. the libdl.a library. Under AIX 4.1 this is available as SLHS (Shared
  515. Library Hookable Symbols) as APAR IX IX71849 for the runtime package and
  516. APAR IX IX72973 for the development tools.
  517.  
  518. ------------------------------
  519.  
  520. Subject: 2.27: Where can I find ldd for AIX?
  521. From: Jens-Uwe Mager <jum@anubis.han.de>
  522.  
  523. Try <http://www.han.de/~jum/aix/ldd.c>. Also the "aix.tools"
  524. package from <http://www-frec.bull.com>
  525.  
  526. ------------------------------
  527.  
  528. Subject: 2.28:  How do I make my program binary executable on the
  529.                 POWER, POWER2, and POWERPC architecures?
  530.  
  531. AIX will emulate those instructions not available in POWERPC processors, but
  532. you can avoid this emulation and consequent performance degradtation by
  533. using only the common to all.
  534.  
  535. If you are using IBM's xlc (cc) compiler, the default is to use the common
  536. instruction set.  If you want to be explicit, use the -qarch=com option.
  537.  
  538. The option -mcpu=common makes GCC use the common instruction set.  Please
  539. note that (unlike xlc) this is *not* the default with GCC on AIX.
  540.  
  541. ------------------------------
  542.  
  543. Subject: 2.29: How do I access more than 256 Megabytes of memory?
  544.  
  545. By default each program gets one segment register (see 2.24) for its
  546. data segment. As each segment register covers 256 MB, any calls to
  547. malloc more will fail. Also programs that declare large global or static
  548. arrays may fail to load. To allocate more segment registers to your
  549. program, use the linker option -bmaxdata to specify the number of bytes
  550. you need in the data segment as follows:
  551.  
  552. cc -o myprog -bmaxdata:0x20000000 myprog.c
  553.  
  554. The example above would allocate an additional segment register to allow
  555. for 512MB of data.
  556.  
  557. ------------------------------
  558.  
  559. Subject: 2.30: How do I use POSIX threads with gcc 2.7.x?
  560. From: David Edelsohn <dje@watson.ibm.com>
  561.  
  562. The code generated by GCC is compatible with threads, but gcc-2.7 
  563. was released so long ago that it did not provide an option to perform
  564. the extra link steps necessary to support threads:
  565.  
  566. 1) Compile all source files with "-D_THREAD_SAFE" macro defined.
  567. 2) Link with "-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a"
  568.    to obtain the pthreads support 
  569.    and add "-nostartfiles /usr/lib/crt0_r.o" to the beginning of the
  570.    link command line (using gcc to link!) to initialize threads.
  571.  
  572. ------------------------------
  573.  
  574. Subject: 2.31: Why does pthread_create return the error code 22?
  575.  
  576. Using Posix threads under AIX requires a special C runtime startup
  577. initialization as well as special versions of some libraries. The IBM C
  578. compiler includes these special libraries if called by the name xlc_r
  579. (or xlC_r for C++). There also other maing variations to support various
  580. defaults, consult the file /etc/xlC.cf for details.
  581.  
  582. ------------------------------
  583.  
  584. Subject: 2.32: How do I build programs under a later AIX release that run
  585.     under earlier releases as well?
  586.  
  587. IBM develops AIX only for binary compatibility with older AIX releases,
  588. not the other way around. You will thus need to build programs on the
  589. oldest AIX release the program is supposed to run on. You will also need
  590. to link programs dynamically, if you link in the system libraries
  591. statically the program will probably only run on the machine you
  592. performed the link on.
  593.  
  594. With some preparation it is appearently possible to get around that
  595. limitation. Bob Halblutzel has put together a web page describing the
  596. detailed steps how to set up such a build environment at the following
  597. web page:
  598.  
  599. <http://www.hablutzel.com/aix_compatibility_build.html>
  600.  
  601. Please not that this is not a supported way to build your programs, you
  602. will probably receive not any support by IBM if you have problems with
  603. that environment.
  604.  
  605. ------------------------------
  606.  
  607. Subject: 3.00: Fortran and other compilers
  608.  
  609. This section covers all compilers other than C/C++.  On Fortran, there
  610. seem to have been some problems with floating point handling, in
  611. particular floating exceptions.
  612.  
  613. ------------------------------
  614.  
  615. Subject: 3.01: I have problems mixing Fortran and C code, why?
  616.  
  617. A few routines (such as getenv, signal, and system) exist in both the
  618. Fortran and C libraries but with different parameters. In the recent
  619. past, if you have a mixed program that calls getenv from both C and
  620. Fortran code, you have to link them carefully by specifying the correct
  621. library first on your command line. This is no longer needed starting
  622. with version 1.5 of the compilers.
  623.  
  624.  
  625. ------------------------------
  626.  
  627. Subject: 3.02: How do I statically bind Fortran libraries and dynamically
  628.                bind C libraries?
  629. From: amaranth@vela.acs.oakland.edu (Paul Amaranth)
  630.  
  631. [ Editor's note: Part of this is also discussed above under the C compiler
  632.   section, but I felt it was so valuable that I have left it all in. 
  633.   I've done some minor editing, mostly typographical. ]
  634.  
  635. The linker and binder are rather versatile programs, but it is not
  636. always clear how to make them do what you want them to.  In particular,
  637. there are times when you do not want to use shared libraries, but
  638. rather, staticly bind the required routines into your object.  Or, you
  639. may need to use two versions of the same routine (eg, Fortran & C).  Here
  640. are the results of my recent experiments.  I would like to thank Daniel
  641. Premer and Brad Hollowbush, my SE, for hints.  Any mistakes or omissions
  642. are my own and I have tended to interchange the terms "linker" and
  643. "binder".  These experiments were performed on AIX 3.1.2.  Most of this
  644. should be applicable to later upgrades of 3.1.
  645.  
  646. 1)  I have some C programs, I want to bind in the runtime routines.  How
  647.     do I do this? [Mentioned in section 2.04 of this article as well, ed.]
  648.  
  649.     You can put the -bnso binder command on the link line.  You should
  650.     also include the -bI:/lib/syscalls.exp control argument:
  651.       
  652.       $ cc *.o -bnso -bI:/lib/syscalls.exp -o foo
  653.  
  654.     This will magically do everything you need.  Note that this will bind
  655.     _all_ required routines in.  The -bI argument tells the linker that
  656.     these entry points will be resolved dynamically at runtime (these are
  657.     system calls).  If you omit this you will get lots of unresolved 
  658.     reference messages.
  659.  
  660. 2)  I want to statically bind in the Fortran runtime so a) my customers 
  661.     do not need to buy it and b) I don't have to worry about the runtime
  662.     changing on a new release.  Can I use the two binder arguments in
  663.     1) to do this?
  664.  
  665.     You should be able to do so, but, at least under 3002, if you do
  666.     you will get a linker error referencing getenv.  In addition, there
  667.     are a number of potential conflicts between Fortran and C routines.
  668.     The easy way just does not work.  See the section on
  669.     2 stage linking for C and Fortran on how to do this.  The getenv
  670.     problem is a mess, see the section on Comments & Caveats for more.
  671.  
  672.     From: Gary R. Hook <hook@austin.ibm.com>
  673.  
  674.     The xlf runtime is a no-charge feature, you can download and install
  675.     it without having to buy it. This change was made >2 years ago.
  676.  
  677. 3)  I have a mixture of C and Fortran routines, how can I make sure
  678.     that the C routines reference the C getenv, while the Fortran routines
  679.     reference the Fortran getenv (which has different parameters and, if
  680.     called mistakenly by a C routine results in a segmentation fault)?
  681.  
  682.     From Mike Heath (mike@pencom.com):
  683.  
  684.     Use -brename:symbol1,symbol2 when pre-linking the modules from one
  685.     of the languages. It does not matter which one you choose.
  686.  
  687. 4)  I have C and Fortran routines.  I want to bind in the xlf library, while
  688.     letting the rest of the libraries be shared.  How do I do this?
  689.  
  690.     You need to do a 2 stage link.  In the first stage, you bind in the
  691.     xlf library routines, creating an intermediate object file.  The
  692.     second stage resolves the remaining references to the shared libraries.
  693.  
  694.     This is a general technique that allows you to bind in specific system
  695.     routines, while still referencing the standard shared libraries.
  696.  
  697.     Specifically, use this command to bind the xlf libraries to the Fortran
  698.     objects:
  699.  
  700.        $ ld -bh:4 -T512 -H512 <your objects> -o intermediat.o \
  701.          -bnso -bI:/lib/syscalls.exp -berok -lxlf -bexport:/usr/lib/libg.exp \
  702.          -lg -bexport:<your export file>
  703.  
  704.     The argument -bexport:<your export file> specifies a file with the
  705.     name of all entry points that are to be visible outside the intermediate 
  706.     module.  Put one entrypoint name on a line.  The -bI:/lib/libg.exp line 
  707.     is required for proper functioning of the program.  The -berok argument 
  708.     tells the binder that it is ok to have unresolved references, at least 
  709.     at this time (you would think -r would work here, but it doesn't seem to).  
  710.     The -bnso argument causes the required modules to be imported
  711.     into the object.  The -lxlf, of course, is the xlf library.
  712.  
  713.     Then, bind the intermediate object with the other shared libraries in
  714.     the normal fashion:
  715.  
  716.        $ ld -bh:4 -T512 -H512 <C or other modules> intermediate.o \
  717.          /lib/crt0.o -lm -lc
  718.  
  719.     Note the absence of -berok.  After this link, all references should
  720.     be resolved (unless you're doing a multistage link and making another
  721.     intermediate).
  722.  
  723.     NOTE THE ORDER OF MODULES.  This is extremely important if, for example,
  724.     you had a subroutine named "load" in your Fortran stuff.  Putting the
  725.     C libraries before the intermediate module would make the C "load"
  726.     the operable definition, rather than the Fortran version EVEN THOUGH 
  727.     THE FORTRAN MODULE HAS ALREADY BEEN THROUGH A LINK AND ALL REFERENCES 
  728.     TO THE SYMBOL ARE CONTAINED IN THE FORTRAN MODULE.  This can
  729.     be extremely difficult to find (trust me on this one :-)  Is this
  730.     a bug, a feature, or what?
  731.     
  732.     [As mentioned in section 2.03 of this article, it is a feature that you
  733.     can replace individual objects in linked files, ed.]
  734.  
  735.     The result will be a slightly larger object than normal.  (I say slightly
  736.     because mine went up 5%, but then it's a 2 MB object :-)
  737.  
  738.  
  739. Comments & Caveats:
  740.  
  741.    From the documentation the -r argument to the linker should do what
  742.    -berok does.  It does not.  Very strange results come from using the
  743.    -r argument.  I have not been able to make -r work in a sensible manner
  744.    (even for intermediate links which is what it is supposed to be for).
  745.  
  746.        Note from Mike Heath (mike@pencom.com):
  747.  
  748.        'ld -r' is essentially shorthand for 'ld -berok -bnogc -bnoglink'.
  749.        Certainly, using -berok with an export file (so garbage collection
  750.        can be done) is preferable to ld -r, but the latter is easier.
  751.  
  752.    When binding an intermediate module, use an export file to define the
  753.    entry points you want visible in the later link.  If you don't do this,
  754.    you'll get the dreaded "unresolved reference" error.  Import files name
  755.    entry points that will be dynamically resolved (and possibly where).
  756.  
  757.    If you are in doubt about what parameters or libraries to link, use the
  758.    -v arg when linking and modify the exec call that shows up into 
  759.    an ld command.  Some thought about the libraries will usually yield an
  760.    idea of when to use what.  If you don't know what an argument is for,
  761.    leave it in.  It's there for a purpose (even if you don't understand it).
  762.  
  763.    Watch the order of external definitions (ie, libraries) when more than
  764.    one version of a routine may show up, eg "load".  The first one defined
  765.    on the ld command line is the winner.  
  766.  
  767.    The getenv (and system and signal) problem is a problem that started out
  768.    minor, got somewhat worse in 3003 and, eventually will be correctly fixed.
  769.    Basically, you should extract the 3002 version of these three routines
  770.    from xlf.a before doing the update and save them away, then link these
  771.    routines in if you use these Fortran system services.  
  772.  
  773.  
  774. ------------------------------
  775.  
  776. Subject: 3.03: How do I check if a number is NaN?
  777. From: sdl@glasnost.austin.ibm.com (Stephen Linam)
  778.  
  779. NaN is "Not a Number".  It arises because the RISC System/6000 uses
  780. IEEE floating point arithmetic.
  781.  
  782. To determine if a variable is a NaN you can make use of the property
  783. that a NaN does not compare equal to anything, including itself.
  784. Thus, for real variable X, use
  785.  
  786.     IF (X .NE. X) THEN    ! this will be true if X is NaN
  787.  
  788. Floating point operations which cause exceptions (such as an overflow)
  789. cause status bits to be set in the Floating Point Status and Control
  790. Register (FPSCR).  There is a Fortran interface to query the FPSCR, and
  791. it is described in the XLF Fortran manuals -- I don't have the manuals
  792. right here, but look for FPGETS and FPSETS.
  793.  
  794. The IBM manual "Risc System/6000 Hardware Technical Reference - General
  795. Information" (SA23-2643) describes what floating point exceptions can
  796. occur and which bits are set in the FPSCR as a result of those exceptions.
  797.  
  798.  
  799. ------------------------------
  800.  
  801. Subject: 3.04: Some info sources on IEEE floating point.
  802.  
  803. 1. ANSI/IEEE STD 754-1985 (IEEE Standard for Binary Floating-Point
  804.    Arithmetic) and ANSI/IEEE STD 854-1987 (IEEE Standard for
  805.    Radix-Independent Floating-Point Arithmetic), both available from IEEE. 
  806.  
  807. 2. David Goldberg, "What Every Computer Scientist Should Know About
  808.    Floating-Point Arithmetic", ACM Computing Surveys, Vol. 23, No. 1,
  809.    March 1991, pp. 5-48.
  810.  
  811. ------------------------------
  812.  
  813. Subject: 3.05: Why does it take so long to compile "hello world" with xlf? 
  814.  
  815. [read 2.07]
  816.  
  817. ------------------------------
  818.  
  819. Subject: 4.00: GNU and Public Domain software
  820.  
  821. GNU software comes from the Free Software Foundation and various other
  822. sources. A number of ftp sites archive them. Read the GNU license for 
  823. rules on distributing their software.
  824.  
  825. Lots of useful public domain software have been and continue to be ported
  826. to the RS/6000. See below for ftp or download information.
  827.  
  828. ------------------------------
  829.  
  830. Subject: 4.01: How do I find sources?
  831. From: jik@GZA.COM (Jonathan Kamens)
  832.  
  833. There is a newsgroup devoted to posting about how to get a certain
  834. source, comp.sources.wanted.  An archive of information about sources,
  835. including FTP sites is available from
  836.  
  837. ------------------------------
  838.  
  839. Subject: 4.02: Are there any ftp or WWW sites?
  840.  
  841. SMIT-installable precompiled packages of popular freeware for AIX 4.x at
  842. <http://www-frec.bull.com/>.  Download the ".exe" files with your WWW
  843. browser. These are auto-uncompressing files, just like on PCs (it uses
  844. similar technology to PKZIP). Mark the file as executable (chmod +x),
  845. then execute it to generate a .bff file. The .bff file can then be
  846. installed using "smit install_latest". For more information
  847. read the INSTALL.txt file on the server.
  848.  
  849. There are mirrors of this site at http://www.bull.de/ and
  850. http://ftp.univie.ac.at/aix/.
  851.  
  852. The package explicitly referenced below are ones Ciaran consideres
  853. "solid."  That is, the binary has been "tested by lots of people."
  854.  
  855. Bull provides many other freeware packages as well.  If you use the
  856. service,  be sure and thank Ciaran and Bull.
  857.  
  858. Below are some ftp sites that are supposed to have RS/6000 specific
  859. software.  I haven't verified all the entries.
  860.  
  861. US sites:
  862. <ftp://aixpdslib.seas.ucla.edu/pub/>
  863. <ftp://aix.boulder.ibm.com/>
  864. <ftp://software.watson.ibm.com/>
  865.  
  866. European sites:
  867. <ftp://nic.funet.fi/pub/unix/AIX/RS6000/>
  868. <ftp://ftp.uni-stuttgart.de/sw/rs_aix32/>
  869.  
  870. The first one is dedicated to software running on AIX.  It might not
  871. always be the latest versions of the software, but it has been ported
  872. to AIX (normally AIX version 3 only).  Please use the European sites
  873. very sparingly.  They are primarily to serve people in Europe and most
  874. of the software can be found in the US sites originally.
  875.  
  876. The remaining sites are simply ones that archie indicated contained
  877. AIX related materials.
  878.  
  879. <ftp://ftp.u.washington.edu/pub/RS6000/>
  880. <ftp://aixive.unb.ca/>
  881. <ftp://ftp-aix.polytechnique.fr/pub/binaries/rios/>
  882.  
  883. ------------------------------
  884. Subject: 4.03: Why does "install"ing software I got from the net fail?
  885.  
  886. This answer was moved to section 2.22
  887.  
  888. ------------------------------
  889.  
  890. Subject: 4.04: GNU Emacs
  891.  
  892. A prebuilt installp (smit) installable package is available from
  893. <http://www-frec.bull.com/>.
  894.  
  895. If you get a segmentation fault in GNU EMACS 19.* during hilit19 use,
  896. you can set locale to C (export LC_ALL=C) to get around the AIX bug.
  897.  
  898. Version 18.57 of GNU Emacs started to have RS/6000 support.  Use
  899. s-aix3-2.h for AIX 3.2. Emacs is going through rapid changes recently.
  900. Current release is 19.x.
  901.  
  902. Emacs will core-dump if it is stripped, so don't strip when you install
  903. it.  You can edit a copy of the Makefile in src replacing all 'install -s' 
  904. with /usr/ucb/install.
  905.  
  906. ------------------------------
  907.  
  908. Subject: 4.05: gcc/gdb
  909.  
  910. GNU C version 2.0 and later supports the RS/6000, and compiles straight
  911. out of the box on AIX 3 and AIX 4.1 and 4.2.  You may, however,
  912. experience that compiling it requires large amounts of paging space.
  913.  
  914. On AIX 4.3, compiling gcc appears to be much more difficult due to
  915. changes for the 64 bit environment. A precompiled gcc is available in
  916. the form of egcs in the Bull archive at <http://www-frec.bull.com/>.
  917.  
  918. From: Ciaran Deignan <Ciaran.Deignan@bull.net>
  919.  
  920. Note:
  921.   - there is a link problem on AIX 4.3. Until I find a way of building
  922.     a distribution on AIX 4.3, you'll have to use 'ld'.
  923.   - The package gnu.egcs-1.1.0.0.exe does not contain the C++ compiler
  924.     (G++). However since you can't link a G++ object file with 'ld',
  925.     this is just part of the same problem.
  926.  
  927. [Editor's note: from the latest postings it appears that the latest
  928. (post 1.1b) egcs snapshots fixes the problem with collect2. The problem
  929. here is that there are no binary distributions yet, one has to bootstrap
  930. this version using IBM's C compiler.]
  931.  
  932. From: Brent Burkholder <bburk@bicnet.net>
  933.  
  934. In order to compile and link using egcs on AIX you first
  935. need to download and apply fix APAR IX87327
  936. from
  937. <http://service.boulder.ibm.com/cgi-bin/support/rs6000.support/downloads>
  938. Looking up the APAR # should allow you to download
  939. bos.rte.bind_cmds.4.3.2.2 which fixes all problems.
  940.  
  941. ------------------------------
  942.  
  943. Subject: 4.06: GNU Ghostscript 
  944.  
  945. A prebuilt installp (smit) installable package is available from
  946. <http://www-frec.bull.com/>.
  947.  
  948. The PostScript interpreter GNU Ghostscript Version 2.3 and later supports
  949. the RS/6000 and can be found on various ftp sites. Current version is 2.6.1.
  950.  
  951. Compile time problems:
  952.   Compile idict.c and zstack.c _without_ optimization, add the following
  953.   to the Makefile:
  954.  
  955.   idict.o: idict.c
  956.         $(CC) -c idict.c
  957.  
  958.   zstack.o: zstack.c
  959.         $(CC) -c zstack.c
  960.  
  961. Run time problems:
  962.   Running ghostview-1.5 with ghostscript-2.6.1, I get 
  963.    gs: Malformed ghostview color property.
  964.   Solution: replace buggy version of ghostscript-2.6.1 X11 driver
  965.   with at least 2.6.1pl4 
  966.  
  967. ------------------------------
  968.  
  969. Subject: 4.07  TeX - Document processing
  970. From: "Patrick TJ McPhee" <ptjm@ican.net>
  971.  
  972. TeX can be retrieved via ftp from the comprehensive TeX archive
  973. network (CTAN). The principle sites are
  974. ftp.tex.ac.uk (UK)
  975. ftp.dante.de  (Deutschland)
  976. ftp.tug.org  (USA)
  977. but there are many mirrors. finger ctan@ftp.tex.ac.uk for a list.
  978.  
  979. ------------------------------
  980.  
  981. Subject: 4.08  Perl - Scripting language
  982.  
  983. A prebuilt installp (smit) installable package is available from
  984. <http://www-frec.bull.com/>.
  985.  
  986. If you want the source code, <http://www.perl.com/perl/> is good place
  987. to start.
  988.  
  989. As of AIX 4.3.3, perl is packaged with AIX but not supported.
  990.  
  991. ------------------------------
  992.  
  993. Subject: 4.09: X-Windows
  994.  
  995. AIX 4.x ships with X11R5 and Motif 1.2.
  996.  
  997. On AIX 3.2 the base version has X11R4 and Motif 1.1 and the extended
  998. version has X11R5 as AIXwindows 1.2.3.  See question 1.500 for more
  999. information about determining your revision.
  1000.  
  1001. AIXwindows version 1.2.0 (X11rte 1.2.0) is X11R4 with Motif 1.1
  1002. AIXwindows version 1.2.3 (X11rte 1.2.3) is X11R5 with Motif 1.1
  1003. 'lslpp -h X11rte.motif1.2.obj' should tell you if you are
  1004. running Motif 1.2.
  1005.  
  1006. ------------------------------
  1007.  
  1008. Subject: 4.10  Bash - /bin/ksh alternative from FSF
  1009.  
  1010. Bash is an alternative to ksh and is availible from prep.ai.mit.edu
  1011. and places that mirror the GNU software.  /etc/security/login.cfg
  1012. needs to be modified if this will be used as a default shell.
  1013.  
  1014. A prebuilt installp (smit) installable package is available from
  1015. <http://www-frec.bull.com/>.
  1016.  
  1017. [Editor's note: bash's command line expansion and new
  1018.  meta-expressions make it an absolute "must" for system
  1019.  administrators]
  1020. ------------------------------
  1021.  
  1022. Subject: 4.11: Elm
  1023.  
  1024. A very nice replacement for mail. Elm should be pretty straightforward,
  1025. the only thing to remember is to link with -lcurses as the only
  1026. curses/termlib library. You may also run into the problem listed under
  1027. point 2.13 above.
  1028.  
  1029. A prebuilt installp (smit) installable package is available from
  1030. <http://www-frec.bull.com/>.
  1031.  
  1032. ------------------------------
  1033.  
  1034. Subject: 4.12: Oberon 2.2
  1035. From: afx@muc.ibm.de (Andreas Siegert)
  1036.  
  1037. Oberon is Wirth's follow on to Modula-2, but is not compatible. A free
  1038. version of Modula-3 is available from DEC/Olivetti at
  1039. gatekeeper.dec.com. This is not a Modula-2 replacement but a new
  1040. language. There are currently two M2 compilers for the 6000 that I
  1041. know of. One from Edinburgh Portable Compilers, +44 31 225 6262 (UK)
  1042. and the other from Gardens Point is availible through A+L in
  1043. Switzerland (+41 65 520311) or Real Time Associates in the UK
  1044. (info@rtal.demon.co.uk).
  1045.  
  1046. Oberon can be obtained via anonymous ftp from neptune.inf.ethz.ch
  1047. (129.132.101.33) under the directory Oberon/RS6000 or gatekeeper.dec.com
  1048. (16.1.0.2).
  1049.  
  1050. ------------------------------
  1051.  
  1052. Subject: 4.13: Kermit - Communications
  1053. From: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  1054.  
  1055. Available for all versions of AIX on RS/6000, PowerPC, PS/2, RT PC,
  1056. and 370-Series mainframes.  For complete information on Kermit software
  1057. for AIX and hundreds of other platforms, visit the Kermit Web site:
  1058.  
  1059.   <http://www.columbia.edu/kermit/>
  1060.  
  1061. C-Kermit 6.0 was announced November 30, 1996:
  1062.  
  1063.   <http://www.columbia.edu/kermit/ck60.html>
  1064.  
  1065. The nonprofit Kermit Project is funded primarily by manual sales.
  1066. For C-Kermit 6.0 the manual is the new second edition of "Using C-Kermit":
  1067.  
  1068.   <http://www.columbia.edu/kermit/ck60manual.html>
  1069.  
  1070. For RS/6000 and PowerPC with AIX 3.x or 4.x:
  1071.  
  1072.   <ftp://kermit.columbia.edu/kermit/archives/cku192.tar.Z> (or .gz)
  1073.  
  1074. Uncompress, untar (tar xvf cku192.tar) then:
  1075.  
  1076.   make rs6aix32c  <--  For AIX 3.x
  1077.   make rs6aix41c  <--  For AIX 4.x
  1078.  
  1079. This produces an exutable called "wermit".  Before installing, read the
  1080. instructions in ckuins.doc from the tar file.
  1081.  
  1082. If you don't have a C compiler, you can get binaries at:
  1083.  
  1084.   <http://www.columbia.edu/kermit/ck60ubin.html>
  1085.  
  1086. Send questions to kermit-support@columbia.edu.
  1087.  
  1088. ------------------------------
  1089.  
  1090. Subject: 4.14: Gnu dbm
  1091. From: doug@cc.ysu.edu (Doug Sewell)
  1092.  
  1093. Here's the fixes for RS/6000's:
  1094.  
  1095. apply this to testgdbm.c:
  1096. 158c158
  1097. <   char opt;
  1098. ---
  1099. >   int opt;
  1100. 166c166
  1101. <   while ((opt = getopt (argc, argv, "rn")) != -1)
  1102. ---
  1103. >   while ((opt = getopt (argc, argv, "rn")) != EOF)
  1104.  
  1105. Apply this to systems.h:
  1106. 111a112,114
  1107. > #ifdef RS6000
  1108. > #pragma alloca
  1109. > #else
  1110. 112a116
  1111. > #endif
  1112.  
  1113. To compile, edit the Makefile.  Set CC to bsdcc (see /usr/lpp/bos/bsdport
  1114. if you don't have 'bsdcc' on your system) and set CFLAGS to -DRS6000 and
  1115. whatever options (-g, -O) you prefer.  Don't define SYSV.
  1116.  
  1117. ------------------------------
  1118.  
  1119. Subject: 4.15  tcsh - an alternative shell
  1120. From: cordes@athos.cs.ua.edu (David Cordes)
  1121.  
  1122. tcsh is available from <ftp://ftp.deshaw.com/pub/tcsh>
  1123. Compiles with no problems. You must edit /etc/security/login.cfg to
  1124. permit users to change to this shell (chsh), adding the path where the
  1125. shell is installed (in my case, /usr/local/bin/tcsh).
  1126.  
  1127. >From: "A. Bryan Curnutt" <bryan@Stoner.COM>
  1128.  
  1129. Under AIX 3.2.5, you need to modify the "config.h" file, changing
  1130.     #define BSDSIGS
  1131. to
  1132.     #undef BSDSIGS
  1133.  
  1134. ------------------------------
  1135.  
  1136. Subject: 4.16: Kyoto Common Lisp
  1137.  
  1138. The sources are available from cli.com. The kcl package is the needed
  1139. base; also retrieve the latest akcl distribution. akcl provides a
  1140. front-end that "ports" the original kcl to a number of different
  1141. platforms. The port to the 6000 worked with no problems. However, you
  1142. must be root for make to work properly with some memory protection
  1143. routines.
  1144.  
  1145. ------------------------------
  1146.  
  1147. Subject: 4.17  Tcl/Tk - X-Windows scripting
  1148.  
  1149. Current versions: Tcl 8.0b2 and Tk 8.0b2.  They are available from
  1150. <ftp://ftp.sunlabs.com/pub/tcl/>. The Tcl/Tk web page is at
  1151. <http://sunscript.sun.com/>.
  1152.  
  1153. Prebuilt installp (smit) installable packages for several versions of Tcl and
  1154. Tk are available from <http://www-frec.bull.com/>.
  1155.  
  1156. ------------------------------
  1157.  
  1158. Subject: 4.18: Expect
  1159. From: Doug Sewell <DOUG@YSUB.YSU.EDU>
  1160.    
  1161. To build the command-interpreter version, you must have the tcl library
  1162. built successfully. The expect library doesn't require tcl.  Note:
  1163. Expect and its library are built with bsdcc, so applications using
  1164. the library probably also need to be developed with bsdcc.
  1165.  
  1166. I ftp'd expect from ftp.cme.nist.gov.
  1167.  
  1168. You need to change several lines in the makefile.  First you need
  1169. to customize source and target directories and files:
  1170. #
  1171. TCLHDIR = /usr/include
  1172. TCLLIB = -ltcl
  1173. MANDIR = /usr/man/manl               (local man-pages)
  1174. MANEXT = l
  1175. BINDIR = /u/local/bin
  1176. LIBDIR = /usr/lib
  1177. HDIR = /usr/include
  1178. ...
  1179. Next set the compiler, switches, and configuration options:
  1180. #
  1181. CC = bsdcc
  1182. CFLAGS = -O
  1183. ...
  1184. PTY_TYPE = bsd
  1185. ...
  1186. INTERACT_TYPE = select
  1187. ...
  1188. Then you need to make these changes about line 90 or so:
  1189. comment out CFLAGS = $(CLFLAGS)
  1190. un-comment these lines:
  1191. CFLAGS = $(CLFLAGS) $(CPPFLAGS)
  1192. LFLAGS = ($CLFLAGS)
  1193.  
  1194. Then run 'make'.
  1195.  
  1196. You can't run some of the examples without modification (host name,
  1197. etc).  I don't remember if I ran all of them or not, but I ran enough
  1198. that I was satisfied it worked.
  1199.  
  1200. ------------------------------
  1201.  
  1202. Subject: 4.19: Public domain software on CD
  1203. From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
  1204.  
  1205. The Prime Time Freeware CD collection is a package of two CD's and docs
  1206. containing over THREE GIGABYTES of compressed Unix software. It costs $69
  1207. >from Prime Time Freeware, 415-112 N. Mary Ave., Suite 50, Sunnyvale, CA
  1208. 94086. Phone 408-738-4832 voice, 408-738-2050 fax. No internet orders as
  1209. far as I can tell.
  1210.  
  1211. I've extracted and compiled a number of the packages, and all have worked
  1212. flawlessly so far on my 220. Everything from programming languages to 3D
  1213. solid modeling is in this bonanza!
  1214.  
  1215. [Ed: The O'Reilly book, Unix Power Tools, also contains a CD-ROM with lots
  1216. of useful programs compiled for the RS/6000, among other platforms.]
  1217.  
  1218. ------------------------------
  1219.  
  1220. Subject: 4.20: Andrew Toolkit
  1221. From: Gary Keim <gk5g+@andrew.cmu.edu>
  1222.  
  1223. The Andrew Toolkit Consortium of Carnegie Mellon University's School of
  1224. Computer Science has released new versions of the Andrew User
  1225. Environment, Andrew Toolkit, and Andrew Message System.
  1226.  
  1227. The Andrew User Environment (AUE) is an integrated set of applications
  1228. beginning with a 'generic object' editor, ez, a help system, a system
  1229. monitoring tool (console), an editor-based shell interface (typescript),
  1230. and support for printing multi-media documents. 
  1231.  
  1232. The Andrew Toolkit (ATK) is a portable user-interface toolkit that runs
  1233. under X11. It provides a dynamically-loadable object-oriented
  1234. environment wherein objects can be embedded in one another. Thus, one
  1235. could edit text that, in addition to containing multiple fonts, contains
  1236. embedded raster images, spreadsheets, drawing editors, equations, simple
  1237. animations, etc. These embedded objects can also be nested.
  1238.  
  1239. The Andrew Message System (AMS) provides a multi-media interface to mail
  1240. and bulletin-boards. AMS supports several mail management strategies
  1241. and implements many advanced features including authentication, return
  1242. receipts, automatic sorting of mail, vote collection and tabulation,
  1243. enclosures, audit trails of related messages, and subscription
  1244. management. It has interfaces that support ttys, personal computers, 
  1245. and workstations.
  1246.  
  1247. Release 5.1 of Andrew contains many bug fixes and updates. There is now
  1248. support for the new Internet MIME (Multipurpose Internet Mail Extensions)
  1249. standards for multipart, and multimedia mail. For more information on
  1250. MIME, please see the CHANGES files in the ftp directory on
  1251. emsworth.andrew.cmu.edu.
  1252.  
  1253. This release can be obtained as follows. The sources are available via
  1254. anonymous ftp from export.lcs.mit.edu (18.30.0.238) in the
  1255. ./contrib/andrew tree. For details, see ./contrib/andrew/README.
  1256.  
  1257. PATCH for AIX3.2: A patch to the AUIS 5.1 sources can be ftp'ed from
  1258. emsworth.andrew.cmu.edu (128.2.45.40) in ./aixpatch. For those without
  1259. internet access, a 3.5" diskette can be ordered for a nominal fee of $10
  1260. by sending, or faxing, a purchase order to the Consortium address below.
  1261.  
  1262. Andrew, as well as a variety of other CMU software, can also be ftp'ed
  1263. >from emsworth.andrew.cmu.edu (128.2.30.62). Those with AFS access look
  1264. at /afs/andrew.cmu.edu/itc/sm/releases/X.V11R5/ftp.
  1265.  
  1266. Remote Andrew Demo Service 
  1267.  
  1268. This network service allows you to run Andrew Toolkit applications
  1269. without obtaining or compiling the Andrew software. You need a host
  1270. machine running X11 on the Internet. A simple "finger" command will let
  1271. you experience ATK applications firsthand. You'll be able to compose
  1272. multimedia documents, navigate through the interactive Andrew Tour, and
  1273. use the Andrew Message System to browse through CMU's three thousand
  1274. bulletin boards and newsgroups.
  1275.  
  1276. To use the Remote Andrew Demo service, run the following command:
  1277.  
  1278.     finger help@atk.itc.cmu.edu 
  1279.  
  1280. The service will give you further instructions.
  1281.  
  1282. Information Sources
  1283.  
  1284. Your bug reports are welcome; kindly send them to
  1285. info-andrew-bugs@andrew.cmu.edu and we will periodically post a status
  1286. report to the mailing list info-andrew@andrew.cmu.edu. To be added to
  1287. the mailing list or make other requests, send mail to
  1288. info-andrew-request@andrew.cmu.edu.
  1289.  
  1290. We also distribute the following related materials:
  1291.  
  1292. ATK and AMS sources and binaries on CDROM. Binaries are available
  1293. for the following system types: 
  1294.  
  1295.             IBM RiscSystem/6000 
  1296.         Sun SparcStation 
  1297.         HP 700 Series 
  1298.         DECstation 
  1299.  
  1300. ATK and AMS sources on QIC and Iotamat tapes Hardcopies of the
  1301. documentation for ATK and AMS. Introductory video tape: Welcome to
  1302. Andrew: An Overview of the Andrew System. Technical video tape: The
  1303. Andrew Project: A Session at the Winter 1988 Usenix Conference.
  1304.  
  1305. More information about these materials is available from:
  1306.  
  1307.     Information Requests
  1308.     Andrew Toolkit Consortium
  1309.     Carnegie Mellon University
  1310.     4910 Forbes Avenue, UCC 214
  1311.     Pittsburgh, PA 15213-3890
  1312.     USA
  1313.     phone: +1-412-268-6710
  1314.     fax: +1-412-621-8081
  1315.     info-andrew-request@andrew.cmu.edu
  1316.  
  1317. There is also a netnews distribution list, comp.soft-sys.andrew, which
  1318. is identical to the info-andrew list except that it does not support the
  1319. multi-media capabilities of info-andrew.
  1320.  
  1321. ------------------------------
  1322.  
  1323. Subject: 4.21: sudo
  1324.  
  1325. Sudo (superuser do) allows a system administrator to give certain users (or
  1326. groups of users) the ability to run some (or all) commands as root while
  1327. logging all commands and arguments. Sudo operates on a per-command basis, it
  1328. is not a replacement for the shell. 
  1329.  
  1330. The latest version of sudo is cu-sudo v1.5.  There is a web page for sudo at
  1331. <http://www.courtesan.com/courtesan/products/sudo/sudo.html>.  The program
  1332. itself can be obtained from <ftp://ftp.courtesan.com/pub/sudo/>.  Sudo's
  1333. author, Todd Miller < Todd.Miller@courtesan.com> reports that sudo works on
  1334. both AIX 3.2.X and 4.1.X. 
  1335.  
  1336.  
  1337. ------------------------------
  1338.  
  1339. Subject: 4.22: Flexfax/HylaFax and other fax software
  1340. From: Christian Zahl <czahl@cs.tu-berlin.de>
  1341.  
  1342. Sam Leffler has released a new version of FlexFax called HylaFax.  It
  1343. is availible from <ftp://sgi.com/sgi/fax/>.  There is a HlyaFax web
  1344. page at <http://www.vix.com/hylafax/>.  Version V3.0pl1
  1345. supported many types of Class 1/2 fax modems and several UNIX systems
  1346. including AIX 3.2.3 or greater.  There is also a fax modem review
  1347. document at the same site as <ftp://sgi.com/pub/fax/bakeoff>. The FlexFax
  1348. related files on sgi.com are replicated on ftp.bsc.no as well.
  1349.  
  1350. >From: michael@hal6000.thp.Uni-Duisburg.DE (Michael Staats)
  1351.  
  1352. We're using mgetty+sendfax for the basic modem I/O, I wrote a printer
  1353. backend for the modem so that users can send faxes as easy as they print
  1354. postscript. I also wrote a little X interface composer to generate a
  1355. fax form that makes sending faxes very easy. You can find these
  1356. programs at hal6000.thp.Uni-Duisburg.DE under /pub/source.
  1357.  
  1358. program                comment
  1359.  
  1360. mgetty+sendfax-0.14.tar.gz    basic modem I/O, needs hacking for AIX
  1361. X11/xform-1.1.tar.gz             small and simple X interface composer
  1362.                 with an example fax form. Needs
  1363.                 libxview.a incl. headers.
  1364. faxiobe.tar.gz            fax backend, needs configuring for
  1365.                 your local site
  1366.  
  1367. If you need a binary version of libxview.a and the headers you'll find
  1368. them under /pub/binaries/AIX-3-2/lxview.tar.gz.
  1369.  
  1370. ------------------------------
  1371.  
  1372. Subject: 4.23:  lsof - LiSt Open Files
  1373. From: abe@purdue.edu (Vic Abell)
  1374.  
  1375. Q. How can I determine the files that a process has opened?
  1376. Q. How can I locate the process that is using a specific network address?
  1377. Q. How can I locate the processes that have files open on a file system?
  1378.  
  1379. A. Use lsof (LiSt Open Files).
  1380.  
  1381. From: "Juan G. Ruiz Pinto" <jgruiz@cyber1.servtech.com>
  1382.  
  1383. Lsof is available via anonymous ftp from
  1384. <ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof.tar.Z>
  1385. (for the most current version). There are binary distributions in the
  1386. "binary" directory.
  1387.  
  1388. A prebuilt installp (smit) installable package is available from
  1389. <http://www-frec.bull.com/>. The installation scripts in this package
  1390. automatically creates a group "kmem" during the install
  1391. and uses "acledit" to allow the kmem group to read /dev/mem and /dev/kmem.
  1392. This configuration is recommended by Vic Abell <abe@purdue.edu>, the
  1393. author of lsof.
  1394.  
  1395. ------------------------------
  1396.  
  1397. Subject: 4.24:  popper - POP3 mail daemon
  1398.  
  1399. The POP server is available via anonymous ftp from 
  1400. ftp.qualcomm.com:/quest/unix/servers/popper
  1401.   The makefile supports AIX
  1402. ftp.CC.Berkeley.EDU (128.32.136.9, 128.32.206.12).
  1403.   There are two versions in the pub directory: a compressed tar file
  1404.   popper-version.tar.Z and a Macintosh StuffIt archive in BinHex format
  1405.   called MacPOP.sit.hqx.
  1406.  
  1407. Problems building some versions of popper can sometimes be resolved by
  1408. compiling with bsdcc or -D_BSD.
  1409.  
  1410. The pine 3.95 package on <http://www-frec.bull.com/> contains "plug
  1411. and play" support for both POP3 and IMAP mail reading protocols.  You
  1412. can also get a compiled version of qpopper 2.2 there also.
  1413.  
  1414. ------------------------------
  1415.  
  1416. Subject: 4.26: mpeg link errors version 2.0
  1417. From: Nathan Lane <nathan@seldon.foundation.tricon.com>
  1418.  
  1419. .XShmCreateImage
  1420. .XShmDetach
  1421. .XShmAttach
  1422. .XShmGetEventBase
  1423. .XShmPutImage
  1424. .XShmQueryExtension
  1425.  
  1426. ... are for the Shared Memory extension of the X server.
  1427. You can either choose to build it with shared memory or without.  I
  1428. always do it without the performance increase is not really
  1429. incredible, except on something like a 2x0 machine with the local bus
  1430. graphics adapter.  Just take out "DSH_MEM" in the CFLAGS in the
  1431. makefile for mpeg_play.  There is more information about shared memory
  1432. link errors in section 1.513.
  1433.  
  1434. Also, in the module "video.c" for mpeg_play it will complain about not
  1435. having enough memory to fully optimize one of the loops.  You can get
  1436. around that by specificying "qmaxmem=8000" in your cflags line, BUT,
  1437. the extra optimization does little good in my tests.
  1438.  
  1439. ------------------------------
  1440.  
  1441. Subject: 4.27: NNTP, INN
  1442.  
  1443. Link errors compiling nntp may occur because your machine lacks the
  1444. "patch" command.  Patch can be obtained from GNU repositories.  See question
  1445. 4.29 for more information on patch.
  1446.  
  1447. ------------------------------
  1448.  
  1449. Subject: 4.28: Zmodem - File transfer
  1450.  
  1451. RZSZ is Chuck Forsberg's script for Z-modem. It is available by ftp at
  1452. <ftp://oak.oakland.edu/pub/unix-c/xyzmodem/rzsz9305.tar.Z> or
  1453. directly from Forsberg at Omen Technology BBS at 503-621-3746.
  1454.  
  1455. Hints:
  1456. 0. Build with "make posix"
  1457. 1. Use an 8-bit clean version of rlogin or telnet (Note: below)
  1458. 2. Set the system to be transparent, I use "terminal download" 
  1459. 3. Ensure hardware flow-control
  1460.  
  1461. Note, carlson@xylogics.com (James Carlson) suggests: Rlogin is
  1462. "slightly" unclean -- if an FF FF 73 73 appears in the datastream, it
  1463. can be ripped out by rlogind as a 'window size change' request.
  1464.  
  1465. [Ed note: The important part is using an 8-bit clean application,
  1466. since there are several implemenations of rlogin and telnet availible
  1467. you may need to try both and hunt down manuals to find the right flags
  1468. for your system]
  1469.  
  1470. ------------------------------
  1471.  
  1472. Subject: 4.29: Patch - automated file updates
  1473.  
  1474. AIX 3.2.5 does not ship with patch, a utility to apply the differences
  1475. between two files to make them identical.  This tool is often used to
  1476. update source code.
  1477.  
  1478. <ftp://ftp.x.org/pub/R6untarred/xc/util/patch/>
  1479. <ftp://prep.ai.mit.edu/pub/gnu/patch-2.1.tar.gz>
  1480.  
  1481. ------------------------------
  1482.  
  1483. Subject: 4.30: XNTP - network time protocol, synchronizes clocks
  1484. From: Joerg Schumacher <schuma@ips.cs.tu-bs.de>
  1485.  
  1486.    AIX 4:   xntpd in bos.net.tcp.client
  1487.    source:  ftp://ftp.udel.edu/pub/ntp/
  1488.    WWW:     http://www.eecis.udel.edu/~ntp/
  1489.  
  1490.  
  1491. ------------------------------
  1492.  
  1493. Subject: 4.31: GNU Screen and AIX 4.1.x
  1494.  
  1495. Once again,  binaries can be had from <http://www-frec.bull.com/>.
  1496.  
  1497. ------------------------------
  1498.  
  1499. Subject: 4.32: SCSI scanner software
  1500.  
  1501. There is the SANE project that strives to deliver an open source scanner
  1502. solution for Unix:
  1503.  
  1504. <http://www.mostang.com/sane/>
  1505.  
  1506. ------------------------------
  1507.  
  1508. Subject: 4.33: Pager/Paging software
  1509.  
  1510. There is information on Paging, Paging programs and  listing of the
  1511. Archive sites to download at the web site:
  1512. <ftp://ftp.airnote.net:/pub/paging-info/ixo.faq>.
  1513.  
  1514. HylaFAX (see 4.22) supports sending messages to alphanumeric pagers.
  1515.  
  1516. Commercially there is: AlphaPage(r) MD2001 from Information Radio
  1517. Technology, Inc. in Cleveland, OH. 
  1518.  
  1519. ------------------------------
  1520.  
  1521. Subject: 4.34: JAVA Development Kit
  1522. From: Curt Finch <curt@tkg.com>
  1523.  
  1524. <http://ncc.hursley.ibm.com/javainfo/>
  1525.  
  1526. ------------------------------
  1527.  
  1528. Subject: 4.35: Sendmail
  1529.  
  1530. <ftp://ftp.sendmail.org/sendmail/>
  1531.  
  1532. If you want to use SRC to start and stop BSD sendmail,  do the following 
  1533. after installing it:
  1534.  
  1535. chssys -s sendmail -S -n 15 -f 9 -a -d99.100
  1536.  
  1537. This tells SRC that sendmail may be stopped with signals 15 and 9.  It also
  1538. arranges for sendmail not to daemonize itself,  since it will run under SRC.
  1539.  
  1540. ------------------------------
  1541. Subject: 5.00: Third party products
  1542.  
  1543. [ Ed.: Entries in this section are edited to prevent them from looking
  1544.   like advertising. Prices given may be obsolete. Companies mentioned
  1545.   are for reference only and are not endorsed in any fashion. ]
  1546.  
  1547. ------------------------------
  1548.  
  1549. Subject: 5.01: Non-IBM AIX hosts.
  1550.  
  1551. Bull <http://www.bull.com/> manufactures and sells AIX systems.  To
  1552. find a distributor in your country,  check the web page at
  1553. <http://www.bull.com/contact/cscall.htm> and/or
  1554. <http://www.bull.com/bullsite/bsit01_a.htm>.
  1555.  
  1556. Other vendors and manufactures include Motorola, Harris, General
  1557. Automation and Apple.
  1558.  
  1559. Kenetics Technology Inc.
  1560. 35 Campus Drive
  1561. Edison NJ 08837
  1562. Contact : Brian Walsh
  1563. Phone - 908-805-0998
  1564. Fax  - 908-346-1288
  1565.  
  1566. Manufactures a Power PC based RS-6000 clone that runs AIX versions 
  1567. 3.2.5 and 4.1.4.
  1568.  
  1569. A typical configuration with a 100 MHz Power PC 601 and 32 MB RAM, and 2 
  1570. GB Hard drive, monitor, keyboard and networking is about $4995.00
  1571.  
  1572. ------------------------------
  1573.  
  1574. Subject: 5.02: Disk/Tape/SCSI
  1575. From: anonymous
  1576.  
  1577. - Most SCSI disk drives work (IBM resells Maxtor, tested Wren 6&7 myself);
  1578.   use osdisk when configuring (other SCSI disk).
  1579.  
  1580. - Exabyte: Unfortunately only the ones IBM sells are working.
  1581.   A few other tape drives will work; 
  1582.   use ostape when configuring (other SCSI tape).
  1583.  
  1584. - STK 3480 "Summit": Works with Microcode Version 5.2b
  1585.  
  1586.  
  1587. >From: bell@hops.larc.nasa.gov (John Bell)
  1588.                
  1589. In summary, third party tape drives work fine with the RS/6000 unless 
  1590. you want to boot from them. This is because IBM drives have 'extended 
  1591. tape marks', which IBM claims are needed because the standard marks 
  1592. between files stored on the 8mm tape are unreliable. These extended 
  1593. marks are used when building boot tapes, so when the RS/6000 boots, it 
  1594. searches for an IBM tape drive and refuses to boot without it.
  1595.  
  1596. >From: jrogers@wang.com (John Rogers)
  1597.  
  1598. On booting with non-IBM SCSI tape drives: I haven't tried it myself but
  1599. someone offered:
  1600.  
  1601. Turn machine on with key in secure position.
  1602. Wait until LED shows 200 and 8mm tape has stopped loading.
  1603. Turn key to service position.
  1604.  
  1605.  
  1606. >From: amelcuk@gibbs.clarku.edu (Andrew Mel'cuk)
  1607.  
  1608. The IBM DAT is cheap and works.  If you get all the patches beforehand
  1609. (U407435, U410140) and remember to buy special "Media Recognition
  1610. System" tapes (Maxell, available from APS 800.443.4461 or IBM #21F8758)
  1611. the drive can even be a pleasure to use.  You can also flip a DIP switch
  1612. on the drive to enable using any computer grade DAT tapes (read the
  1613. hardware service manual).
  1614.  
  1615. Other DAT drives also work.  I have tried the Archive Python (works) and
  1616. experimented extensively with the Archive TurboDAT.  The TurboDAT is a
  1617. very fast compression unit, is not finicky with tapes and doesn't
  1618. require the many patches that the IBM 7206 does.  Works fine with the
  1619. base AIX 3.2 'ost' driver.
  1620.  
  1621.  
  1622. >From: pack@acd.ucar.edu (Daniel Packman)
  1623.  
  1624. >>You can boot off of several different brands of non-IBM Exabytes.
  1625. >>At least TTI and Contemporary Cybernetics have done rather complete
  1626. >>jobs of emulating genuine IBM products.
  1627.  
  1628. A model that has worked for us from early AIX 3.1 through 3.2 is a TTI
  1629. CTS 8210.  This is the old low density drive.  The newer 8510 is dual
  1630. density (2.2gig and 5gig).  Twelve dip switches on the back control the
  1631. SCSI address and set up the emulation mode.  These drives have a very
  1632. useful set of lights for read-outs (eg, soft error rate, tape remaining,
  1633. tape motion, etc.).
  1634.  
  1635. ------------------------------
  1636.  
  1637. Subject: 5.03: Memory
  1638.  
  1639. Nordisk Computer Services (Portland 503-598-0111, Seattle
  1640. 206-242-7777) is reputed to have memory for use on AIX platforms.
  1641.  
  1642. 5xx & 9xx machines have 8 memory slots, 3x0s have 2, and 3x5s have
  1643. only one.  You need to add memory in pairs for the 5xx & 9xx machines
  1644. excepting the 520.
  1645. Some highend 5xx's & 9xx's get memory as 2, 4, 4+4 cards.
  1646.  
  1647. RS/6000 Models M20, 220, 230 and 250 can use "PS/2" style SIMM memory.
  1648. All have 8 SIMM sockets.  60ns or better is needed for the 250, 70ns
  1649. should be OK in the M20, 220 and 230.  The M20, 220 and 230 are limited
  1650. to 64MB of memory, the 250 is limited to 256MB.
  1651.  
  1652. 40P, C10, C20, 41T and 42T also user SIMM memory.
  1653.  
  1654. G30 & G40 have two memory slots.
  1655. J30, J40, J50, R30, R40, R50 have four memory slots. 
  1656. These eight models have cards populated with DIMM-like memory.
  1657.  
  1658. 7248 (Old 43P's) and 7043 (New 43P's) use DIMM-like memory.
  1659.  
  1660. F40, F50 & H50 use have two memory slots.
  1661.  
  1662. S70, S7A & S80 get memory "books".
  1663.  
  1664. Still unidentified: E20, E30, F30, B50, H70
  1665.  
  1666. Caveat: Do not mix manufacturers or batches in the same memory card/bank.
  1667.  
  1668. PS: [Ed's notice] I say DIMM-like memory because it won't even fit on
  1669. my PC's DIMM slots.
  1670.  
  1671. ------------------------------
  1672.  
  1673. Subject: 5.04: Others
  1674. From: anonymous
  1675.        
  1676. IBM RISC System/6000 Interface Products
  1677.  
  1678. National Instruments Corporation markets a family of instrumentation
  1679. interface products for the IBM RISC System/6000 workstation family.  The
  1680. interface family consists of three products that give the RISC
  1681. System/6000 connectivity to the standards of VMEbus, VXIbus and GPIB. 
  1682. For more information, contact National Instruments Corporation,
  1683. 512-794-0100 or 1-800-433-3488.
  1684.  
  1685. ------------------------------
  1686.  
  1687. Subject: 5.05: C++ compilers
  1688.  
  1689. Several C++ compilers are available. You can choose from Glockenspiel,
  1690. Greenhills, IBM's xlC (sold seperately :), and GNU's g++. Glockenspiel
  1691. may now be part of Computer Associates. Comeau Computing
  1692. (718-945-0009) offers Comeau C++ 3.0 with Templates. For a full
  1693. development environment there's ObjectCenter's C++ (formerly Saber
  1694. C++).
  1695.  
  1696. ------------------------------
  1697.  
  1698. Subject: 5.06: Memory leak detectors
  1699.  
  1700. IBM's xlC comes with a product called the HeapView debugger that can
  1701. trace memory problems in C and C++ code.
  1702.  
  1703. SENTINEL has full memory access debugging capabilities including detection 
  1704. of memory leaks.  Contact info@vti.com (800) 296-3000 or (703) 430-9247.
  1705.  
  1706. Insight from ParaSoft (818) 792-9941.
  1707. There is also a debug_malloc posted in one of the comp.sources groups.
  1708.  
  1709. A shareware dmalloc is available.  Details at
  1710. <http://www.letters.com/dmalloc/>.
  1711.  
  1712. TestCenter is now available for the RS/6000.  It supports AIX 3.2.5
  1713. and AIX 4.1 on POWER, POWER2 and PowerPC machines.  More information
  1714. is available from <http://www.centerline.com/>.
  1715.  
  1716. Purify (408) 720-1600 is not availible for the RS/6000.
  1717.  
  1718. ZeroFault detects memory violations and leaks without recompiling or
  1719. relinking.  Works on all RS/6000 systems running AIX 3.2.5 or later,
  1720. DCE and pthreads.  Contact The Kernel Group, Inc. +1 512 433 3333, 
  1721. email <ZeroFault@tkg.com>, <http://www.tkg.com/>.
  1722.  
  1723. ------------------------------
  1724.  
  1725. Subject: 5.07: PPP
  1726.  
  1727. PPP does not come with AIX 3.2.x (only SLIP).
  1728.  
  1729. PPP support was announced for AIX 4.1.4, see:
  1730. <http://www.austin.ibm.com/software/OS/aix414.html>
  1731.  
  1732. David Crow caught the announcement of a non-IBM ppp package that
  1733. claims to support AIX 4.x.  More information is availible from
  1734. <http://www.thoughtport.com:8080/PPP/> or
  1735. <ftp://dcssoft.anu.edu.au/pub/ppp/ppp-2.2b1.tar.gz>
  1736.  
  1737. A comercial PPP for AIX is availible from Morningstar
  1738. (sales@morningstar.com or marketing@morningstar.com) (800) 558 7827.
  1739.  
  1740. ------------------------------
  1741.  
  1742. Subject: 5.08: Graphics adapters
  1743.  
  1744. Abstract Technologies Inc. (Austin TX, 512-441-4040, info@abstract.com)
  1745. has several high performance graphics adapters for the RS/6000.
  1746. 1600x1200, 24-bit true-color, and low cost 1024x768 adapters are
  1747. available.  Retail prices are between US$1000-2000.
  1748.  
  1749. ------------------------------
  1750.  
  1751. Subject: 5.09: Training Courses
  1752.  
  1753. Email training@skilldyn.com with "help" in the body of the message for
  1754. information about how to receive a list course descriptions for AIX*
  1755. and/or UNIX* courses offered by Skill Dynamics.
  1756.  
  1757. ------------------------------
  1758.  
  1759. Subject: 5.10: Hardware Vendors
  1760.  
  1761. New & Used RS6000s, peripherals
  1762.  
  1763. Core Systems Inc
  1764. 1605 12th Ave
  1765. Seattle WA 98122 
  1766. Phone (800) 329-2449
  1767. Fax (206) 329-3799
  1768. <http://www.corsys.com/homeworld>
  1769.  
  1770. Optimus Solutions
  1771. 5825-A Peachtree Corners East
  1772. Norcross GA 30092
  1773. Phone 770-447-1951
  1774. Fax  678-291-9201
  1775. email  mark@optimussolutions.com
  1776. <http://www.optimussolutions.com/>
  1777.  
  1778. ------------------------------
  1779.  
  1780. Subject: 5.11: Debugging aides
  1781. From: Curt Finch <curt@tkg.com>
  1782.  
  1783. SCTrace reports system calls (and more) made by an AIX process.
  1784. SCTrace from SevOne Software <http://www.tkg.com>.  It is $199 and a
  1785. demo is available from <ftp://ftp.tkg.com/pub/sevone/sctrace-demo.tar.Z>.
  1786.  
  1787. ------------------------------
  1788.  
  1789. Subject: 6.00: Miscellaneous other stuff
  1790.  
  1791. Information that defies catagories.  ;-)
  1792.  
  1793. ------------------------------
  1794.  
  1795. Subject: 6.01: Can I get support by e-mail?
  1796.  
  1797. In general, no, <aixbugs@austin.ibm.com> and <services@austin.ibm.com>
  1798. are no longer supported.
  1799.  
  1800. IBM does maintain a fee based system, the AIX Support Family Services
  1801. at 1-800-CALL-AIX (1-800-225-5249) option 8.
  1802.  
  1803. In Canada:
  1804.  
  1805. Gary Tomic mentioned that Canadian customers can get support from their
  1806. BBS, cac.toronto.ibm.com at 142.77.253.16.
  1807.  
  1808. In Germany:
  1809.  
  1810. Thomas Braunbeck reported that German customers with ESS (extended
  1811. software service) contracts can get support by e-mail too. They can 
  1812. obtain information by sending mail with Subject: help to 
  1813. aixcall@aixserv.mainz.ibm.de.
  1814.  
  1815. Various flavors of service offerings are available. Contact your IBM rep
  1816. for details.
  1817.  
  1818. ------------------------------
  1819.  
  1820. Subject: 6.02: List of useful faxes
  1821.  
  1822. You can get some informative faxes by dialing IBM's Faxserver at
  1823. 1-800-IBM-4FAX. 1-415-855-4329 from outside the US.  If you're calling
  1824. for the first time, push 3 then 2 to request a list of RS/6000 related faxes.
  1825.  
  1826. IBM's AIX Support WWW site, 
  1827. <http://service.software.ibm.com/www/support/aix/index.html>,
  1828. contains many of the same documents.  Select a country or region from the
  1829. menu,  then look for "Technical Tips from IBM" on the returned page.
  1830.  
  1831. ------------------------------
  1832.  
  1833. Subject: 6.03: IBM's gopher, WWW, aftp presence.
  1834.  
  1835. There is now a new section dedicated to AIX on IBM's main web server:
  1836.  
  1837. <http://www.ibm.com/servers/aix>
  1838.  
  1839. The following are various other resources:
  1840.  
  1841. (verified Aug 9 1996 by Frank Wortner)
  1842. Thanks to Ronald S. Woan <woan@austin.ibm.com>
  1843.  
  1844. <http://service.software.ibm.com/>    (FixDist ptfs)
  1845. <ftp://software.watson.ibm.com/pub/>    (rlogin fixes & more)
  1846. <gopher://gopher.ibmlink.ibm.com>    (anonouncements & press releases)
  1847. <http://www.austin.ibm.com/>        (software, hardware, service & support)
  1848.  
  1849. General IBM information like product announcements and press releases
  1850. are available through World Wide Web at <http://www.ibm.com/>.
  1851.  
  1852. Specific information on the RISC System/6000 product line and AIX
  1853. (highlights include marketing information, technology White Papers and
  1854. the POWER 2 technology book online before it hits the presses,
  1855. searchable APAR database and AIX support FAX tips online so you don't
  1856. have to type in all those scripts) is available at
  1857. <http://www.austin.ibm.com/>
  1858.  
  1859. ------------------------------
  1860.  
  1861. Subject: 6.04: Some RS232 hints
  1862. From: graeme@ccu1.aukuni.ac.nz, sactoh0.SAC.CA.US!jak
  1863.  
  1864. Q: How do you connect a terminal to the RS232 tty ports when not using
  1865.    the standard IBM cable & terminal transposer?
  1866. A: 1- Connect pins 2->3, 3->2, 7->7 on the DB25's
  1867.    2- On the computer side, most of the time cross 6->20 (DSR, DTR).
  1868.       Some equipment may require connecting 6, 8, and 20 (DSR, DCD, DTR).
  1869.  
  1870. Also, pin 1 (FG) should be a bare metal wire and the cable should be
  1871. shielded with a connection all the way through. Most people don't run
  1872. pin 1 because pins 1 & 7 (SG) are jumpered on many equipment.
  1873.  
  1874. When booting from diskettes, the port speed is always 9600 baud.  If you
  1875. use SMIT to set a higher speed (38400 is nice) for normal use, remember
  1876. to reset your terminal before booting.
  1877.  
  1878. Q: How do you connect a printer to the RS232 tty ports
  1879. A: 1- Connect pins 2->3, 3->2, 7->7 on the DB25's
  1880.    2- On the computer side, loop pins 4->5 (CTS & RTS)
  1881.  
  1882.