I have had exactly the same failure on 2 machines now. Here is the error messages beginning. The rest is very repetative: /usr/lib/python2.2/config/libpython2.2.a(posixmodul e.o)(.text+0x24b1): In function `posix_tempnam': : the use of `tempnam' is dangerous, better use `mk stemp' objects/if_perl.o(.text+0x21): In function `ex_perl ': : undefined reference to `Perl_Gthr_key_ptr' objects/if_perl.o(.text+0x33): In function `ex_perl': : undefined reference to `Perl_Tstack_sp_ptr' objects/if_perl.o(.text+0x41): In function `ex_perl ': : undefined reference to `Perl_Gthr_key_ptr' objects/if_perl.o(.text+0x5f): In function `ex_perl': : undefined reference to `Perl_Gthr_key_ptr' objects/if_perl.o(.text+0x71): In function `ex_perl ': : undefined reference to `Perl_Ttmps_floor_ptr' objects/if_perl.o(.text+0x7f): In function `ex_perl': : undefined reference to `Perl_Gthr_key_ptr' objects/if_perl.o(.text+0xa1): In function `ex_perl ' Reproducible: Always Steps to Reproduce: 1. 2. 3.emerge -p vim These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] app-editors/vim-6.1-r21 [6.1-r19] emerge info: Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) MP 2200+ GENTOO_MIRRORS="<your_mirror_here> http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /usr/kde/3/share/config /etc/modules.d /etc/init.d /etc/pam.d /etc/cups /etc/X11 /etc/X11/rstart /etc/X11/app-defaults /etc/X11/xinit /etc/X11/fs /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts tetex bonobo svga guile sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr X gtk -alsa tcltk postgres java" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O3 -pipe" CXXFLAGS="-march=athlon-mp -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache buildpkg"
Thanks for your bug report, I haven't seen this problem before. Please do the following and post the output of step 2: 1. emerge epm 2. epm -qa | grep perl
Here is the output of step 2: libperl-5.8.0 perl-5.8.0-r10 libwww-perl-5.64-r1 gtk-perl-0.7008-r9 sdl-perl-1.20.0
Sorry, no ideas forthcoming yet. :-/ Would you mind supplying the entire output of the following command as an attachment? FEATURES=-ccache emerge vim
Created attachment 10073 [details] Complete log of the requested command.
I believe you built perl with USE=threads. In that case you need to build vim with USE=-perl because vim doesn't support perl with threads. Note the warning in the perl ebuild: * * PLEASE NOTE: You are compiling perl-5.8 with * threading enabled. * Threading is not supported by all applications * that compile against perl. You use threading at * your own discretion. * IMHO, unless you need perl+threads, I'd suggest simply emerging perl without threads, then emerge vim.
Yes, doing a new Perl merge without threads then allowed vim to merge without errors. Thank you for resolving this. I read the Perl warning but did not put it together with the vim problem. Would it not be useful to patch the configure.in file for vim to check for threaded Perl (perl -V) and add the appropriate flag and notifications to the user in this case? I could see if I could provide such a patch if you like.
Btw, Bram is adding a patch to Vim so that Perl+threads will automatically set --disable-perlinterp. It won't fail configure, but it will at least prevent Vim from attempting to link against a threaded Perl.