[ns] Segmentation fault error

2013-06-28 Thread lineo mejaele

Dear ns- users

Please help me, I get a segmentation fault error when I calculate end to
end delay for DSR protocol. This does not happen if I simulate for a short
time like 100 seconds, but If I increase simulation time to say 500
seconds, I get the error.

Regards,
-- 
Lineo Mejaele


[ns] [bug] make error

2013-06-28 Thread moein

[Bug Report]

-
Category:  Installation Failure
Package:   ns 2.30
OS:Linux ubuntu 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 
UTC 2010 i686 
Environment Variables:
LD_LIBRARY_PATH=:/home/moein/ns-allinone-2.30/otcl-1.12:/home/moein/ns-allinone-2.30/lib:/home/moein/ns-allinone-2.30/otcl-1.12:/home/moein/ns-allinone-2.30/lib:/home/moein/ns-allinone-2.30/otcl-1.12:/home/moein/ns-allinone-2.30/lib:/home/moein/ns-allinone-2.30/otcl-1.12:/home/moein/ns-allinone-2.30/lib
TCL_LIBRARY=/home/moein/ns-allinone-2.30/tcl8.4.18/library:/usr/lib

TK_LIBRARY=


-
Description:

Description of Problem:

 I want to patch AFR into ns2.30. However, after I install ns2.30 allinone 
packet,
I replace the ns2.30 folder with the AFR ns2.30 folder. Then I do ./configure 
and make.

The following error occurs:

/usr/include/c++/4.1.3/bits/stl_bvector.h: In member function ¡¥void 
std::vector
   _iterator_tag)¡¦:
/usr/include/c++/4.1.3/bits/stl_bvector.h:544: error: expected unqualified-id be
/usr/include/c++/4.1.3/bits/stl_bvector.h: In member function ¡¥void 
std::vector
/usr/include/c++/4.1.3/bits/stl_bvector.h:899: error: expected unqualified-id be
/usr/include/c++/4.1.3/bits/vector.tcc: In member function ¡¥void 
std::vector_Tp 
  _alloc_type::pointer, std::vector_Tp, 
_Alloc , size_t, const _Tp)¡¦:
/usr/include/c++/4.1.3/bits/vector.tcc:355: error: expected unqualified-id befor
/usr/include/c++/4.1.3/bits/vector.tcc: In member function ¡¥void 
std::vector_Tp 
  p_alloc_type::pointer, std::vector_Tp, 
_Alloc , _ForwardIterator, _ForwardIte
/usr/include/c++/4.1.3/bits/vector.tcc:454: error: expected unqualified-id befor
make: *** [diffusion3/ns/difftimer.o] Error 1


How Easily Reproducible:
(e.g. every time, intermittent, once only, etc.)


Steps to Reproduce:
(describe the minimal set of steps necessary to trigger the bug)
1. 
2. 
3. 


Actual Results:
(describe what the application did after performing the above steps)


Expected Results:
(describe what the application should have done, were the bug not present)


Additional Information:
(the following infomation is helpful to debug:
 1. simulation script, detailed output files, packet trace
 2. patch file if you modify some source code
 3. a backtrace from gdb if you get a segment fault
 If they are big files, PLEASE put them in your web space and
 include the URL here.)




Re: [ns] [bug] make error

2013-06-28 Thread knudfl

 @moein
 /usr/include/c++/4.1.3/bits/stl_bvector.h:544: error: expected
 unqualified-id be

http://www.hamilton.ie/tianji_li/afr/afr.230.tar.gz
afr.230.tar.gz seems to contain some very old files. (From the ns-2.27
version ?)

Compiles OK with g++ version 3.3.6 . ( Or g++ version 3.2.3 ).

-



--
View this message in context: 
http://network-simulator-ns-2.7690.n7.nabble.com/bug-make-error-tp27191p27192.html
Sent from the ns-users mailing list archive at Nabble.com.