On Fri, Sep 27, 2002 at 11:28:55AM +0100, Chris Green wrote:
> As Sven just pointed out I have been using rather old versions of mutt
> I have upgraded all my mutts (four of them) to version 1.4i.  All of
> the Linux ones were no problem, just ./configure with the required
> options, make and install and it worked like clockwork.
> 
> However the Solaris 2.6 one is proving a bit more difficult.
> 
> First it didn't add '-liconv' to the Makefile line for linking, I fixed
> that by adding it manually to the Makefile.
> 
> Secondly, and more significant, is that colours are not working
> correctly any more.  When mutt loads it complains:-
> 
>     Error in /home/chris/.mutt/muttrc, line 27: default: no such color
>     Error in /home/chris/.mutt/muttrc, line 28: default: no such color
>     ...
>     ...
>     etc.
> 
> I'm using ncurses 5.0 on both the Solaris version and the Linux
> versions and the 'default' colour works fine on the Linux versions.
> I have a sneaking feeling that I remember having this problem before
> but unfortunately I can't remember how to fix it.
> 
It's OK, I've found the problem, it's to do with the (rather broken)
way that ./configure and LD_LIBRARY_PATH interact with each other.

I have installed ncurses and iconv on my desktop Sun sparc myself, I
have a directory I can use on a local disk called /proj/chris for this
sort of stuff.  Thus the ncurses and iconv libraries are in
/proj/chris/lib.  I have the LD_LIBRARY_PATH environment variable set
to point to /proj/chris/lib.


My original ./configure was:-
    ./configure --prefix=/proj/chris --enable-pop --enable-imap

This worked OK except that the link line in the makefile didn't have
an explicit -liconv line (though configure had found iconv OK!), on
adding this it linked OK and mutt reported it had ncurses 5, but it
didn't know about default colors.


I then tried:-
    ./configure --prefix=/proj/chris --enable-pop --enable-imap 
--with-curses=/proj/chris --with-iconv=/proj/chris

This produced a compile error! :-
    In file included from ../mutt.h:51,
                     from auth.c:23:
    ../charset.h:39: parse error before `ICONV_CONST'


So I then tried:-
    ./configure --prefix=/proj/chris --enable-pop --enable-imap 
--with-curses=/proj/chris

and this finally worked OK producing a mutt that knows about ncurses
default colours.

Sorry if this should really be in the developers' list.


-- 
Chris Green ([EMAIL PROTECTED])

Reply via email to