On Wed, 20 Sep 2006, Edward L. Chapin wrote:
> Currently I'm stuck on an apparently failed X11 dependency in gwm:
>
> configure: error: No X11 development system found. Cannot continue
> configure: error: /bin/sh './configure' failed for gwm
> configure: error: /bin/sh './configure' failed for libraries
>
> I looked at configure.ac for gwm and see that the message is caused by
>
> AC_PATH_XTRA
>
> I've been looking at the definition of this macro to see what it does:
>
> thirdparty/fsf/autoconf/lib/autoconf/libs.m4
>
> and found the place where it fails. If you follow through AC_PATH_XTRA
> (via AC_PATH_X) you get to:
>
> _AC_PATH_X_XMKMF
Hi Ed,
the xmkmf stuff is probably not relevant to you, as X.Org have moved away
from the Imake build system to one based on autotools (to check this see
if you have an "xmkmf" command). If this is true then the fixed search
path of places should be used to locate X11 (this in fact what happens
under FC5, the list is in _AC_PATH_X_DIRECT).
> Here ac_x_includes gets set to "no" and ac_x_libraries set to
> "/usr/X11R6/lib", hence the failure. Inside the includes check it looks
> for $ac_im_incroot/X11/Xos.h which sure enough doesn't exist
> (ac_im_incroot is /usr/X11R6/include) - the /include directory doesn't
> exist there. However, I do have a /usr/include/X11/Xos.h
>
> Inside the gwm directory if I instead do
>
> ./configure --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11/
>
> it seems to work to completion.
That's probably because using these options avoids any further checking.
The real test is if the package compiles, installs and runs its check.
I suspect this is still failing on your machine.
> I then decided to go back to the top of my starlink build tree and
> attempt a new configure -C before doing make world, using the same
> configure options. When it gets down to gwm it borks on the same X11
> dependency - should options passed to the top-level configure script get
> passed to the children?
Yes they should, but try removing the cache first.
> For reference, I've installed X development files with the following
> packages:
>
> sudo apt-get install libx11-dev
OK, as I said I suspect you don't have enough of the X11 development
system installed (and the finding of the include & lib directories is a
red-herring) and configure cannot actually build an X11 program. For
instance, peering at the Ubuntu package lists, you will probably also need
libxt-dev as well, plus some others, so I'd recommend installing
"xorg-dev", which looks much more comprehensive.
While playing around like this it's best try to build something concrete,
like GWM, by hand and add in things as they become clear.
Cheers,
Peter.
|