LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error in installing new modules in ns-2.35 (https://www.linuxquestions.org/questions/linux-newbie-8/error-in-installing-new-modules-in-ns-2-35-a-4175483853/)

Jawad 11-08-2013 04:21 AM

error in installing new modules in ns-2.35
 
Hi all,

while trying to install https://sites.google.com/site/haninemati/sip-in-ns2 in ns-2.35, i m getting the following errors:

jawad@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ make
g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_14 -DHAVE_OTCL_H -DHAVE_LIBTK8_5 -DHAVE_TK_H -DHAVE_LIBTCL8_5 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/jawad/Documents/ns-allinone-2.35/tclcl-1.20 -I/home/jawad/Documents/ns-allinone-2.35/otcl-1.14 -I/home/jawad/Documents/ns-allinone-2.35/include -I/home/jawad/Documents/ns-allinone-2.35/include -I/home/jawad/Documents/ns-allinone-2.35/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./sip -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/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o sip/sipAgent.o sip/sipAgent.cc
sip/sipAgent.cc: In constructor ‘SipAgent::SipAgent()’:
sip/sipAgent.cc:35:30: error: ‘PT_SIP’ was not declared in this scope
make: *** [sip/sipAgent.o] Error 1
i'm using ubuntu 12.04 and ns-2.35

i followed the following steps to add new module.
1:in Makefile (without ".in" extention), under INCLUDES =\, I added -I./sip\ and a folder named "sip" is there in the directory \ns-allinone-2.35\ns-2.35
2:then i added sip/sip_traffic.o sip/sipAgent.o under OBJ_CC =\
3: i added sip/200ms_500rate_p1_190_p2_200.tcl under NS_TCL_LIB = \
4: then i run command "make" but got errors.

any kind of help will be welcomed.


All times are GMT -5. The time now is 02:24 PM.