home *** CD-ROM | disk | FTP | other *** search
/ ftp.mayn.de / ftp.mayn.de-pub.zip / ftp.mayn.de-pub / apple / apple_unix / Info / CAP.txt < prev    next >
Text File  |  2017-03-06  |  8KB  |  190 lines

  1. This is a copy of a posting on comp.unix.aux concerning compiling CAP
  2. for A/UX
  3.  
  4. ---------------------------------------------------------------------
  5.  
  6. /*
  7.  * First of all, a short message from someone who has followed the
  8.  * following directions
  9.  */
  10.  
  11. From dhurtt@m15t.ess.harris.com Mon Aug  2 11:27:40 1993
  12. Return-Path: <dhurtt@m15t.ess.harris.com>
  13. Received: from m15t.ess.harris.com by jagubox.gsfc.nasa.gov with smtp
  14.     (Smail3.1.28.1 #2) id m0oN1nW-0003CcC; Mon, 2 Aug 93 11:27 EDT
  15. Received: by m15t.ess.harris.com (5.64/A/UX-3.00)
  16.     id AA00228; Sat, 31 Jul 93 19:23:53 PDT
  17. Date: Sat, 31 Jul 93 19:23:53 PDT
  18. From: dhurtt@m15t.ess.harris.com (Dale Hurtt)
  19. Message-Id: <9308010223.AA00228@m15t.ess.harris.com>
  20. To: dhurtt@ic1d.harris.com, jim@jagubox.gsfc.nasa.gov
  21. Subject: Additions to CAP.txt
  22. Status: RO
  23.  
  24. I downloaded the document CAP.txt and followed the information there and
  25. thought I would pass along all of the other steps I took in order to get
  26. CAP 6.0 patch level 143 to work.
  27.  
  28. The statements about the makefile are still the same. Delete all of the 
  29. Makefiles, run gen.makes, and then make using the makefiles.
  30. Edit appletalk.h in the netat directory (it wasn't real clear which appletalk
  31. header file was being referred to) as listed in CAP.txt. The line:
  32.  
  33. short lap_proto = LAP_AUX;
  34.  
  35. needs to be added to the following files:
  36.  
  37. cap60/lib/cap/abauxddp.c
  38. cap60/applications/papif/papif.c
  39. cap60/applications/aufs/aufs.c
  40. cap60/applications/lwsrv.c
  41. cap60/contrib/lwrename.c
  42. cap60/contrib/printqueue.c
  43. cap60/samples/lwpr.c
  44. cap60/samples/tlw.c
  45. cap60/samples/atlook.c
  46. cap60/samples/getzones.c
  47. cap60/samples/isrv.c
  48. cap60/samples/ash.c
  49.  
  50. What I did was create a short script that appends the necessary line on the
  51. bottom of the files.
  52.  
  53. As CAP.txt indicates, the last change is in cap60/applications/aufs/afposenum.c
  54. where "index" needs to be changed to "idx".  Just a note - don't do global 
  55. search and replaces -- there are calls to rindex().
  56.  
  57. The instructions that come with CAP are not very clear on what steps to take --
  58. that is, until you find the reference to run make in the docs/ directory. Once
  59. install.doc is made you can print it out.
  60.  
  61. /*
  62.  * Now here's what to do and how to do it
  63.  */
  64.  
  65. Newsgroups: comp.unix.aux
  66. Path: skates.gsfc.nasa.gov!ames!haven.umd.edu!uunet!ivgate!beeble!dent
  67. From: dent@beeble.omahug.org (Dave Caplinger)
  68. Subject: Re: CAP on AUX (Answer)
  69. References: <20virs$f47@altitude.HIP.CAM.ORG> <C9pEpB.2v8@news.cis.umn.edu> <rodgrim-080793085505@unicorn.imv.aau.dk> <93190.164115AUBXG@asuacad.bitnet> <1993Jul10.160546.1005@tolten.puc.cl>
  70. Organization: Beeble Planning Commission
  71. Date: Sun, 11 Jul 1993 13:15:14 GMT
  72. Message-ID: <CA04tF.2G1@beeble.omahug.org>
  73. Lines: 110
  74.  
  75. ekaftan@tolten.puc.cl (Eduardo Kaftanski) writes:
  76.  
  77. >In article <93190.164115AUBXG@asuacad.bitnet> AUBXG@ASUACAD.BITNET (Ben Goren) writes:
  78. >>Would either of you who said that you got CAP to compile on A/UX mind
  79. >>doing some hand-holding? I've tried, many times, with patch levels from
  80. >>100 through 143, and every time I get compilation errors out the wazoo
  81. >>on `make programs`--everything before then works fine, even without
  82. >>warnings.
  83.  
  84. >        Yes, of course I can help you out! I've installed CAP tree times
  85. >in a pair of aux boxes and the three times i've been able to make the
  86. >whole thing without a single problem. I'm not sure it can do, but I will
  87. >re-install CAP in one of them just to refresh myself of the whole
  88. >procedure in rder to be able to help.
  89.  
  90. FYI, here are the instructions I came up with a while back when I was getting
  91. CAP v6.0pl128 running on my A/UX box.  
  92.  
  93. One final note before jumping back in time.. I have used lwsrv since this
  94. all happened, and it does work fine.  In fact, this is the only part of CAP
  95. that I use since aufs is so slow (see the end of the included message for
  96. times etc.)
  97.  
  98. Hope this helps... I'd be happy to help out via email if you have any other
  99. questions/comments...
  100.  
  101. Dave Caplinger
  102. dent@beeble.omahug.org
  103.  
  104. --- Begin included message ---
  105.  
  106. Well I finally got CAP to compile (partly) on A/UX 3.0!
  107.  
  108. I know you're in suspense, so here's how I did it:   :-)
  109.  
  110. First of all, be aware that make uses "Makefile" by default, but gen.makes
  111. creates "makefile".  Delete the Makefiles that come in the distribution
  112. (not Makefile.m4) so that after you run "gen.makes" your later "make"
  113. will actually use the configuration you've defined. :-)
  114.  
  115. Now we have to trick CAP into not trying to use KIP or MKIP or UAB or
  116. whatever else since we already have built-in AppleTalk in A/UX:
  117.  
  118. Edit appletalk.h:
  119. add this line where the other LAP_* defines are:
  120. #define LAP_AUX        5
  121.  
  122. Edit cap60/lib/cap/abauxddp.c
  123. add this line:
  124. short lap_proto = LAP_AUX;
  125.  
  126. These two things ensure that lap_proto is no longer an unresolved symbol in
  127. lipcap.a.  They don't actually do anything, but I'm hoping that "nothing" is
  128. the right thing to do so we can let A/UX's built-in appletalk support work.
  129.  
  130. In cap60/applications/aufs/afposenum.c, from line 940 on, change the variable
  131. 'index' to 'idx' (or something other than 'index' so it won't conflict with
  132. 'index()'.)
  133.  
  134. Once these three modifications are made, and you're sure that your make is
  135. using 'makefile' and not 'Makefile' in the various directories, it should
  136. compile.  Note that you do not need atis (and in fact it won't be compiled),
  137. so after you compile, try running atlook to see what it can see.  (You can
  138. compare this with A/UX's 'atlookup' command; they should see the same
  139. things...)  If you start up aufs, then you should be able to log into it
  140. with ash.
  141.  
  142. One thing that doesn't work is "getzones" (although Apple's 'atlookup -z'
  143. works fine..) but I haven't had a chance to try to track down why it
  144. doesn't work.
  145.  
  146. NOTE:  I haven't actually tried beating on this with several client macs at
  147. once yet, nor have I tried the LaserWriter support yet.  However, this should
  148. at least get you up and running, and hopefully we'll be able to work out
  149. whatever is still not quite right.  :-)  If you have severe problems or
  150. don't understand my explanation, send me email and I'll try to lend a hand...
  151.  
  152. Just for your information, here are some informal tests I ran once I had CAP
  153. running just to compare it's performance against AppleShare and FileSharing.
  154. The file I copied was a 15.5 MB Folder that I just "finder-copied".
  155.  
  156. Times:
  157.  
  158.   Client IIfx to A/UX CAP/aufs     8:15   (Zone A to Zone B)
  159.   A/UX CAP to Client IIfx          4:05
  160.  
  161.   Client IIfx to Fshare 7.01       5:05   (Zone A to Zone B)
  162.   Fshare 7.01 to Client IIfx       3:30
  163.  
  164.   Client IIfx to Ashare 3.0        4:00   (Zone A to Zone A)
  165.   Ashare 3.0 to Client IIfx        2:42
  166.  
  167. Client is defined as a Mac IIfx running System 7.01 with 32MB RAM.
  168. A/UX CAP is a Quadra 700 running A/UX 3.0 & CAP 6.0pl126 with 20MB RAM.
  169. Fshare 7.01 is a Mac IIci running System 7.01 file-sharing (8MB RAM).
  170. Ashare 3.0 is a Mac IIfx running AppleShare 3.0 (8MB RAM).
  171.  
  172. In all cases, the servers were otherwise completely idle (I did this at
  173. about 2 in the morning :-) so it's hardly a fair test.  I know that our
  174. AppleShare server degrades quickly as you add more simultaneous users, and
  175. I would guess that CAP wouldn't degrade quite as fast, but that's only a
  176. guess.  Also, there may be some things I could have done to tune CAP to
  177. get more performance, but since I'm new to this, I don't really know what
  178. they are yet.  :-)
  179.  
  180. (Does anyone else have any kind of informal tests of other CAP-capable
  181. platforms running aufs that show it actually performing better than
  182. AppleShare 3.0?  :-)
  183.  
  184. --- end of included message ---
  185.  
  186.     Jim Jagielski               |  "Supreme executive power derives from
  187.     jim@jagubox.gsfc.nasa.gov   |   a mandate from the masses, not from
  188.     NASA/GSFC, Code 734.4       |   some farcical aquatic ceremony."
  189.     Greenbelt, MD 20771         |        - Dennis
  190.