[ns] problem with make
hello sir Did you get any solution for this problem. I am also facing the same problem. if you have its solution, please send it to me my mail id is thakur.k...@gmail.com i will be very thankful to you. mangal sachin dahiya wrote: I am new to NS. I am running NS on cygwin on Windows XP. I was trying the 'make depend' and 'make' commands to see if they are working properly. I did not make any changes to any files after i installed NS. However, I received the errors shown below while i used the 'make' command: ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/home/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/dec' g++ -c -Wall -DCPP_NAMESPACE=std -I. -I/home/tclcl-1.17 -I/home/otcl-1.11 -I/home/include -I/home/include -I/usr/include/pcap -o proxytrace2any.o proxytrace2any.cc proxytrace2any.cc: In function `int main(int, char**)': proxytrace2any.cc:112: error: `IsLittleEndian' undeclared (first use this function) proxytrace2any.cc:112: error: (Each undeclared identifier is reported only once for each function it appears in.) proxytrace2any.cc:120: error: `ToOtherEndian' undeclared (first use this function) make[1]: *** [proxytrace2any.o] Error 1 make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/ucb' I do not understand why this error is appearing. Can anyone help me with this? Thanks in advance.
[ns] problem when make is used
Hey everyone, Im trying out the example on NS by Example site. There's one example for OTcl linkage where the following instructions are said: 1. Download ex-linkage.cchttp://nile.wpi.edu/NS/Example/ex-linkage.cc file, and save it under the ns-2 directory. 2. Open Makefile, add ex-linkage.o at the end of object file list. 3. Re-compile NS using the make command. 4. Download the ex-linkage.tclhttp://nile.wpi.edu/NS/Example/ex-linkage.tcl file that contains MyAgent testing OTcl commands. (see Figure 22 for the input script and the result) 5. Run the OTcl script using command ns ex-linkage.tcl. I searched the archives in here did a few things. I saved the file ex-linkage.cc under the ns-2.31 directory. I added [tab]ex-linkage.o \ in the Makefile.in file under the ns-2.31 directory. Then i did sudo ./configure. It did some checks. Then when i did make clean and make, it says make: *** No rule to make target `clean'. Stop. make: *** No targets. Stop. respectively. Anybody knows what I am doing wrong?(or if at all i did anything right!) Awaiting suggestions help. Rashmi
Re: [ns] problem when make is used
Hi rashmi, First thing is that you should save the ex-linkage.cc in a newly created directory(for example newproto) under ns-2.31 directory Then add a line in Makefile.in which is in ns-2.31 directory in OBJ_CC like newproto/exlinkage.o \ Then run ./configure and make . under the ns-2.31 directory The reason for the error messages u specified may be.. 1.If u r not running make under ns-2.31 directory 2.If the path u specified for the source may not visible to make... Hope this may help you, Rupesh On Fri, Apr 11, 2008 at 12:12 PM, rashmi bhat [EMAIL PROTECTED] wrote: Hey everyone, Im trying out the example on NS by Example site. There's one example for OTcl linkage where the following instructions are said: 1. Download ex-linkage.cchttp://nile.wpi.edu/NS/Example/ex-linkage.cc file, and save it under the ns-2 directory. 2. Open Makefile, add ex-linkage.o at the end of object file list. 3. Re-compile NS using the make command. 4. Download the ex-linkage.tclhttp://nile.wpi.edu/NS/Example/ex-linkage.tcl file that contains MyAgent testing OTcl commands. (see Figure 22 for the input script and the result) 5. Run the OTcl script using command ns ex-linkage.tcl. I searched the archives in here did a few things. I saved the file ex-linkage.cc under the ns-2.31 directory. I added [tab]ex-linkage.o \ in the Makefile.in file under the ns-2.31 directory. Then i did sudo ./configure. It did some checks. Then when i did make clean and make, it says make: *** No rule to make target `clean'. Stop. make: *** No targets. Stop. respectively. Anybody knows what I am doing wrong?(or if at all i did anything right!) Awaiting suggestions help. Rashmi
Re: [ns] problem with make
check this out http://nuraini.wordpress.com/2007/08/05/undefined-reference-to/ --- Nur Aini Rakhmawati Touch the sky, Down to the earth http://ai23.wordpress.com/ - Original Message From: jilly126 [EMAIL PROTECTED] To: ns-users ns-users@ISI.EDU Sent: Wednesday, August 8, 2007 8:37:27 AM Subject: [ns] problem with make Hello, I am trying to add diffserv and mpls modules to ns2.29. When I execute I execute ./configure and make clean without problems, but when I execute make, the next error appears on my screen: trace/trace.o(.text+0xe4): In function `Trace::Trace[not-in-charge](int)': : undefined reference to `BaseTrace::BaseTrace[in-charge]()' trace/trace.o(.text+0x240): In function `Trace::Trace[in-charge](int)': : undefined reference to `BaseTrace::BaseTrace[in-charge]()' common/agent.o(.text+0x14d4): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixNode::GetNodeObject(unsigned long)' common/agent.o(.text+0x14f1): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixNode::GetNixVector(unsigned long)' common/agent.o(.text+0x1502): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixVec::Reset()' common/agent.o(.gnu.linkonce.t._ZN6hdr_nv6accessEP6Packet+0xb): In function `hdr_nv::access(Packet*)': : undefined reference to `hdr_nv::offset_' queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_pgm6accessEPK6Packet+0xb): In function `hdr_pgm::access(Packet const*)': : undefined reference to `hdr_pgm::offset_' queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_lms6accessEP6Packet+0xb): In function `hdr_lms::access(Packet*)': : undefined reference to `hdr_lms::offset_' mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0xd): In function `EventTrace::EventTrace[in-charge]()': : undefined reference to `BaseTrace::BaseTrace[not-in-charge]()' mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0x19): In function `EventTrace::EventTrace[in-charge]()': : undefined reference to `vtable for EventTrace' common/node.o(.text+0x292): In function `Node::Node[not-in-charge]()': : undefined reference to `NixNode::NixNode[in-charge]()' common/node.o(.text+0x3fe): In function `Node::Node[in-charge]()': : undefined reference to `NixNode::NixNode[in-charge]()' common/node.o(.text+0x5e8): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::PopulateObjects()' common/node.o(.text+0x68d): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::GetNixVector(unsigned long)' common/node.o(.text+0x6e3): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::AddAdj(unsigned long)' common/node.o(.text+0x99d): In function `Node::route_notify(RoutingModule*)': : undefined reference to `RoutingModule::route_notify(RoutingModule*)' common/node.o(.text+0x9de): In function `Node::unreg_route_notify(RoutingModule*)': : undefined reference to `RoutingModule::unreg_route_notify(RoutingModule*)' common/node.o(.text+0xa68): In function `Node::set_table_size(int)': : undefined reference to `RoutingModule::set_table_size(int)' common/node.o(.text+0xa91): In function `Node::set_table_size(int, int)': : undefined reference to `RoutingModule::set_table_size(int, int)' trace/cmu-trace.o(.text+0x2825): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.text+0x284a): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `p802_15_4macSA(Packet*)' trace/cmu-trace.o(.text+0x285e): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `p802_15_4macDA(Packet*)' trace/cmu-trace.o(.text+0x28d1): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `findAttrLink(packet_t, int, int)' trace/cmu-trace.o(.text+0x2905): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `findAttrLink(packet_t, int, int)' trace/cmu-trace.o(.text+0x2c9e): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.text+0x2d3b): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.gnu.linkonce.t._ZN9Simulator8instanceEv+0x4): In function `Simulator::instance()': : undefined reference to `Simulator::instance_' trace/cmu-trace.o(.gnu.linkonce.t._ZN10hdr_lrwpan6accessEPK6Packet+0xb): In function `hdr_lrwpan::access(Packet const*)': : undefined reference to `hdr_lrwpan::offset_' collect2: ld returned 1 exit status make: *** [ns] Error 1 Can you help me? Thanks in advance. Best regards, jilly126 2007-08-07 Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
[ns] problem with make
Hello, I am trying to add diffserv and mpls modules to ns2.29. When I execute I execute ./configure and make clean without problems, but when I execute make, the next error appears on my screen: trace/trace.o(.text+0xe4): In function `Trace::Trace[not-in-charge](int)': : undefined reference to `BaseTrace::BaseTrace[in-charge]()' trace/trace.o(.text+0x240): In function `Trace::Trace[in-charge](int)': : undefined reference to `BaseTrace::BaseTrace[in-charge]()' common/agent.o(.text+0x14d4): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixNode::GetNodeObject(unsigned long)' common/agent.o(.text+0x14f1): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixNode::GetNixVector(unsigned long)' common/agent.o(.text+0x1502): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixVec::Reset()' common/agent.o(.gnu.linkonce.t._ZN6hdr_nv6accessEP6Packet+0xb): In function `hdr_nv::access(Packet*)': : undefined reference to `hdr_nv::offset_' queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_pgm6accessEPK6Packet+0xb): In function `hdr_pgm::access(Packet const*)': : undefined reference to `hdr_pgm::offset_' queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_lms6accessEP6Packet+0xb): In function `hdr_lms::access(Packet*)': : undefined reference to `hdr_lms::offset_' mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0xd): In function `EventTrace::EventTrace[in-charge]()': : undefined reference to `BaseTrace::BaseTrace[not-in-charge]()' mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0x19): In function `EventTrace::EventTrace[in-charge]()': : undefined reference to `vtable for EventTrace' common/node.o(.text+0x292): In function `Node::Node[not-in-charge]()': : undefined reference to `NixNode::NixNode[in-charge]()' common/node.o(.text+0x3fe): In function `Node::Node[in-charge]()': : undefined reference to `NixNode::NixNode[in-charge]()' common/node.o(.text+0x5e8): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::PopulateObjects()' common/node.o(.text+0x68d): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::GetNixVector(unsigned long)' common/node.o(.text+0x6e3): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::AddAdj(unsigned long)' common/node.o(.text+0x99d): In function `Node::route_notify(RoutingModule*)': : undefined reference to `RoutingModule::route_notify(RoutingModule*)' common/node.o(.text+0x9de): In function `Node::unreg_route_notify(RoutingModule*)': : undefined reference to `RoutingModule::unreg_route_notify(RoutingModule*)' common/node.o(.text+0xa68): In function `Node::set_table_size(int)': : undefined reference to `RoutingModule::set_table_size(int)' common/node.o(.text+0xa91): In function `Node::set_table_size(int, int)': : undefined reference to `RoutingModule::set_table_size(int, int)' trace/cmu-trace.o(.text+0x2825): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.text+0x284a): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `p802_15_4macSA(Packet*)' trace/cmu-trace.o(.text+0x285e): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `p802_15_4macDA(Packet*)' trace/cmu-trace.o(.text+0x28d1): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `findAttrLink(packet_t, int, int)' trace/cmu-trace.o(.text+0x2905): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `findAttrLink(packet_t, int, int)' trace/cmu-trace.o(.text+0x2c9e): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.text+0x2d3b): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.gnu.linkonce.t._ZN9Simulator8instanceEv+0x4): In function `Simulator::instance()': : undefined reference to `Simulator::instance_' trace/cmu-trace.o(.gnu.linkonce.t._ZN10hdr_lrwpan6accessEPK6Packet+0xb): In function `hdr_lrwpan::access(Packet const*)': : undefined reference to `hdr_lrwpan::offset_' collect2: ld returned 1 exit status make: *** [ns] Error 1 Can you help me? Thanks in advance. Best regards, jilly126 2007-08-07
[ns] Problem with make
Hi, I have developed a new wireless protocol using ns-2.30, i have made all the necessary changes to the various ns files along with the makefile.in. But when i'm trying to #make, i get the following error. make: *** No rule to make target `tcp/tcp-qs.o', needed by `ns'. Stop. Does anyone have any idea on how to fix this??? Tnx Dimitris
Re: [ns] Problem with make
- Hi. I think that the problem that make reports has to do with the fact that all the previously object files exist. You could erase the object files of the .c files that you have modified so that make will have to rebuild only these files and not all of ns. On the other hand, if this doesn't work you can also issue the following commands, but in this case all of ns will be rebuilt, along with your new files. Consider it as a desperate measure: /configure --with-tcl=the-tcl-directory --with-tcl-ver=the tcl version \ --with-tk=the-tk-directory --with-tk-ver=the-tk-version \ --with-otcl=the-otcl-directory --with-tclcl=the-tcltcl-directory \ --with-perl=the-perl-directory --with-tcl-debug --enable-debug; make clean; make depend; make; Hope that I have helped. Kind Regards, -Fk On 5/30/07, [EMAIL PROTECTED] //[EMAIL PROTECTED]/ [EMAIL PROTECTED] //[EMAIL PROTECTED]/ wrote: -- Forwarded message -- From: Dimitris Liarokapis [EMAIL PROTECTED]//[EMAIL PROTECTED]/ To: ns2 ns-users@ISI.EDU //ns-users@isi.edu/ Date: Wed, 30 May 2007 15:39:59 +0100 Subject: [ns] Problem with make Hi, I have developed a new wireless protocol using ns-2.30, i have made all the necessary changes to the various ns files along with the makefile.in. But when i'm trying to #make, i get the following error. make: *** No rule to make target `tcp/tcp-qs.o', needed by `ns'. Stop. Does anyone have any idea on how to fix this??? Tnx Dimitris -- Filippos N Kolovos Software Systems Analyst Engineer M.Sc. (Eng.) in Data Communications Automation Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] Phone: +30-2310-891-826 --
Re: [ns] problem with make
hello sir Did you get any solution for this problem. I am also facing the same problem. if you have its solution, please send it to me my mail id is [EMAIL PROTECTED] i will be very thankful to you. Anuradha sachin dahiya wrote: I am new to NS. I am running NS on cygwin on Windows XP. I was trying the 'make depend' and 'make' commands to see if they are working properly. I did not make any changes to any files after i installed NS. However, I received the errors shown below while i used the 'make' command: ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/home/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/dec' g++ -c -Wall -DCPP_NAMESPACE=std -I. -I/home/tclcl-1.17 -I/home/otcl-1.11 -I/home/include -I/home/include -I/usr/include/pcap -o proxytrace2any.o proxytrace2any.cc proxytrace2any.cc: In function `int main(int, char**)': proxytrace2any.cc:112: error: `IsLittleEndian' undeclared (first use this function) proxytrace2any.cc:112: error: (Each undeclared identifier is reported only once for each function it appears in.) proxytrace2any.cc:120: error: `ToOtherEndian' undeclared (first use this function) make[1]: *** [proxytrace2any.o] Error 1 make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/ucb' I do not understand why this error is appearing. Can anyone help me with this? Thanks in advance. -- View this message in context: http://www.nabble.com/problem-with-make-tf3251454.html#a10052804 Sent from the ns-users mailing list archive at Nabble.com.
[ns] Problem running make command
hi ns-users, i am able to run ./configure command in tclcl-1.012 But i couldnt run make command... The error, i got is: tclcl-mappings.h:51: error:incomplete type 'Tcl'used in nested name specifier tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl' tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl' tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' make: *** [Tcl.o] Error 1 please help me thanks in advance... Manpreet Grewal
[ns] Problem regarding make.
maybe you run it from different folder. check from where you run it.. eg: [EMAIL PROTECTED] ~]# or [EMAIL PROTECTED] ns-allinone-2.30]# etc...
[ns] Problem regarding make.
hello all , I am facing a problem regarding the ns-2.26.i have created a new packet format and want to implement the new agent in the ns-2.26 to be used in subsequent simulations.for that, i have to modify some file contents and do a 'make depend' before doing 'make'for doing that,i went to the ns-2.26 directory and had executed the command by writing ./make clean ./make depend ./make but on executing each of these commands,its is giving an error stating:cant find make. i am in total darkness regarding this.please help!! -aritra.
Re: [ns] Problem regarding make.
try: make clean make depend make - Original Message - From: aritra pal [EMAIL PROTECTED] To: ns-users@ISI.EDU Sent: Monday, March 05, 2007 6:34 PM Subject: [ns] Problem regarding make. hello all , I am facing a problem regarding the ns-2.26.i have created a new packet format and want to implement the new agent in the ns-2.26 to be used in subsequent simulations.for that, i have to modify some file contents and do a 'make depend' before doing 'make'for doing that,i went to the ns-2.26 directory and had executed the command by writing ./make clean ./make depend ./make but on executing each of these commands,its is giving an error stating:cant find make. i am in total darkness regarding this.please help!! -aritra.
[ns] problem with make
I am new to NS. I am running NS on cygwin on Windows XP. I was trying the 'make depend' and 'make' commands to see if they are working properly. I did not make any changes to any files after i installed NS. However, I received the errors shown below while i used the 'make' command: ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/home/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/dec' g++ -c -Wall -DCPP_NAMESPACE=std -I. -I/home/tclcl-1.17 -I/home/otcl-1.11 -I/home/include -I/home/include -I/usr/include/pcap -o proxytrace2any.o proxytrace2any.cc proxytrace2any.cc: In function `int main(int, char**)': proxytrace2any.cc:112: error: `IsLittleEndian' undeclared (first use this function) proxytrace2any.cc:112: error: (Each undeclared identifier is reported only once for each function it appears in.) proxytrace2any.cc:120: error: `ToOtherEndian' undeclared (first use this function) make[1]: *** [proxytrace2any.o] Error 1 make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/ns-2.29/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-2.29/indep-utils/webtrace-conv/ucb' I do not understand why this error is appearing. Can anyone help me with this? Thanks in advance.
[ns] Problem with 'make' for creating node movement!
Hello everybody: I'm following the ns tutorial to create node-movement for wireless scenario. I already run configure command under ns directory, but when I run 'make' command under indep-utils/cmu-scen-gen/setdest directory, I get this error: make: Nothing to be done for 'all' is it familiar with any of you? I appriciate any kind of help regarding this matter. Thanks, Sara _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/