LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-01-2011, 12:34 PM   #1
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
adding a new protocol


I have created a SDL protocol and i would like to add in the protocol to my linux machine, but this error came out.

i followed http://www.isi.edu/nsnam/ns/tutorial/

PHP Code:
SD_APP.oIn function `PDPAgent::command(int, char const* const*)':
SD_APP.cc:(.text+0x584): undefined reference to 
`DataBus'
SD_APP.cc:(.text+0x777): undefined reference to `DataBus'
collect2ld returned 1 exit status
make
: *** [nsError 1 
could someone advice?

Last edited by tootz; 03-01-2011 at 12:35 PM.
 
Old 03-01-2011, 12:58 PM   #2
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
It's been a while since I've been working with ns, but I'd guess there is a declaration of DataBus in one of the .h files missing ... Check also the Tcl file if it's ok.

Last edited by zWaR; 03-01-2011 at 01:06 PM.
 
1 members found this post helpful.
Old 03-01-2011, 06:38 PM   #3
jmajor
Member
 
Registered: Nov 2004
Location: Australia
Distribution: Fedora, Ubuntu
Posts: 55
Blog Entries: 2

Rep: Reputation: 17
I haven't used ns ever, however, looking at the errors I suspect that in that tutorial in section VII you missed the step where you add your object file, where you implement the DataBus object, to the Makefile.
 
1 members found this post helpful.
Old 03-02-2011, 08:06 AM   #4
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
is there any steps on how to resolve this?
this is quite urgent
thanks
 
Old 03-02-2011, 03:36 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
http://www.isi.edu/nsnam/ns/tutorial/ is the front page.
You will have to specify the chapter, like e.g. VIII or XI.
And / or : right click on the index = left column, and
"Copy Link Location" for the chapter, and show it, like : examples
http://www.isi.edu/nsnam/ns/tutorial...pt2.html#first
http://www.isi.edu/nsnam/ns/tutorial...pt4.html#first


And please attach your code(s), or upload it to a pastebin site,
+ provide a link to the file location.

..
 
Old 03-03-2011, 05:54 AM   #6
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
http://www.isi.edu/nsnam/ns/tutorial/nsnew.html i tried to add the SDL protocol using this

i have attached my files in here, kindly advice thanks
Attached Files
File Type: txt SDL.cc.txt (9.3 KB, 14 views)
File Type: txt SD_APP_HDR.h.txt (6.6 KB, 9 views)
File Type: txt SD_APP.cc.txt (7.9 KB, 8 views)
 
Old 03-03-2011, 08:36 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Simple data link (SDL) protocol
http://www.google.com/webhp#hl=en&su...e96c95c947f3f0


http://www.isi.edu/nsnam/ns/tutorial/nsnew.html , chapter VII.2. :
QUOTE : .. "But first of all, some other files have to be edited
before ns can be recompiled."

..
 
Old 03-03-2011, 09:03 AM   #8
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
okie... wad is the files that is needed to be edited? could you advice?
i have added the steps in http://www.isi.edu/nsnam/ns/tutorial/nsnew.html but i cant compile
thanks =)

Last edited by tootz; 03-03-2011 at 09:08 AM.
 
Old 03-07-2011, 07:55 PM   #9
jmajor
Member
 
Registered: Nov 2004
Location: Australia
Distribution: Fedora, Ubuntu
Posts: 55
Blog Entries: 2

Rep: Reputation: 17
In your SD_APP_HDR.h you declare DataBus as external (defined by another cpp module). Do you know which library or cpp file defines this global variable? When you find that, add it to the things to be linked by the make file.
 
Old 03-08-2011, 02:54 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
VII.2 , please read the line coming right after this text :
Quote:
But first of all, some other files have to be edited
before ns can be recompiled
→ That is 'VII.3. Necessary changes'
http://www.isi.edu/nsnam/ns/tutorial/nsnew.html#third
 
  


Reply



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
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
Where to turn SSHv1 protocol and SSHv2 protocol on and off Minnie Nguyen Linux - Enterprise 3 07-05-2006 02:12 PM
adding a new protocol cranium2004 Programming 9 08-26-2004 02:24 AM
Adding ets-game:// as protocol in Galeon Daem0hn Linux - Software 0 10-19-2003 12:02 AM
Unsupported protocol 'Compression Control Protocol' (0x80fd) received RKris Linux - Software 0 08-21-2002 08:24 AM

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

All times are GMT -5. The time now is 10:20 AM.

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