LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   install CRCN in ns-2.31 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/install-crcn-in-ns-2-31-a-4175562545/)

pjfmeng 12-28-2015 08:32 PM

install CRCN in ns-2.31
 
Hi everybody,
Hope you all are doing well.

i install ns-2.31 in ubuntu10.04 (32bit) successfully ,and gcc 4.1.3,but after i add CRCN in ns and make changes in Makefile ,error occures.

trace/cmu-trace.o: In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc:(.text._ZN9hdr_wcett6accessEPK6Packet[hdr_wcett::access(Packet const*)]+0x7): undefined reference to `hdr_wcett::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1


I am waiting for a positive and helpful response.
Thanks

TB0ne 01-03-2016 06:32 PM

Quote:

Originally Posted by pjfmeng (Post 5470158)
i install ns-2.31 in ubuntu10.04 (32bit) successfully ,and gcc 4.1.3,but after i add CRCN in ns and make changes in Makefile ,error occures.

trace/cmu-trace.o: In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc:(.text._ZN9hdr_wcett6accessEPK6Packet[hdr_wcett::access(Packet const*)]+0x7): undefined reference to `hdr_wcett::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

I am waiting for a positive and helpful response.

What do you think we'll be able to tell you, based on what you posted?? You changed some code, and now it doesn't work; the obvious answer is, "Fix your code". Since you don't post what you did/changed, we certainly can't tell you how to fix it. Also, both NS2 and Ubuntu 10.04 are VERY old...and, you ignored the LQ Rules, and TRIPLE POSTED this question, and hijacked and reopened two other threads to do it.

knudfl 01-09-2016 05:02 PM

Please use the safe choice = compat-g++34 :
$ cd ns-allinone-2.31/
$ patch -p0 < crcn_ns231.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc34 CXX=g++-34 && ./install

Links, compat-gcc34 and compat-g++34
. https://drive.google.com/file/d/0B7S...ew?usp=sharing
. https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

abrartunio 09-13-2016 11:18 AM

If you are working on Centos6.4
then correct command for installation will be
$ export CC=gcc34 CXX=g++34 && ./install

rather than

$ export CC=gcc34 CXX=g++-34 && ./install

Above correction can be valid for other linux distributions as well. Thanks

TB0ne 09-13-2016 08:14 PM

Quote:

Originally Posted by abrartunio (Post 5604649)
If you are working on Centos6.4
then correct command for installation will be
$ export CC=gcc34 CXX=g++34 && ./install

rather than

$ export CC=gcc34 CXX=g++-34 && ./install

Above correction can be valid for other linux distributions as well. Thanks

...except that:
  • This post is now eight months old
  • And the OP said they were using Ubuntu 10.04

saral 10-25-2016 01:58 PM

knudfl
 
Hi I have installed ns-2.31 with crcn patch on ubuntu 15.04 . all test files are working right except the test4wcett.tcl. It is giving an error
" format_wcett: invalid WCETT packet type "

I also tried to install ns-2.31 on ubuntu 10.04 but unable to install autoconf and automake and patch command is also not working.
please help me.


All times are GMT -5. The time now is 03:48 AM.