nxserver-personal seems to be installing dynamic libraries that ld incorrectly tries to link generic applications against. The end result is that nothing links. Here is an example error. "/usr/NX/lib/libXcompext.so.1" is always the culprit. gcc -march=athlon -O2 -pipe -Wall -o gimp-remote-2.0 gimp-remote.o -Wl,--export-dynamic -L/usr/X11R6/lib /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lSM -lICE -lX11 -lXmu -lXt /usr/NX/lib/libXcompext.so.1: undefined reference to _NXSplitParams' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableCleanAlloc' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableCleanFlush' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXLostSequenceFunction' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableImageFrame' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXFlushSize' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXColorParams' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableImageSplit' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableCleanImages' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableImageMask' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXImageEnvironmentCached'/usr/NX/lib/libXcompext.so.1: undefined reference to _NXCleanupEnvironmentCached' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableCleanGet' /usr/NX/lib/libXcompext.so.1: undefined reference to _NXEnableCleanSend' collect2: ld returned 1 exit status make[3]: *** [gimp-remote-2.0] Error 1 make[3]: Leaving directory /var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/tools' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory /var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /var/tmp/portage/gimp-2.0.0/work/gimp-2.0.0' make: *** [all] Error 2 !!! ERROR: media-gfx/gimp-2.0.0 failed. !!! Function src_compile, Line 89, Exitcode 2 !!! (no error message) ---8<----8<---- Surely /usr/NX/anything shouldnt be in ld.so.conf and other such files? NX wraps all execution with LD_PRELOAD, doesn't it? Reproducible: Always Steps to Reproduce: 1. emerge nxserver-personal 2. emerge gimp pango or whatever Actual Results: ld complains about symbols in libXcompext. maze root # emerge info Portage 2.0.50_pre20 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040117-r0, 2.6.3-rc4-gentoo) ================================================================= System uname: 2.6.3-rc4-gentoo i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.10 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="S3TC X acpi apm autofs avi berkdb canna cjk crypt cups dga dvd encode evms2 fbcon foomaticdb freewnn gdbm gif gnome gpm gtk gtk2 imap imlib jack jpeg kde ladcca lcms libg++ libwww mad maildir mikmod motif moznoirc moznomail mozsvg mpeg ncurses nls oggvorbis opengl oss pam pdflib png python qt quicktime readline sasl sdl slang spell sse svga tcpd truetype usb x86 xml2 xmms xv zlib"
*** This bug has been marked as a duplicate of 44028 ***
*** Bug 48664 has been marked as a duplicate of this bug. ***