I can't get mutt to compile with libiconv.
I've installed libiconv in /usr and this is the configure command I run:

./configure --prefix=/usr --with-ssl --enable-pop --with-iconv=/usr

And this is the error I get:
configure: warning: Unable to find an iconv function. See INSTALL for help

I've read through the INSTALL file, but can't find anything about this.

If I ignore this error and try to compile, I get this error:

------------------------
make[2]: Entering directory `/usr/src/mutt-1.4'
gcc -DPKGDATADIR=\"/usr/share/mutt\" -DSYSCONFDIR=\"/usr/etc\" 
-DBINDIR=\"/usr/bin\" -DMUTTLOCALEDIR=\"/usr/share/locale\" 
-DHAVE_CONFIG_H=1 -I. -I.  -Iintl  -I/usr/include -I./intl 
-I/usr/include  -Wall -pedantic -g -O2 -c patchlist.c
In file included from mutt.h:51,
                  from patchlist.c:5:
charset.h:32: conflicting types for `libiconv'
/usr/include/iconv.h:82: previous declaration of `libiconv'
charset.h:39: parse error before `ICONV_CONST'
make[2]: *** [patchlist.o] Error 1
make[2]: Leaving directory `/usr/src/mutt-1.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mutt-1.4'
make: *** [all-recursive-am] Error 2
--------------------------

Though, if I leave out the "--with-iconv=/usr" in the configure script, 
mutt compiles without a any problems. But then I can't use swedish 
characters within it. Which I want.

Appreciate any help!

Reply via email to