Xgraph Installation ERROR - Solved

The error generated while installing xgraph in NS-2 2.34 is as follows:

dialog.c:893:7: error: argument ‘lptr’ doesn’t match prototype

The Solution for the above error is:

Change the the below line at 780 in dialog.c

while (getline(&lineptr, line)) {

to

while (getmyline(&lineptr, line)) {  

and one more change in line no. 891 in dialog.c

getline(tptr, lptr)

to

getmyline(tptr, lptr)



.......

21 comments:

  1. What is the command to plot throughput using Ubuntu.? There are is an set of four pots generated but no graph is being displayed..

    ReplyDelete
    Replies
    1. There are set of four points....

      Delete
  2. sir, i'm getting segmentation fault while executing xgraph command.
    i checked whether it is installed properly with xgraph --help. i got all help commands. but i cant execute the xgraph with file name

    ReplyDelete
  3. Hi,

    Check the file for values. It is going out of memory.

    ReplyDelete
  4. Sir,Do you have the codes for TBRPF and DSR protocols...???

    ReplyDelete
    Replies
    1. Hi,

      The DSR protocol is built in protocol. I don't have TBRPF.

      Delete
    2. Sir Can you please mail me the TCL script of DSR protocols.. I Request you to do this favour for me sir.. Please sir..

      Delete
    3. Hi,

      Please check example TCL scripts in ns-allinonw-2.34/ns-2.34/tcl/ex folder.

      Delete
    4. Sir , i am trying to compare 2 protocols namely , TBRPF and DSR sir... I have tried all the methods of implementing the code sir but unable to succeed. I request you to send the code for DSR protocol sir... Thanks in advance sir.. Hoping for a positive reply

      Delete
  5. Sir , i am trying to compare 2 protocols namely , TBRPF and DSR sir... I have tried all the methods of implementing the code sir but unable to succeed. I request you to send the code for DSR protocol sir... Thanks in advance sir.. Hoping for a positive reply

    ReplyDelete
  6. Sir i am getting segmentation during the execution of the code.. SORTING LIST DONE...!!! Segmentation fault.. what does it mean.. how can i overcome that..

    ReplyDelete
    Replies
    1. HI,

      The segmentation is due to memory allocation related issue. As an example you are trying to store 11th value in as array of 10 values.

      Delete
  7. hey sir..

    how to install X-graph in NS-2.29?

    can u show the steps?coz in other website showed very confusing steps.

    Ur help is highly appreciated.

    Regards,
    ASH

    ReplyDelete
  8. if i give xgraph command in terminal it just go to next line in terminal
    the window is not opened but i get the % while ns command is typed in terminal

    ReplyDelete
  9. hii i m getting dis error ...
    Parameter LabelFont: can't translate `helvetica-10' into a font (defaulting to `fixed
    how to resolve???

    ReplyDelete
  10. wat libraries sir???? n how to check dem???

    ReplyDelete
    Replies
    1. HI,

      Follow the instruction while installing NS2, which given in this blog.

      Delete
  11. Network Simulator - 2: Xgraph Installation Error - Solved >>>>> Download Now

    >>>>> Download Full

    Network Simulator - 2: Xgraph Installation Error - Solved >>>>> Download LINK

    >>>>> Download Now

    Network Simulator - 2: Xgraph Installation Error - Solved >>>>> Download Full

    >>>>> Download LINK zT

    ReplyDelete