[FreeNX-kNX] Re: libXcompext.so.3 missing due to libpng12.so.0 issue (was Re: /usr/NX/lib not in search path..)

chris at ccburton.com chris at ccburton.com
Sat Apr 23 11:35:47 UTC 2011


cognitive.libertarian+ml at gmail.com wrote on 23/04/2011 11:18:11:
> * chris at ccburton.com <chris at ccburton.com> [2011-04-23 11:31]:
[SNIP]
> My installation became a Frankenstein.  I'm confused about what
> products are what.. is freenx the same product as nomachine? 

nomachine provide:-
open source compression libraries, an X server (client in
normal-speak) which runs on the FreeNX server
and
allow you to download their client.

FreeNX, neatx etc provide:-
scripts setting up and management of the user session.

ssh provides an encrypted link.

> Initially I intended to simply install the freenx deb packages from
> http://packages.debianbase.de/ but it's actually just a blank page.
> No repository.

I Don't use it so I'm not much help here.
[SNIP]
> So I gave NeatX a go, and it seems to also be using parts of freenx
> components just as the other tools do.

You mean the nomachine NX libraries Xserver etc not FreeNX
[SNIP]
>   $ cat > /usr/X11R6/bin/nxagent-wrapper.sh <<EOF
> #!/bin/bash
> 
> export LD_LIBRARY_PATH="/usr/local/nx/nxcomp:
> /usr/local/nx/nxcompext:/usr/local/nx/nxcompshad:/usr/NX/lib"

OK,
but
you aren't adding it to your library path, you are overwriting . . 

> 
> exec /usr/X11R6/bin/nxagent "$@"
> EOF
> 
>   $ chmod 755 /usr/X11R6/bin/nxagent-wrapper.sh
>   $ echo -e "\nnxagent-path = /usr/X11R6/bin/nxagent-wrapper.sh" >> 
> /opt/neatx/etc/neatx.conf
> 
[SNIP]
>   /usr/X11R6/bin/nxagent-wrapper.sh stderr: /usr/X11R6/bin/nxagent: \
>   error while loading shared libraries: libXcompext.so.3: \
>   cannot open shared object file: No such file or directory
> 
> I expect libXcompext.so.3 to be found by now, because I already took
> steps to make that possible when fixing the previous missing library.
> When I do the check, it appears libXcompext.so.3 is actually found.
> Abridged output:
> 
>   $ ldd /usr/X11R6/bin/nxagent

This is without changing your
        LD_LIBRARY_PATH
for ldd
so . . . . . . . . . . . 
[SNIP]
>         libXcompext.so.3 => /usr/local/src/nx/nxcompext/libXcompext.

 . . . . . . . . . . it finds one elsewhere,  (src)
cos
LD_LIBRARY_PATH hasn't been overwritten for ldd

> so.3 (0xb7cd8000)
>         libXcompshad.so.3 => 
> /usr/local/src/nx/nxcompshad/libXcompshad.so.3 (0xb7ccb000)
>         ...
>         libpng12.so.0 => /usr/NX/lib/libpng12.so.0 (0xb7b10000)
>         ...
> 
> Notice the 3 libXcomp* libs are now found according to ldd,

. . . . . .  without the new LD_LIBRARY_PATH . . . . . 

> but
> nxagent reports "No such file or directory" for libXcompext.so.3.

. . . with the NEW LD_LIBRARY_PATH which doesn't look in 
        /usr/local/src/nx/nxcomp

> There appears to be a library conflict with libpng12.so.0.  Would that
> cause libXcompext.so.3 to go missing?

I can't see a conflict ???

Compile/install all the SERVER stuff, don't use the client libraries.
Put everything in the right place.
Path the libraries with the wrapper eg.


#!/bin/sh

NXCOMMAND=$(basename $0)

export LD_LIBRARY_PATH=/usr/lib/NX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
exec /usr/lib/NX/$NXCOMMAND ${1+"$@"}


Should fix it.

I do hope you are enjoying all this . . . ;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20110423/a9c3b7fe/attachment.html>


More information about the FreeNX-kNX mailing list