From: Philip Daniels (pd@doc.ic.ac.uk)
Date: 04/21/93


From: pd@doc.ic.ac.uk (Philip Daniels)
Subject: Re: Getting COLOR Xterm to compile
Date: 21 Apr 1993 11:55:15 +0100


>In article <s_fuller.735197682@vincent1.iastate.edu>, s_fuller@iastate.edu (Steve Fuller) writes:
>> When compiling menu.c gcc stops with an "No way to make target.
>> `/usr/X386/lib/libXaw.a`
>> Going to the directory /usr/X386/lib on my system gives me three
>> directories; Server, X11, and scores. There IS a file called
>> libXaw.a in my /usr/lib directory. Is this a linking problem?? I
>> did run xmkmf and make clean before the compile....

  I guess that you are running the SLS based X? There is a slight
problem with the configuration of imake. If you examine Makefiles produced
by imake (try touch Imakefile; xmkmf; to get one) then you will see that
UsrLibDir is wrongly defined - this variabel appears quite a way down. The
fix is to

  a) edit all your makefiles, correcting value of UsrLibDir from /usr/X386/lib
     to /usr/lib

or b) (much better :-) edit the file /usr/X386/lib/X11/config/site.def.
      just add the line `#define UsrLibDir /usr/lib' somewhere after
      the #ifdef BLURB ( I think the BLURB is #ifdef AfterVendorCF, but I
      can't quite remember, sorry). This will override the default value.

   c) You could actually add the #define in the Imakefile itself if you
      don't want to play around with imake configuration files.

  If you're still confused, there is an explanation of how imake works on
indri.primate.wisc.edu.
  BTW, it would be a good idea to ship this as part of the X documentation,
I think. Probably also the FAQ for comp.windows.x.

-- 

- Phil. (pd@doc.ic.ac.uk)

Brain failure (cerebral coretex dumped)