#45 Configure fails on Ubuntu Linux with apparent X library issue?

None
closed
nobody
build (2)
5
2013-04-07
2013-01-31
Simon Brooke
No

On Ubuntu 12.04, configure within the subdirectory 'csl' (which I'm guessing/hoping is Cambridge Standard Lisp) fails as follows

simon@fletcher:~/Downloads/reduce-algebra-20101007/csl$ ./configure
[output elided]
configure: error: Unable to link with X libraries. Please install them

Running 'make csltest' from the parent directory fails with an identical error. Running strace on configure and then grepping the output for file openings does not reveal anything helpful.

The failure appears to occur at lines 8238-8243 of csl/configure, as follows:

if ac_fn_c_try_link "$LINENO"; then :

else
as_fn_error $? "Unable to link with X libraries. Please install them" "$LINENO" 5
fi

The following X11 development libraries are installed:

simon@fletcher:~/Downloads/reduce-algebra-20101007/csl$ dpkg -l | grep "X11" | grep "-dev"
ii libice-dev 2:1.0.7-2build1 X11 Inter-Client Exchange library (development headers)
ii libsm-dev 2:1.2.0-2build1 X11 Session Management library (development headers)
ii libx11-dev 2:1.4.99.1-0ubuntu2 X11 client-side library (development headers)
ii libxau-dev 1:1.0.6-4 X11 authorisation library (development headers)
ii libxdmcp-dev 1:1.1.0-4 X11 authorisation library (development headers)
ii libxt-dev 1:1.1.1-2build1 X11 toolkit intrinsics library (development headers)
ii x11proto-core-dev 7.0.22-1 X11 core wire protocol and auxiliary headers
ii x11proto-input-dev 2.1.99.6-1 X11 Input extension wire protocol
ii x11proto-kb-dev 1.0.5-2 X11 XKB extension wire protocol
ii x11proto-render-dev 2:0.11.1-2 X11 Render extension wire protocol

Any advice on what I'm missing would be much appreciated!

Discussion

  • Rainer Schöpf
    Rainer Schöpf
    2013-01-31

    You need:

    libx11-dev
    libxext-dev
    libxft-dev

    You might try to build an ubuntu/debian package; check debianbuild/README for
    instructions.

    Rainer

     
  • Simon Brooke
    Simon Brooke
    2013-02-01

    Should have said - I started last night with the tarball download; despite your help (which got me further) I still couldn't get that to build. This morning I checked out the current trunk from Subversion; that built fine.

    Thanks!

     
  • Rainer Schöpf
    Rainer Schöpf
    2013-04-07

    • labels: --> build
    • status: open --> closed
    • milestone: -->
     
  • Rainer Schöpf
    Rainer Schöpf
    2013-04-07

    We will publish a new tarball soon.