LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   make file error ns2 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/make-file-error-ns2-911025/)

raji27 10-31-2011 03:23 AM

make file error ns2
 
i'm doing project in blackhole attack prevention in manet using ns2. I've added a blackholeaodv protocol based on aodv in ns2, while doing make i get this following error.

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


pls help me in correcting this error

John VV 10-31-2011 10:39 PM

There is really no useful information in your post
( nor in the past 11 posts )
NEEDED things like
Your Operating system ?
the version of GCC being used ?

from past posts i am guessing that this error is with ns 2.34
but no ware in this post is that stated
so is this ns 2.34 or some other version ?


this error might be any of many things
From a too new version of gcc
to a missing or wrong version of a dependency

raji27 11-01-2011 03:44 AM

sorry sir, I'm working red hat5, in ns2.34 i've got this error.

knudfl 11-01-2011 02:52 PM

Quote:

... blackhole attack prevention in manet using ns2.
I've added a blackholeaodv protocol based on aodv in ns2
If you want any help, you will have to specify 1) patches,
2) modifications, 3) file names for added stuff,
4) direct download links for the above.

mhd_abd 02-24-2013 08:39 AM

Quote:

Originally Posted by raji27 (Post 4512304)
i'm doing project in blackhole attack prevention in manet using ns2. I've added a blackholeaodv protocol based on aodv in ns2, while doing make i get this following error.

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


pls help me in correcting this error

hi sir , I'm working in the same project ,please could you help me?
my email :mhdabdtaha@yahoo.com ,
:mohammedalkhafgey@gmail.com
thanks sir.

mhd_abd 02-24-2013 08:53 AM

Quote:

Originally Posted by raji27 (Post 4512304)
i'm doing project in blackhole attack prevention in manet using ns2. I've added a blackholeaodv protocol based on aodv in ns2, while doing make i get this following error.

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


pls help me in correcting this error

hi sir , I'm working in the same project ,please could you help me?
my email :mhdabdtaha@yahoo.com
:mohammedalkhafgey@gmail.com
thanks sir.

knudfl 02-24-2013 09:51 AM

# 6 : The same goes for you, if you want an answer :

You will have to tell what you added to ns-2.xx :
Edited files / other modifications / patches.

Including file names / download links.

-


All times are GMT -5. The time now is 01:55 PM.