Dear All,

 

I need to simulate SIP protocol in NS-2 for a recent project, I found one at
http://www.tti.unipa.it/~fasciana/, but after patching and ./configure and
make, I got a error like following:

 

[EMAIL PROTECTED] ns-allinone-2.26]# patch  -p1 < patch-ns2_2.26sip-udp_v1.0.txt

patching file ns-2.26/apps/udp_sip.cc

patching file ns-2.26/apps/udp_sip.h

patching file ns-2.26/common/packet.h

patching file ns-2.26/Makefile.in

patching file ns-2.26/sip/README

patching file ns-2.26/sip/sip_sctp.cc

patching file ns-2.26/sip/sip_sctp.h

patching file ns-2.26/sip/sip_udp.cc

patching file ns-2.26/sip/sip_udp.h

patching file ns-2.26/sip/sip_utils.tcl

patching file ns-2.26/tcl/ex/sip/out_udp.tr

patching file ns-2.26/tcl/ex/sip/rty

patching file ns-2.26/tcl/ex/sip/sctp_utils.tcl

patching file ns-2.26/tcl/ex/sip/sip-example-sctp.tcl

patching file ns-2.26/tcl/ex/sip/sip-example-udp.tcl

patching file ns-2.26/tcl/ex/sip/sip_utils.tcl

patching file ns-2.26/tcl/ex/sip/udp_utils.tcl

patching file ns-2.26/tcl/lib/ns-default.tcl

patching file ns-2.26/trace/trace.cc

[EMAIL PROTECTED] ns-allinone-2.26]# cd ns-2.26

[EMAIL PROTECTED] ns-2.26]# ./configure

(output is omitted)

[EMAIL PROTECTED] ns-2.26]# make

c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG
-DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
-DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H
-DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC
-DSTL_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -I.
-I/mnt/data2/ns-allinone-2.26/tclcl-1.0b13
-I/mnt/data2/ns-allinone-2.26/otcl-1.0a8
-I/mnt/data2/ns-allinone-2.26/include -I/mnt/data2/ns-allinone-2.26/include
-I/usr/include/pcap -I./tcp -I./common -I./link -I./queue -I./adc -I./apps
-I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast
-I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr
-I./diffusion3/ns -I./diffusion3/diffusion -I./asim/ -I./qs -o trace/trace.o
trace/trace.cc

In file included from trace/trace.cc:43:

common/packet.h: In static member function `static bool

   p_info::data_packet(packet_t)':

common/packet.h:254: parse error before `;' token

make: *** [trace/trace.o] Error 1

 

 

Do you guys know what the problem with this source code is? Or did anybody
install this or maybe other SIP model successfully in NS-2 before; I will
really appreciate if you can be any of help.

 

Many thanks,

 

 

Bo Peng

[EMAIL PROTECTED]

 

 

 

Reply via email to