Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425548 - /usr/lib64/NX/bin/nxagent: symbol lookup error: /usr/lib64/libXtst.so.6: undefined symbol: _XGetRequest
Summary: /usr/lib64/NX/bin/nxagent: symbol lookup error: /usr/lib64/libXtst.so.6: unde...
Status: RESOLVED DUPLICATE of bug 423855
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 22:25 UTC by Joseph
Modified: 2012-07-10 16:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph 2012-07-09 22:25:44 UTC
After upgrade I enabled "KMS" in the kernel for my for my Radeon card and now I can not connect client to "nxserver"
I'm getting an error message:
Connection with the remote server was shut down.
Please check the state with your remote connection.

My remote ssh connection is working OK.

Here is the log from remote nxserver:

...
Info: Not using local device configuration changes.
nxagentXkbGetRules: WARNING! Failed to stat file [/usr/X11R6/lib/X11/xkb/rules/xorg]: Unknown error -1.
/usr/lib64/NX/bin/nxagent: symbol lookup error: /usr/lib64/libXtst.so.6: undefined symbol: _XGetRequest
NX> 1006 Session status: closed
1001 Bye.
server_nxnode_echo: NX> 596 Session startup failed.
nxnode_reader: NX> 1001 Bye.
Info: Closing connection to slave with pid 8770.

NXPROXY - Version 3.5.0

Copyright (C) 2001, 2011 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '13981'.
Session: Starting session at 'Mon Jul  9 09:50:50 2012'.
Info: Connection with remote proxy completed.
Info: Using WAN link parameters 768/24/1/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-9' with session 'shadow'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 1/1.
Info: No suitable cache file found.
Info: Forwarding X11 connections to display ':0.0'.
Info: Listening to font server connections on port '11000'.
Session: Session started at 'Mon Jul  9 09:50:50 2012'.
Info: Established X server connection.
Info: Using shared memory parameters 1/4096K.
Error: Connection with remote peer broken.
Error: Please check the state of your network and retry.
Session: Terminating session at 'Mon Jul  9 09:50:54 2012'.
Session: Session terminated at 'Mon Jul  9 09:50:54 2012'.

Reproducible: Always




Portage 2.1.10.65 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Thu, 28 Jun 2012 22:00:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.1.5, 3.2.3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/openvpn/easy-rsa /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.141.8/gentoo-portage"
USE="X alsa amd64 apache2 berkdb brandingdvd bzip2 cdr cgi cli consolekit cracklib crypt cups cxx dbus dri fam foomaticdb fortran gdbm gimp gimpprint gpm iconv ipv6 java jpeg lm_sensors lock mmx modules mudflap multilib mysql ncurses nls nplt nptl opengl openmp pam pcre png policykit ppds pppd readline scanner session spell sse sse2 ssl startup-notification tcpd tetex thunar tiff truetype type1 udev unicode usb xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="fujitsu" USERLAND="GNU" VIDEO_CARDS="intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Joseph 2012-07-09 22:30:31 UTC
When I run:
nm -D /usr/lib64/libX11.so | grep XGetRequest

I get:
0000000000047600 T _XGetRequest
The above result is on the server where I get error conneting to.

When I run the same command on the server that freenx is working OK
nm -D /usr/lib64/libX11.so | grep XGetRequest
There is no output: the "libX11.so" does not contain: 
0000000000047600 T _XGetRequest
Comment 2 Joseph 2012-07-09 22:32:03 UTC
Apology server Info was from anohter system, here is correct information:
Portage 2.1.10.65 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.1.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.1.10-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.1
Timestamp of tree: Mon, 09 Jul 2012 17:30:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.1.5, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo voip
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/openvpn/easy-rsa /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/voip"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cgi cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam fbdev firefox flac foomaticdb fortran gdbm gif gimp gpm gtk iconv ipv6 java jpeg lcms ldap libnotify lm_sensors lock mad mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nplt nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support readline scanner sdl session spell sse sse2 ssl startup-notification svg tcpd tetex thunar tiff truetype type1 udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="fujitsu" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 xenon.kay 2012-07-10 02:24:00 UTC
I've been experiencing the same issue since updating xorg to 1.12.2

It does not appear to be related to any kernel settings, as these have remained unchanged.

The same error affects both nxserver-freenx and x2go, which both rely on the nx package for nxagent.

Re-emerging didn't accomplish anything. I even let the system re-emerge world overnight just to be sure.
Comment 4 Joseph 2012-07-10 03:18:02 UTC
(In reply to comment #3)
...
> 
> Re-emerging didn't accomplish anything. I even let the system re-emerge
> world overnight just to be sure.

I don't think re-emerging the system will solve your problem.
I've unmerged net-misc/nxserver-freenx and emerged net-misc/nxserver-freeedition

Here are some hints, where to find the ssh-key for the client etc.:
http://www.nomachine.com/documentation/admin-guide.php

freeedition worked for me.
Comment 5 xenon.kay 2012-07-10 07:10:16 UTC
(In reply to comment #4)
> Here are some hints, where to find the ssh-key for the client etc.:

I had no issue at all with the initial setup. The application was working flawlessly until I updated Xorg and it appears to be a new library problem. I expect nxserver-freeedition works simply because it's a binary package.

I did a little experimenting and discovered a strange interaction between libX11 and libXtst that appears to trigger it.

What I found is that libX11 cannot be on version 1.5.0 when you build libXtst or it'll cause the error when executing nxagent, even if you rebuild the nx package. You can build either version of libXtst in the repo while libX11 1.4.4 is installed and it won't exhibit the issue. You can even update libX11 afterward and nxagent will continue to work so long as you do not recompile libXtst.

libXtst 1.2.1 built with libX11 1.5.0:
-----
# nm -D /usr/lib64/libXtst.so.6 | grep XGetRequest
                 U _XGetRequest
# nm -D /usr/lib64/libX11.so.6 | grep XGetRequest
000000000004e840 T _XGetRequest
# nxagent --unrecognizedoption
./nxagent: symbol lookup error: /usr/lib64/libXtst.so.6: undefined symbol: _XGetRequest
-----

libXtst 1.2.1 built with libX11 1.4.4:
-----
# nm -D /usr/lib64/libXtst.so.6 | grep XGetRequest
# nm -D /usr/lib64/libX11.so.6 | grep XGetRequest
# nxagent --unrecognizedoption
Unrecognized option: --unrecognizedoption
use: X [:<display>] [option]
(list of usage options snipped)
-----

Updating libX11 to 1.5.0 while leaving libXtst alone (just for curiosity's sake):
-----
# nm -D /usr/lib64/libXtst.so.6 | grep XGetRequest
# nm -D /usr/lib64/libX11.so.6 | grep XGetRequest
000000000004e840 T _XGetRequest
# nxagent --unrecognizedoption
Unrecognized option: --unrecognizedoption
use: X [:<display>] [option]
(list of usage options snipped)
-----

So long as libXtst contains no reference to _XGetRequest, nxagent behaves itself.

For the time being I've downgraded to libX11 1.4.4 and recompiled everything X-related (All of Xorg's components look for _XGetRequest if they were built with libX11 1.5), but it seems to me that it's the nx package that needs to be fixed to cope with the new library version.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-10 14:40:04 UTC
Have you run revdep-rebuild since upgrading? Did you at least rebuild x11-libs/libXtst?
Comment 7 Joseph 2012-07-10 15:02:03 UTC
(In reply to comment #6)
> Have you run revdep-rebuild since upgrading? Did you at least rebuild
> x11-libs/libXtst?

Yes, I run revdep-rebuild several times during upgrade.
NO, there was no speicific instruction to rebuild x11-libs/libXtst.
I wouldn't even know that that lib causing the problem unless xenon.kay had mentioned it.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-07-10 16:20:26 UTC

*** This bug has been marked as a duplicate of bug 423855 ***