Subject: mutt package not working...
To: None <>
From: Andrew Brown <>
List: tech-pkg
Date: 08/03/2000 13:05:57
i can't get mutt-1.2.5 to build from pkgsrc.  all goes well until the
final link step and then i get this:

    cc ... -Wl,-R/usr/pkg/lib -L/usr/pkg/lib ... -lncurses ...
    menu.o: In function `print_enriched_string':
    menu.o(.text+0x7f): undefined reference to `_acs_char'
    menu.o(.text+0x97): undefined reference to `_acs_char'
    menu.o(.text+0xaf): undefined reference to `_acs_char'
    menu.o(.text+0xc7): undefined reference to `_acs_char'
    menu.o(.text+0xdf): undefined reference to `_acs_char'

acs_char is defined as

    extern chtype _acs_char[NUM_ACS];

int /usr/include/curses.h, yet it's trying to link against -lncurses,
which i more less expected it to do.  i didn't expect that it would be
including /usr/include/curses.h.

first, a little set up.

    # pkg_info | grep ncurses
    ncurses-5.0         CRT screen handling and optimization package
    # uname -a
    NetBSD ebola 1.5C NetBSD 1.5C (RESTON) #18: Tue Jul 25 14:24:27 EDT 2000     andrew@ebola:/usr/src/sys/arch/i386/compile/RESTON i386
    # cd /usr/pkgsrc/mail/mutt
    # cvs update -d -P
    # make configure
    checking for initscr in -lncurses... yes
    checking for ncurses.h... no

the problem (as i see it) is that the build system is telling the link
command to add /usr/pkg/lib to its search path, but not telling the
preprocessor to do the same.  i tried adding


to "../../mk/" as included by the pkg's makefile, but no
dice.  the only way i can get this new mutt to build (with no
ncurses.h, but having found a libncurses) is by adding


to CONFIGURE_ARGS in the pkg's makefile, but that doesn't seem right
to me.

any clues?

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."