CORRECT SOLUTION: X11 lib links

From: michael (linux_at_networkingnewsletter.org.uk)
Date: 02/28/05

  • Next message: Michael Marsh: "Re: help needed with broken dependencies"
    To: debian user <debian-user@lists.debian.org>
    Date: Mon, 28 Feb 2005 17:15:42 +0000
    
    

    On Mon, 2005-02-28 at 13:02 +0000, michael wrote:
    > On Mon, 2005-02-28 at 13:50 +0100, Jan Nordholz wrote:
    > > > Okay, maybe I'm not quite awake today but how come if I have
    > > > said file
    > > > $ ls -lt $PWD/libX11.so.6.2
    > > > -rw-r--r-- 1 root root 813680 Dec 15 19:18 /usr/X11R6/lib/libX11.so.6.2
    > > >
    > > > that this fails:
    > > > $ ifort -O -o cmpfil cmpfil.f -L/usr/X11R6/lib -lX11
    > > > ld: cannot find -lX11
    > > >
    > > Hi Michael,
    > >
    > > make sure that there's also /usr/X11R6/lib/libX11.so (should be
    > > a symlink to the actual library) - _that's_ the name ld is
    > > looking for (or .a, if you're linking statically - I don't know
    > > about ifort and what options it passes to the linker).
    >
    >
    >
    > Aha - for some reason the setup was
    > b$ ls -lt libX11*
    > lrwxrwxrwx 1 root root 13 Feb 10 10:54 libX11.so.6 -> libX11.so.6.2
    > -rw-r--r-- 1 root root 813680 Dec 15 19:18 libX11.so.6.2
    >
    > is no link from libX11.so
    >
    > After adding sym link myself it seems to pick up -lX11 no probs.
    >
    > However, it now cannot get -lXext presumably since there is no
    > libXext.so link to the actual files...
    >
    > this sounds like, somehow, the whole of X11R6/lib is incorrectly set up
    > any suggestions as to how come and how to sort it out (as far as I can
    > recall (but how to double chk?) I've not messed with this dir at all....
    >
    > cheers, Michael

    Ah, I have just been informed (thanks to

    Julien Cristau
    that I should have been using libX11-dev to get the .so links (and
    headers). For further info, see bug #297315: libX11-6: missing links

    -- 
    Michael Bane
    Atmospheric Physics Group
    University of Manchester
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Michael Marsh: "Re: help needed with broken dependencies"

    Relevant Pages