[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xgraph installation!!



Date sent:      	Fri, 10 Dec 1999 12:41:43 +0800
From:           	CWen56 <[email protected]>
To:             	ns-users <[email protected]>
Subject:        	xgraph installation!!

> 
> Hi!
> the new hand gets into the confused problem with xgraph
> thanks everyon's help I could run NS and nam on Redhat 6.0 well now

Use the xgraph package you find in the ns-allinone distribution, 
then apply the patch for Red Hat systems that you can find on the 
ns server, or in attachment to this message: patch < 
xgraph_strcpy_macro.patch.
Then type make and that's all.
  

--- xtb.c-	Fri Dec  3 15:20:37 1999
+++ xtb.c	Fri Dec  3 15:20:59 1999
@@ -15,6 +15,7 @@
 #include <X11/Xos.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
+#include <string.h>  /* for strcpy */
 #include "xtb.h"
 
 extern void abort();
@@ -47,7 +48,6 @@
 extern char *Malloc();
 
 #define STRDUP(str)	(strcpy(Malloc((unsigned) (strlen(str)+1)), (str)))
-extern char *strcpy();
 extern void Free();