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

cognitive.libertarian+ml at gmail.com cognitive.libertarian+ml at gmail.com
Sat Apr 23 10:18:11 UTC 2011


* chris at ccburton.com <chris at ccburton.com> [2011-04-23 11:31]:
> 
> You don't trouble us with any information about your distro but if
> it provides several .deb files for a full installation you might
> find you are short of one (or two).

I'm running Debian 5.0 (lenny) 32bit inside an OpenVZ container.

My installation became a Frankenstein.  I'm confused about what
products are what.. is freenx the same product as nomachine?  

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.

Next I tried using the nomachine package:

  $ wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-7_i386.deb
  $ wget http://64.34.161.181/download/3.4.0/Linux/nxnode_3.4.0-16_i386.deb
  $ wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver_3.4.0-17_i386.deb
  $ dpkg -i nxclient_3.4.0-7_i386.deb

Missing libaudiofile0 error.

  $ aptitude install libaudiofile0

Fails for the same reason x2go fails (fuse cannot install due to hotplug problems).

The Debian packages for both x2go and nomachine require hardware
device access to udev and thus hotplug.  So moving on, the only
remaining option was Neatx.  My impression of Neatx is that it's
half-baked, but it has the distinct advantage of not requiring special
privileges to obscure kernel modules, and can therefore feasibly run
inside of a VE container.

So I gave NeatX a go, and it seems to also be using parts of freenx
components just as the other tools do.  I took an installation
approach combining steps from both of these two guides:

  * http://people.binf.ku.dk/~hanne/b2evolution/blogs/index.php/2009/09/01/neatx-is-the-new-black
  * http://blog.mc-thias.org/?title=neatx-on-linux-mint-debian&more=1&c=1&tb=1&pb=1

I've actually solved the missing libXcomp.so.3 problem, and I face a
new problem.  

First, I'll detail how to solve the missing libXcomp.so.3 problem in
case anyone else encounters the same issue:

  $ cat > /etc/ld.so.conf.d/nx.conf <<EOF
/usr/local/nx/nxcomp/
/usr/local/nx/nxcompext/
/usr/local/nx/nxcompshad/
/usr/NX/lib
EOF

  $ ldconfig -n /usr/NX/lib
  $ ldconfig /usr/local/src/nx/nxcomp/libXcomp*
  $ ldconfig /usr/local/nx/nxcompext/libXcompext*
  $ ldconfig /usr/local/nx/nxcompshad/libXcompshad.so.3

  $ 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"

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

That resolved the missing libXcomp.so.3 problem.  
--------------------------------------------------

The current problem (logged in syslog):

  /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
/usr/X11R6/bin/nxagent: /usr/NX/lib/libpng12.so.0: no version information available (required by /usr/local/src/nx/nxcomp/libXcomp.so.3)
/usr/X11R6/bin/nxagent: /usr/NX/lib/libpng12.so.0: no version information available (required by /usr/local/src/nx/nxcompext/libXcompext.so.3)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7f25000)
        ...
        libXcomp.so.3 => /usr/local/src/nx/nxcomp/libXcomp.so.3 (0xb7ce7000)
        libXcompext.so.3 => /usr/local/src/nx/nxcompext/libXcompext.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, but
nxagent reports "No such file or directory" for libXcompext.so.3.
There appears to be a library conflict with libpng12.so.0.  Would that
cause libXcompext.so.3 to go missing?



More information about the FreeNX-kNX mailing list