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

Problem building mutt-1.5.19 on Cygwin 1.5.25



I just tried compiling mutt-1.5.19 under Cygwin 1.5.25-15.  Configure
completes successfully and says, in part,

    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for wchar_t... yes

but make errors with these messages at the ld step:

    /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: 
warning: auto-importing has been activated without --enable-auto-import 
specified on the command line.
    This should work unless it involves constant data structures referencing 
symbols from auto-imported DLLs.handler.o: In function `enriched_wrap':
    /usr/local/src/mutt-1.5.19/mutt-1.5.19/handler.c:554: undefined reference 
to `_fputws'
    /usr/local/src/mutt-1.5.19/mutt-1.5.19/handler.c:554: undefined reference 
to `_fputws'
    handler.o: In function `text_enriched_handler':
    /usr/local/src/mutt-1.5.19/mutt-1.5.19/handler.c:890: undefined reference 
to `_ungetwc'
    /usr/local/src/mutt-1.5.19/mutt-1.5.19/handler.c:822: undefined reference 
to `_fgetwc'
    Info: resolving _COLS by linking to __imp__COLS (auto-import)
    Info: resolving _COLOR_PAIRS by linking to __imp__COLOR_PAIRS (auto-import)
    Info: resolving _COLORS by linking to __imp__COLORS (auto-import)
    Info: resolving _stdscr by linking to __imp__stdscr (auto-import)
    Info: resolving _LINES by linking to __imp__LINES (auto-import)
    Info: resolving _optind by linking to __imp__optind (auto-import)
    Info: resolving _optarg by linking to __imp__optarg (auto-import)
    collect2: ld returned 1 exit status
    make[2]: *** [mutt.exe] Error 1
    make[2]: Leaving directory `/usr/local/src/mutt-1.5.19/mutt-1.5.19'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/mutt-1.5.19/mutt-1.5.19'
    make: *** [all] Error 2

A little research on the Web revealed that ungetwc() is not yet
supported on Cygwin but will be with Cygwin 1.7
(http://www.gnu.org/software/gnulib/manual/html_node/ungetwc.html and
http://www.mail-archive.com/cygwin-announce@xxxxxxxxxx/msg02612.html).
Does anyone know of a workaround for Cygwin 1.5 in the mean time?

Regards,
Gary