LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in installing "xgraph 12.1" in ubuntu 9.1 for ns 2.34 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-installing-xgraph-12-1-in-ubuntu-9-1-for-ns-2-34-a-790922/)

neeraj.dwivedi 02-22-2010 10:45 PM

problem in installing "xgraph 12.1" in ubuntu 9.1 for ns 2.34
 
i have following problem in installing xgraph...

neeraj@ubuntu:~/ns-allinone-2.34/xgraph-12.1$ make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xgraph.c
xgraph.c: In function ‘Traverse’:
xgraph.c:460: warning: format not a string literal and no format arguments
xgraph.c:472: warning: format not a string literal and no format arguments
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xgX.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c hard_devices.c
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:651: 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:651: error: prototype declaration
dialog.c:899: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:651: error: prototype declaration
make: *** [dialog.o] Error 1

knudfl 02-23-2010 01:34 AM

Xgraph is not considered important, that's why " ./install "
just ignores it by errors. ( xgraph files = 9 years old.)
It may be possible to compile it, by using the Ubuntu patch ?
http://packages.ubuntu.com/karmic/xgraph
[xgraph_12.1-11.diff.gz]

But much easier is :

sudo apt-get install xgraph ygraph

'ygraph' is a modern, more advanced tool ..
http://packages.ubuntu.com/karmic/ygraph
.....

raju.mopidevi 02-23-2010 09:10 AM

use gnuplot, instead of xgraph. gnuplot works fine.

neeraj.dwivedi 02-25-2010 05:12 AM

problem in DSR ....
 
When i run AODV tcl script aodv.tcl then it runs quite successfully , it draws xgraph for packet drop and packet received as well , but when i run DSR script dsr.tcl then it will just run nam editor but not draws the xgraph b/w the same.

now when i use aodv code with change in one line that is :

"set val(rp) dsr" in place of "set val(rp) AODV" which is routing protocol

then again this does not draw that graph.

which means ... as i conclude problem is not in my code , problem is with the implementation of DSR routing protocol.

now anyone can help me out with that problem.???

neeraj.dwivedi 03-02-2010 06:18 PM

Anyone is there to help me out ???

ashwinn89 03-10-2010 08:01 AM

@neeraj.dwivedi

I doubt my rather late reply would help your cause. In any case, here's a solution to your problem.

On line numbers 780 and 899 of dialog.c, change getline to something else (say, newgetline) and try compiling again. It should work.


All times are GMT -5. The time now is 04:32 PM.