Trying to emerge vim on am64. Calculated dependencies are: app-editors/vim-core-6.3-rs app-editors/vim-6.3-1 during compilation get the following error msgfmt: error while loading shared libraries: libgettextlib-0.14.1.so: cannot op en shared object file: No such file or directory I have sys-devel/gettext-0.12.1-r2 installed, but looking throught portage 0.14 is not yet available for this platform. Are the dependencies listed for vim correct? Reproducible: Always Steps to Reproduce: 1. emerge vim 2. 3. Actual Results: msgfmt: error while loading shared libraries: libgettextlib-0.14.1.so: cannot op en shared object file: No such file or directory Expected Results: installed Portage 2.0.50-r11 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r4) ================================================================= System uname: 2.6.8-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr /kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb bitmap-fonts crypt encode esd f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imli b java jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcpd truetype xml2 xmms xprint xv zlib"
Tried running ldconfig as root?
Ran ldconfig as advised No difference, same error
Hm. Could you attach a complete build log please? I have a vague idea of what possibly could be wrong, assuming it's not an amd64 specific screwup :)
Created attachment 41768 [details] complete output of attempted vim emerge Complete build output as requested
ciaranm, dont think this is an amd-specific thing ; I get the same exact thing with txt2regex, which kinda makes me think this is more of a gettext problem. Wasn't there a recent problem with gettext?
Yeah, that's definitely a gettext bug, not a vim bug. msgfmt is h0rked. What does 'ldd /usr/bin/msgfmt' say? Although, there is a vim nls bug which I just spotted, but it's not related to this...
libgettextsrc-0.12.1.so => /usr/lib/libgettextsrc-0.12.1.so (0x0000002a95658000) libgettextlib-0.12.1.so => /usr/lib/libgettextlib-0.12.1.so (0x0000002a9577c000) libc.so.6 => /lib/libc.so.6 (0x0000002a9588d000) /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000) libgettextlib-0.14.1.so => not found
You need to reemerge whatever provides /lib64/ld-linux-x86-64.so.2 .
I'm new to gentoo, and portage. Is there an option for this on emerge? or do I have to go a hunting?
yeah, emerge gentoolkit then qpkg -f /whatever/the/file/is
the command qpkg -f /lib64/ld-linux-x86-64.so.2 returns no packages
amd64 people -- heeeeeeeeeeeeeeeeeeeeelp!
/lib64/ld-linux-x86_64.so is the amd64 equivalent to /lib/ld-linux.so; thus provided by sys-libs/glibc. No point it re-merging that :-) Mark: Try instead to remerge "sys-devel/gettext". Ciaran: I had this very problem myself. It could be fixed by a remerge of gettext. /usr/bin/msgfmt seems to explictily link version 0.12* though 0.14* has been installed. But i'm too tired to have a look at this now. :-/ This to say at last: This is definitely no vim problem.
Ok, where the heck did I get /lib64/ld-linux-x86_64.so from? I think someone must've put water in my caffeine...
Re-emerging gettext solved the problem on my end. Mark?
Sorry the for delay. Yep solve the problem for me too. Re-emerged gettext and then vim Thanks
Ok, cool. I'll leave this open for now to remind me to fix that other gettext + vim bug I noticed...
The postgresql (postgresql-7.4.5-r2) ebuild suffers from this exact problem too. Reemerging gettext fixes it.
Ciaran: Mind to make this a duplicate of #66449 ?
*** This bug has been marked as a duplicate of 66449 ***