I am running xorg-x11-7.0 and also have NX (net-misc/nx-x11, net-misc/nxclient, net-misc/nxproxy) installed. It looks like for some reason, gvim gets linked to the NX libraries instead of to the system X libraries, can't find the right NX symbols, and so cannot run. In other words: when I do # emerge =gvim-6.4 it emerges successfully, but I get $ ldd /usr/bin/gvim linux-gate.so.1 => (0xffffe000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7c07000) [...] libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6f9c000) libXrender.so.1 => /usr/NX/lib/libXrender.so.1 (0xb6f94000) libXext.so.6 => /usr/NX/lib/libXext.so.6 (0xb6f83000) [...] libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb6caf000) libXcompext.so.1 => /usr/NX/lib/libXcompext.so.1 (0xb6c18000) libasound.so.2 => /usr/lib/libasound.so.2 (0xb6b5a000) libpng.so.3 => /usr/lib/libpng.so.3 (0xb6b35000) libXcomp.so.1 => /usr/NX/lib/libXcomp.so.1 (0xb6a24000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/libstdc++.so.6 (0xb6946000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/libgcc_s.so.1 (0xb693b000) and when I try to run gvim, I get $ gvim gvim: symbol lookup error: /usr/NX/lib/libXcompext.so.1: undefined symbol: _NXEnableCleanGet My emerge --info: Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-gentoo i686) ================================================================= System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.12.0_pre13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium-m -O2 -pipe -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS=" http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac aalib acl acpi adns alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bmp bonobo bzip2 cairo cdparanoia cdr crypt cscope cups curl dbus doc dri dts dv dvd eds emacs emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm geoip gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn ieee1394 imagemagick imlib ipv6 jabber jack java jikes jpeg junit kde lcms libcaca libedit libg++ libwww lua mad mhash mikmod mmx mng mono motif mozilla mp3 mpeg mysql ncurses nls nntp nptl odbc ogg oggvorbis openal opengl oss pam pcmcia pcre pdflib perl php png postgres python qt quicktime readline recode ruby samba scanner sdl slang socks5 speex spell sqlite sse ssl svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf xemacs xine xinerama xml xml2 xmlrpc xmms xprint xv xvid yaz zeroconf zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS (I am using gcc-4.0.2-r3, but compiling vim with gcc-3.4.5 results in exactly the same problem)
Could you post a full build log and src/config.log please?
Created attachment 77143 [details] src/config.log
Created attachment 77144 [details] full gvim emerge log
Created attachment 77145 [details] full output of "ldd /usr/bin/gvim"
Hrm. What does NX actually install? And if it's somewhere outside the normal -I path, does it set an environment variable in env.d or somesuch?
net-misc/nx-x11-1.4.0-r4 installs the following files: /usr/NX/bin/nxagent /usr/NX/bin/nxauth /usr/NX/bin/nxdesktop /usr/NX/bin/nxpasswd /usr/NX/bin/nxviewer /usr/NX/lib/libX11.so -> libX11.so.6.2 /usr/NX/lib/libX11.so.6 -> libX11.so.6.2 /usr/NX/lib/libX11.so.6.2 /usr/NX/lib/libXcomp.so -> libXcomp.so.1.4.0 /usr/NX/lib/libXcomp.so.1 -> libXcomp.so.1.4.0 /usr/NX/lib/libXcomp.so.1.4.0 /usr/NX/lib/libXcompext.so -> libXcompext.so.1.4.0 /usr/NX/lib/libXcompext.so.1 -> libXcompext.so.1.4.0 /usr/NX/lib/libXcompext.so.1.4.0 /usr/NX/lib/libXext.so -> libXext.so.6.4 /usr/NX/lib/libXext.so.6 -> libXext.so.6.4 /usr/NX/lib/libXext.so.6.4 /usr/NX/lib/libXrender.so -> libXrender.so.1.2 /usr/NX/lib/libXrender.so.1 -> libXrender.so.1.2 /usr/NX/lib/libXrender.so.1.2 /usr/X11R6/include/NX.h /var/lib/nxserver net-misc/nxclient-1.4.0-r5 creates /etc/env.d/50nxclient, which contains PATH=/usr/NX/bin ROOTPATH=/usr/NX/bin LDPATH=/usr/NX/lib
Aha. Could you please confirm that removing those variables whilst building vim fixes the problem? If it does, I'll stick something in the eclass.
1. Removed /etc/env.d/50nxclient 2. env-update 3. source /etc/profile 4. emerge gvim 6. gvim works 5. restore /etc/env.d/50nxclient 6. env-update 7. source /etc/profile 8. gvim doesn't work -- same error as before -- symbol lookup error: /usr/NX/lib/libXcompext.so.1: undefined symbol: _NXEnableCleanGet
Ok, it's an NX bug if it's clobbering things during the runtime linking phase.
Upgrading to x11-libs/libX11-1.0.0-r1 fixed this for me (because 1.0.0-r1 creates /etc/env.d/10libx11 which contains LDPATH="/usr/lib")
Closing fixed bug.