I downloaded the srcdist of lesstif-0.92.5 and built it on UnixWare 2.1.2
and using the X11R5 headers and libraries that came with UnixWare.
Note that I forced it to use the UnixWare cc compiler and forced the CFLAGS
to contain -Xc option to enable strict ANSI.  Without these it would have
defaulted to using gcc, and no -Xc option.

The full configure command I used was:
--------------------
CC=cc CFLAGS="-O -Xc" ./configure --enable-production --disable-debug 
--enable-build-12 --enable-build-20 --enable-static --disable-shared --with-editres 
--x-includes=/usr/X/include --x-libraries=/usr/X/lib 
--with-motif-includes=/usr/X/include --with-motif-libraries=/usr/X/lib
--------------------

It was basically a success.  Here are some problems I encountered:


1. Using UnixWare's 'make' command instead of GNU make, I now get this
   error:

--------------------
$ make
UX:make: WARNING: No suffix list.
Making all in include
UX:make: ERROR: Must be a separator on rules line 359 (bu39).
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
--------------------

   Looking in include/Makefile, these are the offending lines near
   the end of the file:

--------------------
    SUBDIRS += Motif-2.0
#    SUBDIRS += Motif-2.1
--------------------

   I think the += operator is a GNU make extension that is not universally
   supported by all 'make' programs.

   This is likely to be just the tip of the iceberg.  There are probably
   many makefiles that would only work with GNU make.  This happens to
   be the next place that we aborted with UnixWare's make.

   Anyway, I changed to using GNU make to continue the build, and it
   completed without failures.


2. When I ran "configure", I noted the following:

--------------------
checking for gethostbyname... no
checking for gethostbyname in -lnsl... no
--------------------

   On UnixWare (and I'm pretty sure the same on Solaris), gethostbyname()
   lives in libsocket, not libnsl.  Thus, this check should look there.
   However, this didn't seem to affect the outcome of the compile.


3. Everything compiled fine, but there were some compile warnings.
   Many were related to the '#ident' directive found in UnixWare's
   X11R5 headers, which is an ANSI extension.  With 'cc -Xc' which
   turns on strict ANSI checking, caused these to produce warnings.
   I made a list of all compile warnings with these #ident stuff filtered
   out (because I think they are really a local problem).  I will send
   this list send to Alexander Mai for perusal.  Some of these may be
   worth looking into.


Looking good.  I did not do any actual functionality tests yet on
the libraries and clients, nor did I do a 'make install'.

-Ti (author of xmcd, xmmix)
-- 
    ///  Ti Kan                Vorsprung durch Technik
   ///   AMB Research Laboratories, Sunnyvale, CA. USA
  ///    [EMAIL PROTECTED]
 //////  http://www.ibiblio.org/tkan/
///

Reply via email to