[comp.windows.x] Building X11R4 on an hp800 system

Damon.Lipparelli@cs.cmu.edu (01/11/90)

I have had a touch of trouble building X11R4 on my hp 835 running hpux 3.1.
I found that the file ./server/os/4.2bsd/connection.c needed some modification
to compile.  I needed to define the structure sockaddr_un and define the
variable unsock outside the #ifdef UNIXCONN (around line 240).  After this,
everything with the exception of xmh built fine.  Everything built seems to
run fine except for xman.  I didn't want to get rid of the binaries, libraries,
etc for X11R3 so I built X11R4 in a non-standard place.  After major additions
to site.def to get all of the directories built where I want them, I started
the make World.  Now, xman can't find the application defaults directory.
Even with the XAPPLRESDIR variable set.  The other applications need the
XAPPLRESDIR var set, but otherwise work fine.  I did some mucking around the
code in ./lib/Xt/Initialize.c and found that xman gets the right application
defaults file, but for some reason doesn't use it.  The only way xman will
come up is if I sym-link /usr/lib/X11/app-defaults (the current location of
the X11R3 app-defaults) to the directory where I put the X11R4 app-defaults.
I'm not sure where the bug in this lies, but I believe it must either be
in xman or the hp800 server since all of the other applications can find
the app-defaults once the var is set.

Any ideas?

Sorry if this is long-winded; any help would be greatly appreciated.

Thanks,
Damon Lipparelli
(lipp@cs.cmu.edu)

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/11/90)

    Now, xman can't find the application defaults directory.
    Even with the XAPPLRESDIR variable set.

XAPPLRESDIR won't solve this problem (it's a long story, you can read the
Xt spec if you really want to know).  You need to set XFILESEARCHPATH to get
around it:

setenv XFILESEARCHPATH "<root>/%L/%T/%N%S:<root>/%l/%T/%N%S:<root>/X11/%T/%N%S"

But, a better fix is to whack lib/Xt/IntrinsicI.h to set XFILESEARCHPATHDEFAULT
and ERRORDB to the right place, and then rebuild.  (The right fix is to have
this properly controlled in the Imakefile, based on the configuration
parameters.)

Damon.Lipparelli@cs.cmu.edu (01/11/90)

I also wanted to add to my previous post that after extensive investigation,
(ie, looking in every source file I could find), I could not find where the
definition of the app-defaults directory was ever used.  That is, I couldn't
find a file that used the variable XAPPLOADDIR.  The file ./lib/Xt/Initialize.c
is compiled with -DXAPPLOADDIR=<the dir I specified>, but it's never
referenced.

Does this make sense?

Thanks,
Damon Lipparelli
(lipp@cs.cmu.edu)