Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35661 - vim-6.2-r5.ebuild fails with ncursesw library
Summary: vim-6.2-r5.ebuild fails with ncursesw library
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 05:52 UTC by Gour
Modified: 2004-08-19 08:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log of emerge vim fail (vim,41.55 KB, text/plain)
2003-12-12 05:55 UTC, Gour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gour 2003-12-12 05:52:49 UTC
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"
Comment 1 Gour 2003-12-12 05:55:00 UTC
Created attachment 22086 [details]
log of emerge vim fail
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-01-06 08:10:50 UTC
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.
Comment 3 Gour 2004-01-06 09:38:09 UTC
<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
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-01-06 14:58:52 UTC
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) ;-)
Comment 5 Gour 2004-01-07 02:28:30 UTC
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
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-01-07 05:23:59 UTC
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.
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-19 08:09:44 UTC
this problem doesn't occur with vim-6.3 and ncurses-5.4-r4