On OpenBSD 3.1-stable, with OpenSSL v0.9.6b

Built from ports:
automake-1.4-p5
autoconf-2.52
GNUmake-3.79.1
libslang-1.4.4
gettext-0.10.40
libiconv-1.7

configure options:

--sysconfdir=/etc/mutt \
--with-slang \
--with-regex \
--enable-pop \
--enable-imap \
--with-ssl \
--with-iconv

the configure script throws the errors:

(from config.log)
-----
configure: In function `main':
configure:3533: syntax error befor `big'
configure: failed program was:
#line 3527 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
-----
configure: In function `main':
configure:7615: syntax error before `wc'
configure: failed program was:
#line 7606 "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#endif
-----
configure: In function `main':
configure:7861: syntax error before `s'
configure: failed program was:
#line 7852 "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#endif
-----

During the configure routine, stdout shows:

checking for catalogs to be installed... de ru it es ek fr pl nl cs id
sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca
checking for iconv.h... yes
checking whether iconv.h defines iconv_t... yes
configure: warning: Unable to find an iconv function. See INSTALL for
help
checking for bind_textdomain_codeset... no

Despite all this, it appears to complete successfully 
despite the strange errors.

However, on running "gmake", I get:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl  -I/usr/local/include
-I../intl -Wall -pedantic -g -O2 -c auth.c
In file included from ../mutt.h:51,
                        from auth.c:23:
../charset.h:39 syntax error befor `ICONV_CONST'
gmake[2]: *** [auth.o] Error 1
gmake[2]: Leaving directory `/home/build/src/mail/mutt/mutt-1.3.99/imap'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directore `/home/build/src/mail/mutt/mutt-1.3.99'
gmake: *** [all-recursive-am] Error 2


Line 39 of charset.h is:
size_t mutt_iconv (iconv_t, ICONV_CONST char **, size_t *, char **,
size_t *, ICONV_CONST char **, const char *);

So, it has something to do with the fact that it can't
properly find libiconv.

I've tried several things:

* Hard setting the location of iconv in the configure
  options

* Re-building libiconv from the ports collection

* Building libiconv from source

* Leaving iconv out of the configure options (it auto-finds
  the headers, so that doesn't work)

* setting the "--without-iconv" flag in the configure
  options

All of this, and it still errors in the same place.

What am I missing?

-- 
Ed Vázquez

Wasn't there something about a PASCAL programmer knowing the value of
everything and the Wirth of nothing?


Reply via email to