MAGIC Magic Mailing List
 
 

From: Albert Ma (ama AT cag DOT lcs.mit.edu)
Date: Fri Oct 13 2000 - 17:17:08 EDT


the following files reference sys_errlist[errno], this variable is not
necessarily defined in all systems (e.g. Solaris).  I think you can use
strerror(errno) instead, it's part of ANSI C.

plot/plotPixels.c
plot/plotRutils.c
windows/windCmdAM.c


This is a patch that fixes the :ld script.  On systems other than IRIX,
linux, and freebsd, ld didn't get executed.

Index: :ld
===================================================================
RCS file: /ufs/repository/magic/utils/:ld,v
retrieving revision 1.2
diff -u -r1.2 :ld
--- :ld	2000/09/22 20:56:43	1.2
+++ :ld	2000/10/13 21:16:40
@@ -3,10 +3,14 @@
 if ( -x /bin/uname ) then
 	if (`/bin/uname` == IRIX  || `/bin/uname` == Linux) then
 		ld `echo $* | sed 's/\-lm/\/usr\/lib\/libm.a/g' `
+	else
+		ld $*
 	endif
 else if ( -x /usr/bin/uname ) then
 	if (`/usr/bin/uname` == FreeBSD) then
 		ld `echo $* | sed 's/\-lm/\/usr\/lib\/libm.a/g' `
+	else
+		ld $*
 	endif
 else
 	ld $*


 
 
Questions? Contact Rajit Manohar
cornell logo