<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!-- $Id: known.html,v 1.8 1999/06/09 21:42:43 danny Exp $ -->
<!-- BEGINNING of header -->
<html>
  <head>
    <title>Known problems</title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <table border=0 width="100%">
      <tr><td><img src="imgs/lesstif.jpg" align=left></td></tr>
    </table><br>

<!-- BEGINNING of content -->

This file contains some known problems with particular releases, and
suggests work arounds or upgrades as appropriate.  For more general
information about LessTif, you may want to see the <a
href="FAQ.html">faq</a>. 

<br>

   <h2> Release 0.88.1 </h2>
	<ul>
	<li> /usr/lib/dld.sl: Unresolved symbol: _XmNSEEditResCheckMessages (code)
	<p> This happens when compiling with X11R5, and without builtin editres
	    support. Remove the #ifdef and #endif at the beginning and end of
	    lib/Xm/LTV5Editres.c
	<li> Building on Digital UNIX with CC compiler is known to work after
	     installing GNU flex 2.5.4, making sure GLOB_MAGCHAR gets defined
	     at line 53 in include/LTglob.h, and starting configure with
	<pre>
	CC="cc -std1" LEX="/usr/local/bin/flex" ./configure
	</pre>
	<li> On a Sun Solaris 2.6 SPARC with the SUNWspro compiler. 
In order to get past an undefined _Xconst in lesstif-0.88.1/lib/Xm/AtomMgr.c, I
hacked in the following lines at the front of lesstif-0.88.1/include/LTconf.h:
	<pre>
	#define FUNCPROTO 1
	#include <X11/Xfuncproto.h>
	</pre>

	<li> configure is broken in 0.88.1
	<pre>

Change these two tests in configure 

    if libtool --features | grep shared | grep -q ....
          lt_libtool_shared="no"
    fi
    if libtool --features | grep static | grep -q ....
          lt_libtool_static="no"
    fi

by

    lt_libtool_shared=enable_shared
    lt_libtool_static=enable_static

or add "." in your PATH before run configure.

You should re run configure.


You could also manually create links as:

cd /usr/local/lib
ln -s ../LessTif/Motif1.2/lib/lib*.so* .
ln -s ../Lesstif/Motif2.0/lib/lib*.so* .
	</pre>
	</ul>
   <h2> Release 0.87.0 </h2>
	<ul>
	<li> No important problems known.
	</ul>
   <h2> Release 0.86.9 </h2>
	<ul>
	<li> No important problems known.
	</ul>
   <h2> Release 0.86.5 </h2>
	<ul>

	<li>
	<dl>
	<dt> Problem:
	<dd>
		The version number in configure.in wasn't updated properly.
		This will probably only affect the LesstifVERSION_STRING in
		Xm.h.
	<dt> Solution:
	<dd>
		This is pretty safe to ignore, but for the pedantic,
		upgrade to lesstif-current.tar.gz, or edit
		include/Motif-1.2/Xm/Xm.h, and set LesstifVERSION_STRING to
		"GNU LessTif 0.86 5".

	</dl>
	<li>
	<dl>
	<dt>Problem:
	<dd>
		Mwm doesn't build out of the box. Error messages complain
		about LEXLIB and such.
		The reason is that we inadvertently used an automake 1.3
		macro in configure.in while our server still runs automake 1.2.
	<dt>Clean solution:
	<dd>
		Replace the call of AM_PROG_LEX in configure.in by
		AC_PROG_LEX and AC_DECL_YYTEXT. (These need to be
		two distinct lines with just one word each on them.)
		Then run <i>autoheader; automake -i; autoconf</i>
		(as you would need to with a copy of our CVS sources),
		then rerun configure.
	<dt>Quick solution:
	<dd>
		edit clients/Motif-1.2/mwm/Makefile and replace the
		strings @LEXLIB@ and @LEX_OUTPUT_ROOT@ .
		If you have flex, then @LEXLIB@ needs to become -lfl.
		If you have lex, then @LEXLIB@ needs to become -ll.
		Either way, @LEX_OUTPUT_ROOT@ should be lex.yy .

	</dl>
	<li>
	<dl>
	<dt>Problem:
	<dd>
		The NOTES files in releases from 0.85 up to and including
		0.86.5 aren't an accurate description of what changed.
		This is due to bugs in our release script.
	<dt>Solution:
	<dd>
		We're trying to reconstruct the NOTES files so releases
		after 0.86.5 will have a decent content in it.
	</dl>

	<li>
	<dl>
	<dt>Problem:
	<dd>
		A 2.0 build fails because of an undefined symbol
		"TB_ToggleMode".
	<dt>Quick solution:
	<dd>
                Edit lib/Xm-2.0/ToggleB.c.  Around line 1011, find the
	reference to to TB_ToggleMode, and replace the entire
	if/then/else clause with:<br>
	<tt>	TB_VisualSet(w) = TB_IndicatorSet(w) = !TB_Set(w);<br>
	<dt>Better solution:
	<dd>
	        Upgrade to lesstif-current.
	</dl>
	</ul>


<!-- BEGINNING of footer -->
    <br>
    <center>
      <font size="-1">
Send any questions or comments to the
<a href="mailto:lesstif@hungry.com">mailing list</a>.
      </font>
    </center>
  </body>
</html>
<!-- END of footer -->
