[ns] Strange Compiling Error - Please Help

2012-06-11 Thread Mojtaba Asgari

Hi,

I'm trying to patch the LAR routing protocol implemented by The 
Toilers Reserach Group in ns2.35 on an ubuntu 10.04 LTS system. But I'm facing 
the following compiling error, even after deleting LAR codes, the problem still 
exist:


I./diffserv -I./satellite -I./wpan -o tcp/tcp-fack.o tcp/tcp-fack.cc
In file included from /usr/include/c++/4.4/bits/char_traits.h:41,
 from /usr/include/c++/4.4/ios:41,
 from /usr/include/c++/4.4/ostream:40,
 from /usr/include/c++/4.4/iostream:40,
 from ./common/scheduler.h:44,
 from ./common/packet.h:44,
 from ./common/ip.h:42,
 from tcp/tcp-fack.cc:29:
/usr/include/c++/4.4/bits/stl_algobase.h: In function ‘const _Tp 
std::max(const _Tp, const _Tp) [with _Tp = TracedInt]’:
tcp/tcp-fack.cc:87:   instantiated from here
/usr/include/c++/4.4/bits/stl_algobase.h:214: error: no match for ‘operator’ 
in ‘__a  __b’
/usr/include/c++/4.4/bits/stl_algobase.h:214: note: candidates are: 
operator(int, int) built-in
make: *** [tcp/tcp-fack.o] Error 1

anybody  knows what could be the cause of this error?

Thanks,
Mojtaba


[ns] xgraph compiling error with ns-allinone-2.34

2009-08-30 Thread BilalAKhan


Dear all,

I have installed ns-allinone-2.34 succcesfully. I have also run a few of
examples and they are running fine. But when I run trace analysis example
where xgraph is used it gives me follwoing error:

ns: finish: couldn't execute xgraph: no such file or directory
while executing
exec xgraph out0.tr out1.tr out2.tr -geometry 800x400 
(procedure finish line 8)
invoked from within
finish

I searched on the web and figured out that xgraph is not installed. I went
to ns-allinone-2.34 folder and looked into installation guide of xgraph.
According to the guide, I did './configure'. It went well, but when I typed
'make' and hit enter it gave me follwoing error:

gcc -DHAVE_CONFIG_H -I. -I. -I.-g-c dialog.c
dialog.c: In function ‘make_msg_box’:
dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible
pointer type
/usr/include/stdio.h:653: note: expected ‘size_t * __restrict__’ but
argument is of type ‘char *’
dialog.c:780: error: too few arguments to function ‘getline’
dialog.c: In function ‘getline’:
dialog.c:899: error: argument ‘lptr’ doesn’t match prototype
/usr/include/stdio.h:653: error: prototype declaration
dialog.c:899: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:653: error: prototype declaration
make: *** [dialog.o] Error 1

Can anyone help me with this error. What am I doing wrong and where am I
making a mistake???

Please help me in installing xgraph...

Thanks in anticipation

Regards,

Bilal A. Khan

-
Regards,

Bilal A. Khan
-- 
View this message in context: 
http://www.nabble.com/xgraph-compiling-error-with-ns-allinone-2.34-tp25200415p25200415.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] A compiling error

2006-08-06 Thread Fan Xiaopeng

Dear all,

I have a question about compiling NS2.

When I replaced ../pgm/pgm-agent.cc with my own one, I recompile the source 
code and encountered the following error. 

trace/trace.cc: In member function `virtual void DequeTrace::recv(Packet*, 
Handler*)':
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 6)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 6)
make: *** [trace/trace.o] Error 1

And my code had nothing with the file of trace.cc. Would you mind telling me 
the reason?

Thanks!




Mr. Fan Xiaopeng  
PHD Student
Department  of  Computing 
Hong  Kong  Polytechnic  University 
Hung  Hom,  Kowloon,  Hong  Kong


[ns] ns-2.27 compiling error

2006-04-08 Thread Pupun Das

Hi,

I am trying to compile ns-2.27 for GnutellaSim. I have followed the following
script:

http://p2p.cs.mu.oz.au/software/vpdns/scripts/create-vpdns.

During the build process for ns-2.27, I stumble upon the following error:

--
Linking pdns
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-ldl
collect2: ld returned 1 exit status
make: *** [pdns] Error 1
--

Any help would be appreciated. Thanks!

- Pupun Das