LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-30-2014, 02:36 AM   #1
rianariana
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Rep: Reputation: Disabled
xgraph segfault when hdcpy button pressed


I made the following changes to "xtb.h" file in ns2.35, but it seems the problem still exists.

My os is ubuntu 13.04, later upgraded to ubuntu 13.10 (64 bits).

If I run the xgraph command, I can see the generated graphs, but when 'hdcpy' is pressed there is a segmentation fault (core dumped) message coming.

After the following changes, I did not reconfigure or make xgraph hdcpy in my system, because if I do then it says:
make:*** no rule to make target 'xgraph'. stop.

Please let me know if there is any other way to save/print the graphs.


=== modified file 'xtb.h'
--- xtb.h 2009-03-08 21:00:13 +0000
+++ xtb.h 2013-05-02 17:35:10 +0000
@@ -164,7 +164,7 @@
xtb_fmt_align align;
} xtb_fmt;

-#define NE 0
+#define NE ((xtb_fmt*)0)

DECLARE(xtb_w, xtb_fmt *, (xtb_frame *w));
/* Returns formatting structure for frame */
 
Old 01-30-2014, 06:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
No version of ns2 will build a usable xgraph-12.2 .

**** Installing xgraph in Ubuntu : $ sudo apt-get install xgraph


As you can see from the xgraph answers here at LQ
http://www.linuxquestions.org/questions/tags/xgraph/
.. and the Ubuntu "xgraph build page"
http://packages.ubuntu.com/source/saucy/xgraph
.. xgraph is fairly easy to build in Ubuntu, if you insist.
Just use the linked patch, xgraph_12.1-16.debian.tar.gz .

-
 
  


Reply

Tags
xgraph


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Handle keyboard button pressed signal MarcosPauloBR Programming 3 07-05-2011 11:04 AM
Old Emachines does nothing except when the power button is pressed. theKbStockpiler Linux - Hardware 11 07-03-2011 02:05 PM
Map a keypress to a GUI button (when keycode 175 pressed a GUI button pressed) wikapuki Linux - Desktop 0 09-16-2010 10:08 AM
Connect Gtk's key event with button pressed? Chowroc Programming 6 12-20-2004 02:52 PM
Automatic shutdown when power button pressed.. mr_smidge Linux - General 9 09-08-2003 03:16 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration