Red Hat Bugzilla – Bug 509907
Last modified: 2009-07-31 13:38:40 EDT
ldd says there are missing libraries in nx:
-bash-4.0$ ldd /usr/libexec/nx/nxagent
linux-vdso.so.1 => (0x00007fff44fff000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f471a148000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f4719f36000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f4719bfd000)
libz.so.1 => /lib64/libz.so.1 (0x00007f47199e8000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4719764000)
libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x00007f4719553000)
libXcomp.so.3 => not found
libXcompext.so.3 => not found
libXcompshad.so.3 => not found
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f471934a000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f4719145000)
libXtst.so.6 => /usr/lib64/libXtst.so.6 (0x00007f4718f3f000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007f4718d3d000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007f4718b35000)
libXcomposite.so.1 => /usr/lib64/libXcomposite.so.1 (0x00007f4718933000)
libc.so.6 => /lib64/libc.so.6 (0x00007f47185c5000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f47183c3000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f47181a8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4717fa4000)
the 'missing' files are located in /usr/lib64/nx/ where evidently they cannot be found.
cp -n /usr/lib64/nx/* /usr/lib64 fixes this quite nicely.. (some libraries exist in /usr/lib64/ and /usr/lib64/nx/ and they are NOT the same...)
I guess what this really needs is a /etc/ld.so.conf.d/nx-x86_64.conf containing:
followed by a run of ldconfig (preceded in my case by a bit of cleanup)
It appears some of the files in the RPM need to be turned into symlinks also, as follows:
libXcompext.so.3 -> libXcompext.so.3.3.0
libXrender.so.1 -> libXrender.so.1.2.2
libXext.so.6 -> libXext.so.6.4
libXcomp.so.3 -> libXcomp.so.3.3.0
libX11.so.6 -> libX11.so.6.2
libXcompshad.so.3 -> libXcompshad.so.3.3.0
(In reply to comment #0)
> ldd says there are missing libraries in nx:
> -bash-4.0$ ldd /usr/libexec/nx/nxagent
> libXcomp.so.3 => not found
> libXcompext.so.3 => not found
> libXcompshad.so.3 => not found
> the 'missing' files are located in /usr/lib64/nx/ where evidently they cannot
> be found.
This is on purpose as these libs confuse the standard xorg libs and had to be hidden away. /usr/libexec contains executables that are supposed to not be used directly, this is why a direct ldd on them shows funny results.
In fact it once did not hide the modified libs away and even messed up with the buildsystem.
If the ldd was you sole problem, then this bug is closed, but I suspect the ldd is just the tip of the iceberg? What problems do you have that led you to ldd'ing the libexec bits?
What happened was that after I installed nx packages, nxagent would not start, due to the 'missing' libraries. I fixed it by going through the steps I outlined in comment #2 and comment #3.
I will try to put things back the way they were by reinstalling everything, and retest. I have had several issues with nx and I am not sure which may be related.