Gerhard,
Gerhard Haering wrote:
> For reasons that you really don't want to know, I need to
> patch and compile
> mutt on Cygwin. Unfortunately, I can't compile either the
> Cygwin sources of
> 1.2.5 nor mutt 1.4.0 with a stock
>
> ./configure --with-homespool=/foo/var
> make
>
> it freaks out (1.4) with
>
> gcc -DPKGDATADIR=\"/usr/local/share/mutt\"
> -DSYSCONFDIR=\"/usr/local/etc\" -DBIN
> DIR=\"/usr/local/bin\"
> -DMUTTLOCALEDIR=\"/usr/local/share/locale\"
> -DHAVE_C
> ONFIG_H=1 -I. -I. -Iintl -I/usr/include/ncurses
> -I./intl -I/usr/local/include
> -Wall -pedantic -g -O2 -c patchlist.c
> In file included from mutt.h:51,
> from patchlist.c:5:
> charset.h:39: parse error before
> `ICONV_CONST'
>
> :-((
>
> I'd prefer to have a mutt 1.4, anyway. Has anybody
> compiled this sucessfully on
> Cygwin, yet?
Yes. I've compiled it successfully on saturday last week.
The lines for compiling were:
./configure --enable-locales-fix
make
make install
That's it. I've used the .muttrc-stuff from version 1.3.28
as it is.
It seems to be strange that ICONV_CONST is not recognized, because
it will be defined in config.h. That file will be included from
mutt.h that itself will be included by patchlist.c.
To check this I have run a configure and make like you:
./configure --with-homespool=/foo/var
make
and all things went fine!
So, it seems to be something wrong with your cygwin installation.
Ciao, Georg