Compiling of vim-6.2-r5 fails when ncurses is compiled with --enable-widec. Reproducible: Always Steps to Reproduce: 1.emerge -v vim 2. 3. Actual Results: Make fails - log in the attachment. Expected Results: emerge vim bash-2.05b# emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-win4lin-r1) ================================================================= System uname: 2.4.20-win4lin-r1 i686 Celeron (Coppermine) Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -march=pentium3 -mfpmath=sse -msse -mmmx -fomit-frame-pointer -pipe -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config /var/qmail/control /var/qmail/alias" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-Os -march=pentium3 -mfpmath=sse -msse -mmmx -fomit-frame-pointer -pipe -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache fixpackages" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/gentoo_tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt encode foomaticdb gif gtk2 gnome libg++ mad mikmod mpeg ncurses pdflib quicktime spell xml2 xmms zlib gdbm berkdb slang readline arts tetex svga java ruby mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl cdr 3dnow alsa apache2 cscope cups doc dv dvd dvdr evms2 fbcon gamma innodb ipv6 jpeg kde lcms maildir matrox mmx nls pda png ruby18 scanner sse tcltk tiff truetype vim-with-x wmf wxwindows xv xml"
Created attachment 22086 [details] log of emerge vim fail
Please send this along to <bugs@vim.org>. I don't think this is going to be a simple distribution-level fix. (I also note that we don't have --enable-widec in the ncurses ebuilds, so you must be using locally-built libs.) When you send your vim bug report, you can say that you're building vim-6.2.140 since that is the patchlevel of the -r5 ebuild. Let me know when you've sent your bug report so I can resolve this bug as UPSTREAM.
<quote>(I also note that we don't have --enable-widec +in the ncurses ebuilds, so you must be using locally-built libs.) </quote> I'm not using locally-built libs, but just tried to emerge vim after adding --enable-widec to ncurses ebuild & ebuilt ncursesw :-) I sent bug-report to <bugs@vim.org>. Sincerely, Gour
Great, thanks! I hope we'll see a fix soon. Of course, the quickest solution will be if you can fix it yourself and give the patch to Bram (via bugs@vim.org) ;-)
Hi! It's not the fix for solution but by following Bram's hint I've discovered that the cause of the problem is very simple. auto/config.log gives several instances like: configure:6218: checking whether termcap.h contains ospeed configure:6231: gcc -o conftest -Os -march=pentium3 -mfpmath=sse -msse -mmmx -fomit-frame-pointer -pipe -funroll-loops -rdynamic -rdynamic -L/usr/local/lib conftest.c -lelf -lnsl -lncurses 1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libncurses.so collect2: ld returned 1 exit status which means that the problem is simple - by compiling ncurses with --enable-widec, there is only ncursesw library and ncurses is missing :-) Now, I don't know (and asked Bram) whether vim'c configure should ask for ncursesw or there should be both ncurses & ncursesw installed simultaneously? Sincerely, Gour
Okay, so ncurses ebuild should be something like Attachment #16945 [details]. liquidx: could you revise it using unicode USE flag and commit? app-editors/nvi also depends on ncurses built with --enable-widec, so it will be useful if we can turn the option on using unicode USE flag.
this problem doesn't occur with vim-6.3 and ncurses-5.4-r4