13 August 2011

xgraph Error (dialog.c)

If you are installing ns2 allinone package in fedora or ubuntu or any other linux, all the packages will be installed successfully. Occasionally the recent distributions of Linux flavors failed to install xgraph.

Problem:

The possible error you may get is [dialog.o] error,

Solution:

  1. Open the file dialog.c which is available under the folder xgraph-12.1/ (this is in my case)
  2. Find out the function getline() (will be at two places), usually line number 780 and 891 or 889, replace getline() function to newgetline() (at the both the places)
  3. save the file and at the prompt give ./configure
  4. give the command make
  5. If there are no errors, xgraph will work now..