Subject: vim and ncurses
To: None <>
From: Martti Kuparinen <>
List: tech-pkg
Date: 02/05/2002 14:58:12

I've been trying to figure out what's wrong with vim on
mac68k (pkg/15160). The problem is that vim-share (which
doesn't buildlink ncurses) works just fine while vim
(which buildlinks ncurses) can't link one test program.
The failing command is:

configure:6214: cc -o conftest -I/usr/pkgsrc/editors/vim/work/.buildlink/include -O2 -m68040 -I/usr/pkgsrc/editors/vim/work/.buildlink/include -L/usr/pkgsrc/editors/vim/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -L/usr/local/lib conftest.c -lncurses 1>&5

The .buildlink/lib directory contains the proper symlinks so
it's not about missing libs (I think).

libncurses.a -> /usr/lib/libcurses.a -> /usr/lib/ -> /usr/lib/ -> /usr/lib/ -> /usr/lib/ -> /usr/lib/

It looks like vim-share links with -ltermlib while vim uses
-lncurses. Use of -lncurses makes the configuration test fail.

Any ideas? I can't see this on i386 or sparc64...


Martti Kuparinen <>      NetBSD - No media hype