LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2014, 10:28 AM   #1
bhavinsorathiya
LQ Newbie
 
Registered: Jan 2014
Posts: 10
Blog Entries: 4

Rep: Reputation: Disabled
I add new protocol in ns-2 name "binary marking congestion protocol(bmcc )"


i am using fedora 12 and using ns-allinone-2.33,when i run 'make' command in terminal it give me this error,

gent.cc.text._ZN6hdr_nv6accessEP6Packet[hdr_nv::access(Packet*)]+0x7): undefined reference to `hdr_nv:ffset_'
apps/worm.o.rodata._ZTV9AnWormApp[vtable for AnWormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)'
apps/worm.o.rodata._ZTV10DnhWormApp[vtable for DnhWormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)'
apps/worm.o.rodata._ZTV7WormApp[vtable for WormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

how i can solve this error?
 
Old 01-02-2014, 06:25 PM   #2
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
I don't know anything about NS2, but it looks like your source is missing an include for hdr_nv.h and includes for whatever file contains the Process class. Are you sure that you are using the correct version of bmcc with the correct version of NS-2?
 
Old 01-03-2014, 10:27 AM   #3
bhavinsorathiya
LQ Newbie
 
Registered: Jan 2014
Posts: 10

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
i use correct version of ns2
 
Old 01-03-2014, 11:11 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
#1, @bhavinsorathiya : Welcome to LQ.
Quote:
I add new protocol in ns-2 name "binary marking congestion protocol(bmcc )"
Unknown protocol for ns233 : Please supply a link to the code / documentation.

Quote:
..ZN6hdr_nv6accessEP6Packet[hdr_nv::access(Packet*)]+0x7): undefined reference to..
Are you quite sure that the bmcc code really is for ns-2.33 ?
The install command for ns-allinone-2.33/ is :
$ export CC=gcc34 CXX=g++34 && ./install

And the command for reconfiguring / rebuilding ns-2.33/ is :
$ export CC=gcc34 CXX=g++34 && ./configure && make

-
 
Old 01-03-2014, 11:17 AM   #5
bhavinsorathiya
LQ Newbie
 
Registered: Jan 2014
Posts: 10

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
http://www.cs.pitt.edu/~ihsan/bmcc-0.1.tar.gz
 
Old 01-03-2014, 12:13 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
# 5 .

OK, no issues at building {ns-2.33 + bmccd} :
# yum install compat-gcc-34-c++
$ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install

-
 
Old 01-03-2014, 01:07 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
# 5 .

And ... with the Fedora 12 based CentOS 6.5 : $ ns sample.tcl
... the file `ns.trace', 107.8 MB is created.

bmcc-ns233-patching.tar.gz :
https://drive.google.com/file/d/0B7S...it?usp=sharing
-
Attached Files
File Type: txt sample.tcl-run.bz2.txt (1.7 KB, 15 views)

Last edited by knudfl; 01-03-2014 at 01:13 PM.
 
Old 01-04-2014, 12:43 AM   #8
bhavinsorathiya
LQ Newbie
 
Registered: Jan 2014
Posts: 10

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
@kundfl It is work, so thank you very much for your suggestion.
And sample.tcl.run.bz2.txt is not open ,so how can i open this file
 
Old 01-04-2014, 06:46 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
# 8 .

How to unpack an attached bzip2 compressed file :

a) $ mv sample.tcl-run.bz2.txt sample.tcl-run.bz2
b) $ bunzip2 sample.tcl-run.bz2

-
 
Old 01-04-2014, 10:22 AM   #10
bhavinsorathiya
LQ Newbie
 
Registered: Jan 2014
Posts: 10

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
have you other tcl script of 'bmcc'protocol ?

@knudfl:thank you.
 
Old 01-16-2014, 08:18 AM   #11
bhavinsorathiya
LQ Newbie
 
Registered: Jan 2014
Posts: 10

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
How to find link utilisation in % between two nodes node no and n1 from the trace file in ns-2.
 
  


Reply

Tags
bmcc, bmccd, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Telnet is not a Registered Protocol" from a Mozilla Browser in Unix tpthomas76 Linux - General 3 01-08-2009 02:54 PM
KDesktop Error - "procewss for file protocol died unexpectedly..." Optiker Linux - Desktop 3 12-26-2006 10:39 AM
Video clips in Firefox - "RTSP is not a registered protocol" rollo Linux - General 5 11-17-2004 02:59 AM
"socks5" -> "http" proxy protocol, or ssh tunnel to sock5 ? I'm beyond http p vmicho Linux - Networking 2 12-16-2003 05:32 AM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration