problem in installing "xgraph 12.1" in ubuntu 9.1 for ns 2.34
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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]
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.