home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.lbl.gov / 2014.05.ftp.ee.lbl.gov.tar / ftp.ee.lbl.gov / ns / sunpro.txt < prev   
Text File  |  1996-01-12  |  8KB  |  160 lines

  1. These patches are included in the v1.0a18 release of ns:
  2.  
  3. Date: Sun, 17 Dec 1995 15:45:41 -0600
  4. From: pearce@ukraine.corp.mot.com (Michael Pearce)
  5. Message-Id: <9512172145.AA29914@gabon.mot.com>
  6. To: ns@ee.lbl.gov
  7. Subject: Patches to port ns-1.0a16 to Solaris 2.4 with SunPro C++ v3.0.1
  8.  
  9.  
  10. Greetings;
  11.  
  12. I have ported ns, version 1.0a16, to Solaris 2.4 using the SunPro C++
  13. v3.0.1 compiler. Several minor changes needed to be made to the
  14. sources, and the patch is included below. The changes fell into the
  15. following categories:
  16.  
  17.     o In Tcl.cc and Tcl.h, my compiler complained about static
  18.       TclObject::command(ClientData...) not being accessible to class
  19.       Tcl. This required moving it from private to public.
  20.  
  21.     o In Tcl.cc and Tcl.h, my compiler could not distinguish between
  22.       static TclObject::command(ClientData...) and virtual
  23.       TclObject::command(int...). This required changing the name of
  24.       the static TclObject::command(ClientData...) to s_command. You
  25.       may want to solve this in a different way, but in my opinion,
  26.       overloading should only occur between semantically similar
  27.       functions, which is not quite true in this case (one is a C to
  28.       C++ interfacing hack to support callbacks, and the other is the
  29.       real command).
  30.  
  31.     o In object.h, the declaration of NsObject::set() specifies
  32.       indentically named parameters (the implementation in object.cc
  33.       is correct, however). Simple change of the first parameter name
  34.       from 'val' to 'var'.
  35.  
  36.     o In random.cc and random.h, the ifdef's for __svr4__ are not
  37.       effective on my compiler, since it defines only provides __SVR4.
  38.       Simple fix by adding __SVR4 clauses to existing __svr4__
  39.       ifdef's.
  40.  
  41.     o Numerous missing prototypes for exit() and abort(), requiring
  42.       inclusion if <stdlib.h>.
  43.  
  44. Regards,
  45.  
  46. Mike
  47. --
  48. Mike Pearce, Senior Engineer, Motorola Chicago Corporate R & D,
  49.      Advanced Communications Systems Research
  50. email: Michael_Pearce-AMP001@email.mot.com
  51.     "Don't worry Doc - this won't hurt a bit."
  52.  
  53. ---- Cut Here and feed the following to sh ----
  54. #!/bin/sh
  55. # This is a shell archive (produced by GNU sharutils 4.1).
  56. # To extract the files from this archive, save it to some FILE, remove
  57. # everything before the `!/bin/sh' line above, then type `sh FILE'.
  58. #
  59. # Made on 1995-12-17 15:18 CST by <pearce@ukraine.corp.mot.com>.
  60. # Source directory was `/home/pearce/incoming/lbl'.
  61. #
  62. # Existing files will *not* be overwritten unless `-c' is specified.
  63. #
  64. # This shar contains:
  65. # length mode       name
  66. # ------ ---------- ------------------------------------------
  67. #   6439 -rw-r----- ns-1.0a16-sol24-patch
  68. #
  69. # ============= ns-1.0a16-sol24-patch ==============
  70. if test -f 'ns-1.0a16-sol24-patch' && test X"$1" != X"-c"; then
  71.   echo 'x - skipping ns-1.0a16-sol24-patch (file already exists)'
  72. else
  73.   echo 'x - extracting ns-1.0a16-sol24-patch (compressed)'
  74.   sed 's/^X//' << 'SHAR_EOF' | uudecode &&
  75. Xbegin 600 _sharcmp.tmp
  76. XM'YV,9-*8,0.B19T9!>6`<#.G10P7,,+$L/&"RA@V+L:,6=CP8<2)+>"\D4.G
  77. XM#)F*%S..4="B)4>'$"52M(A18X(I==R`</+&#H@8,D#(D*HRB,'[FR%%#
  78. XMP8JG+SW*##FRY$F:*F_F!$&DS,88-W[.T#'CZ(R@,98V!0*D(-@:+,*N>!L7
  79. XM!%L%(/;@34#3!`@Z%T'T`$%3AXXT#.F$<3.F#(H4._::&0D"!<TG8M1XI:,"
  80. XM!!S!(,*P8?-EAV<0(0;#,/UY,)P6/MR4P4/G2XJ\+!,D`(QQB)PR84H.>=.F
  81. XMS6(R*%['#M/&<0H6(,80-^Z&#'040]BD*>.&#I'@85+`@0X#LE/=O%WX!BY\
  82. XM^O'DL-TP=PY]SA?IQ8]?S[Z]^W?%XI%G'@BZ*8=88W#0D<8;;CP6&8%]X!4A
  83. XM6P7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<^),"A8]":9Y%:6_I*8+OF8J,*0($6G2(
  147. X(.7NUAT$LN'CL
  148. X`
  149. Xend
  150. SHAR_EOF
  151.   echo 'uncompressing file ns-1.0a16-sol24-patch' &&
  152.   compress -d < _sharcmp.tmp > 'ns-1.0a16-sol24-patch' && rm -f _sharcmp.tmp &&
  153.   chmod 0640 'ns-1.0a16-sol24-patch' ||
  154.   echo 'restore of ns-1.0a16-sol24-patch failed'
  155.   shar_count="`wc -c < 'ns-1.0a16-sol24-patch'`"
  156.   test 6439 -eq "$shar_count" ||
  157.     echo "ns-1.0a16-sol24-patch: original size 6439, current size $shar_count"
  158. fi
  159. exit 0
  160.