These patches are included in the v1.0a18 release of ns: Date: Sun, 17 Dec 1995 15:45:41 -0600 From: pearce@ukraine.corp.mot.com (Michael Pearce) Message-Id: <9512172145.AA29914@gabon.mot.com> To: ns@ee.lbl.gov Subject: Patches to port ns-1.0a16 to Solaris 2.4 with SunPro C++ v3.0.1 Greetings; I have ported ns, version 1.0a16, to Solaris 2.4 using the SunPro C++ v3.0.1 compiler. Several minor changes needed to be made to the sources, and the patch is included below. The changes fell into the following categories: o In Tcl.cc and Tcl.h, my compiler complained about static TclObject::command(ClientData...) not being accessible to class Tcl. This required moving it from private to public. o In Tcl.cc and Tcl.h, my compiler could not distinguish between static TclObject::command(ClientData...) and virtual TclObject::command(int...). This required changing the name of the static TclObject::command(ClientData...) to s_command. You may want to solve this in a different way, but in my opinion, overloading should only occur between semantically similar functions, which is not quite true in this case (one is a C to C++ interfacing hack to support callbacks, and the other is the real command). o In object.h, the declaration of NsObject::set() specifies indentically named parameters (the implementation in object.cc is correct, however). Simple change of the first parameter name from 'val' to 'var'. o In random.cc and random.h, the ifdef's for __svr4__ are not effective on my compiler, since it defines only provides __SVR4. Simple fix by adding __SVR4 clauses to existing __svr4__ ifdef's. o Numerous missing prototypes for exit() and abort(), requiring inclusion if . Regards, Mike -- Mike Pearce, Senior Engineer, Motorola Chicago Corporate R & D, Advanced Communications Systems Research email: Michael_Pearce-AMP001@email.mot.com "Don't worry Doc - this won't hurt a bit." ---- Cut Here and feed the following to sh ---- #!/bin/sh # This is a shell archive (produced by GNU sharutils 4.1). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 1995-12-17 15:18 CST by . # Source directory was `/home/pearce/incoming/lbl'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 6439 -rw-r----- ns-1.0a16-sol24-patch # # ============= ns-1.0a16-sol24-patch ============== if test -f 'ns-1.0a16-sol24-patch' && test X"$1" != X"-c"; then echo 'x - skipping ns-1.0a16-sol24-patch (file already exists)' else echo 'x - extracting ns-1.0a16-sol24-patch (compressed)' sed 's/^X//' << 'SHAR_EOF' | uudecode && Xbegin 600 _sharcmp.tmp XM'YV,9-*8,0.B19T9!>6`<#.G10P7,,+$L/&"RA@V+L:,6=CP8<2)+>"\D4.G XM#)F*%S..4="B)4>'$"52M(A18X(I==R`!L7 XM!%L%(/;@34#3!`@Z%T'T`$%3AXXT#.F$<3.F#(H4._::&0D"!=.F XMS6(R*%['#M/&<0H6(,80-^Z&#'040]BD*>.&#I'@85+`@0X#LE/=O%WX!BY\ XM^O'DL-TP=PY]SA?IQ8]?S[Z]^W?%XI%G'@BZ*8=88W#0D<8;;CP6&8%]X!4A XM6P7)``,,+``%P@H68JCA703*U]P7H,EV1W1HA"''%CJM\%,7#R8P!QURC`%' XM'BB(6,87T.DX8`("519">F2HN,9CM^G5`GHIK1=<&L"&BRYQ!!,_0J,AE8Z\>03 XM"#6(I0,,1]&0@U),.075P5*!)!+`5Z6T,$XZ=?556#&,=192&*_5ED-#98C0 XM7#''0(-=0.QE1QHDU2$:"':\D089P/+I)X,.XN59'6)H-X8..O/,[<]^,+M9 XMTF:^T)FL4B)WVQUAS.&9'&G8\61EQX'0TZ9LO!$&&28]!X(8=1Q*,@A###&W XM'&^L408(*KQPWHS!I;$1J%RSB=V6MBJ6ZT6[:NKKI]V%.FJIQKH;(^$*;F1U XMM2"TW7<=<*"P[J&D%KO0?#\BIIUL5Z*;NJFK-_=87B!LV^VW;D(VZ%Z<&PZT XMT$3#;09BSL6X<\\_!SUT[F7,408=21/H/-$7A6V?CJ8S.&.ZUCXX=ME/0KUD XM\(=7/BZMC-<9QN.82MXIY8>6"SZJJFZN6.=%'SIT:7N976?<%",!1H<-VOL" XM`140+X(8!"$M4`C'[D61-U"+#@/CUU0^9I476+!9`RM8"S2(KP]N9F`W"@("$-QL(CJ0`0Z*@H.6:Q(/3S*445\-*/J`/FC XM*KYN#6"$HQ]59P8V6.J0>^P?""H9AC/0#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`.9WTQ4`/I%T-!47%C<'%_DW$;UW$?%W(C5QTEMWB3=W3_97EI,&"8IWF; XMUWDR1W-89'J"LP*R9U#\IWS"YW-N-070IX*=X8+(IX*&@1B$PR>QA'NG)6S/ XMUGLC408TIR)D,'P=XTO@]GP_&(1R,(3$)'8]*!V_H81,J$Q-P"#@]!/#I7!D XM,18RQ&W81'Q&N'4^&(5NLX33IW?EQW=<2$YIH40O8V'Q9F':I6%Z!@)!``)Q XM4`>&LP8@D")>!S2%]B=J0Q!@\C=C"(1E2#24=H+Y]`9S8`9CX`8$QEV4IWH` XMMB"21XD8Z'@!MH$LEP";QWF=$7,_A0>D9W.*IXF-MT_]1`>N!WN8QXC@%1QH XM$'M-1TO&9'4M8"*_D71$2$')YD\VLHME<`>]&'E-V'Q@*(ROP8O<@8S*1'W. XM)`,7$P-L&$TT$#%QUWV[%XRZZ(R^.'Y7:'YC`19DD87HM$0R<`.%QR'L.(=X XM\0**)XN7&'FQ>(&KJ($(NZ XMMXRZ>(R_J$U'&)'/R'RVY7P6&8[*=#?3N&[95@/91H#(^J6'F=N(\>^'*C2!FC5WJ+ XMF)";R(JM9Y`(&90&Q9`+Y9`\J)'#2'8/H1%S5Y%9.75;N1).B)6OH959484E XM4W[#92%%010P@#(E^85%B))E"99G2'Y?H88Q=!03X8850I,<(H?R5&`DIY.+ XMQY3Y"'F9R),9.)2?&(JX=I0*D92H.)"M^(H'&8N'*94+:78-J8-.EXMXMQ'> XMYY57EXP9"9&CF0!H.8YK24XTX)8UM(TF.9=T!W8KF88M:8`6XI'G\")G_^'DC&!K5`9!*>7KD&5ZUJ)F 'ns-1.0a16-sol24-patch' && rm -f _sharcmp.tmp && chmod 0640 'ns-1.0a16-sol24-patch' || echo 'restore of ns-1.0a16-sol24-patch failed' shar_count="`wc -c < 'ns-1.0a16-sol24-patch'`" test 6439 -eq "$shar_count" || echo "ns-1.0a16-sol24-patch: original size 6439, current size $shar_count" fi exit 0