<<< Date Index >>>     <<< Thread Index >>>

current cvs version doesn't compile with slang support enabled



Hi,
I am trying to compile a 'slanged' version of mutt on Solaris and Linux,
but I always get the following error:

./configure --enable-slang
...
make
...
gcc  -Wall -pedantic -g -O2   -o mutt  patchlist.o addrbook.o alias.o attach.o 
base64.o browser.o buffy.o color.o crypt.o cryptglue.o commands.o complete.o 
compose.o copy.o curs_lib.o curs_main.o date.o edit.o enter.o flags.o init.o 
filter.o from.o getdomain.o handler.o hash.o hdrline.o headers.o help.o hook.o 
keymap.o main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o postpone.o 
query.o recvattach.o recvcmd.o rfc822.o rfc1524.o rfc2047.o rfc2231.o score.o 
send.o sendlib.o signal.o sort.o status.o system.o thread.o charset.o history.o 
lib.o muttlib.o editmsg.o utf8.o mbyte.o wcwidth.o url.o ascii.o mutt_idna.o 
pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o 
smime.o  resize.o   -lslang -lm
muttlib.o: In function `mutt_adv_mktemp':
/scratch/mutt/muttlib.c:76: the use of `mktemp' is dangerous, better use 
`mkstemp'
menu.o: In function `print_enriched_string':
/scratch/mutt/menu.c:50: undefined reference to `PAIR_NUMBER'
/scratch/mutt/menu.c:50: undefined reference to `pair_content'
/scratch/mutt/menu.c:51: undefined reference to `PAIR_NUMBER'
/scratch/mutt/menu.c:51: undefined reference to `pair_content'

a quick search via cscope shows that PAIR_NUMBER is defined in:

   1    743  /usr/include/curses.h <<PAIR_NUMBER>>
             #define PAIR_NUMBER(a) (((a) & A_COLOR) >> NCURSES_ATTR_SHIFT)
   2    743  /usr/include/ncurses.h <<PAIR_NUMBER>>
             #define PAIR_NUMBER(a) (((a) & A_COLOR) >> NCURSES_ATTR_SHIFT)

        Thomas