merging nx-x11-1.4.0-r2 installs only 'libXcomp.so' in '/usr/NX/lib'. I had to manually copy the following libraries from the work directory to get nxserver-freenx to work: libXcompext libX11 libXext libXrender Reproducible: Always Steps to Reproduce: 1. 2. 3.
Here're the last few lines from the build log: >>> Install nx-x11-1.4.0-r2 into /var/tmp/portage/nx-x11-1.4.0-r2/image/ category net-misc ln: creating symbolic link `/var/tmp/portage/nx-x11-1.4.0-r2/image//usr/NX/lib/../nxcomp/libXcomp.so' to `libXcomp.so.1.4.0': No such file or directory ln: creating symbolic link `/var/tmp/portage/nx-x11-1.4.0-r2/image//usr/NX/lib/../nxcompext/libXcompext.so' to `libXcompext.so.1.4.0': No such file or directory ln: creating symbolic link `/var/tmp/portage/nx-x11-1.4.0-r2/image//usr/NX/lib/lib/X11/libX11.so' to `libX11.so.6.2': No such file or directory ln: creating symbolic link `/var/tmp/portage/nx-x11-1.4.0-r2/image//usr/NX/lib/lib/Xext/libXext.so' to `libXext.so.6.4': No such file or directory ln: creating symbolic link `/var/tmp/portage/nx-x11-1.4.0-r2/image//usr/NX/lib/lib/Xrender/libXrender.so' to `libXrender.so.1.2': No such file or directory man: prepallstrip: strip: strip: usr/NX/bin/nxpasswd usr/NX/bin/nxviewer usr/NX/bin/nxdesktop usr/NX/bin/nxauth usr/NX/bin/nxagent >>> Completed installing into /var/tmp/portage/nx-x11-1.4.0-r2/image/
I think the problem are wrong "dolib" statements in the ebuild. The fix is not really that difficult, so I don't upload a patch but post the changes here. I have changed the dobin lines as follows: --- nx-x11-1.4.0-r2.ebuild 2004-09-13 02:41:02.000000000 +0200 +++ nx-x11-1.4.0-r3.ebuild 2004-11-22 18:58:49.686829088 +0100 @@ -72,11 +72,13 @@ dobin ../nxviewer/nxpasswd/nxpasswd dobin ../nxdesktop/nxdesktop - dolib ../nxcomp/libXcomp.so - dolib ../nxcompext/libXcompext.so - dolib lib/X11/libX11.so - dolib lib/Xext/libXext.so - dolib lib/Xrender/libXrender.so + dolib ../nxcomp/libXcomp.so.1.4.0 + dolib ../nxcompext/libXcompext.so.1.4.0 + dolib lib/X11/libX11.so.6.2 + dolib lib/Xext/libXext.so.6.4 + dolib lib/Xrender/libXrender.so.1.2
Does this fix the lib symlinks as well? I haven't tried it yet. Also, not sure if this is related, but I'm getting a lot of the following when running nx programs (like nxdesktop, nxviewer, etc.) symbol lookup error: /usr/NX/lib/libXcompext.so.1: undefined symbol: _NXEnableCleanGet
Yes, it fixes the symlinks as well. I am successfully running a FreeNX server now ;) Voila: drwxr-xr-x 2 root root 4096 22. Nov 19:05 . drwxr-xr-x 9 root root 4096 22. Nov 05:52 .. lrwxrwxrwx 1 root root 13 22. Nov 19:05 libX11.so.6 -> libX11.so.6.2 -rw-r--r-- 1 root root 887692 22. Nov 19:05 libX11.so.6.2 lrwxrwxrwx 1 root root 20 22. Nov 19:05 libXcompext.so.1 -> libXcompext.so.1.4.0 -rw-r--r-- 1 root root 65744 22. Nov 19:05 libXcompext.so.1.4.0 lrwxrwxrwx 1 root root 17 22. Nov 19:05 libXcomp.so.1 -> libXcomp.so.1.4.0 -rw-r--r-- 1 root root 1111252 22. Nov 19:05 libXcomp.so.1.4.0 lrwxrwxrwx 1 root root 14 22. Nov 19:05 libXext.so.6 -> libXext.so.6.4 -rw-r--r-- 1 root root 62132 22. Nov 19:05 libXext.so.6.4 lrwxrwxrwx 1 root root 17 22. Nov 19:05 libXrender.so.1 -> libXrender.so.1.2 -rw-r--r-- 1 root root 29028 22. Nov 19:05 libXrender.so.1.2 There is a bug in the freenx-gentoo.diff Patch included into freenx 0.2.7 (which I use): You have to manually change "nxnode-login" to "$NX_DIR/bin/nxnode-login" in line 490. I already reported that to the author of FreeNX. Concerning your other question (unresolved symbols), this is caused by some nx programs (like nxdesktop) being linked to a special version of libX, to be found in /usr/NX/lib. If you invoke those programs directly, the loader will take your "real" X libraries, not the special NX version. That's why nxserver on Gentoo invokes those programs not direcly (like "nxdesktop"), but with the loader's behavior adjusted (like "LD_LIBRARY_PATH=/usr/NX/lib nxdesktop").
Thanks David for your great help. PS: Where do you get the 0.2.7 ebuild from? Also, I know this is not the place to ask, but if you're kind enough to answer. How do you get sound and printing support? I can manually send sound from linux to windows (using nxesd on windows), but enabling it in the NX clienet settings doesn't work. Thanks again,
*** This bug has been marked as a duplicate of 71694 ***