I've just tried compiling lesstif-0.93.34 on a SunOS system, and there's a
minor bug in ResConvert.c (patch attached).

There are System V compatibility libraries available, but that would require
special linking for application programs as well, and would likely be 
error prone (folks wouldn't think to use -L/usr/5lib), and there might
be side effects.

I've also noticed that VOID_SPRINTF isn't tested for (at least, successfully)
in configure, or mentioned in include/LTconfig.h;  this value needs to be
defined for ResConvert.c and Xpm.c to compile on SunOS systems.

--- ResConvert.c.orig	Thu Jun  6 11:22:34 2002
+++ ResConvert.c	Thu Jun  6 11:44:59 2002
@@ -1102,9 +1102,14 @@
     	                      "\n    Name: %s\n    Class: %s\n    ",
 		              XtName(w), XtClass(w)->core_class.class_name);
 #else
-	charsleft -= sprintf(buf,
-	                     "\n    Name: %s\n    Class: %s\n    ",
+#ifndef VOID_SPRINTF
+	charsleft -=
+#endif
+	sprintf(buf, "\n    Name: %s\n    Class: %s\n    ",
 		             XtName(w), XtClass(w)->core_class.class_name);
+#ifdef VOID_SPRINTF
+	charsleft -= strlen(buf);
+#endif
         /* one might add a catch here ... */
 #endif
 

Reply via email to