Re: FreeBSD compile errors

2002-06-02 Thread Udo Schweigert

On Sat, Jun 01, 2002 at 21:58:11 +0200, Rocco Rutte wrote:
 Hi,
 
 * Will Yardley [06/01/02 20:27:28 CEST] wrote:
 
 [ errors building 1.4 on FreeBSD ]
 
 sorry - thought i wrote that.  it was 1.4
 
 i believe libiconv is installed, and i did a second install with
 some of the arguments that the port uses:
 
 CC=cc -I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
 --enable-exact-address --enable-flock --disable-fcntl
 --with-libiconv-prefix=/usr/local
 
 and got the same error.
 
 1.5 builds fine here, but 1.4 makes problems.
 
 i do get:
 checking for iconv... no, consider installing GNU libiconv
 configure: warning: Unable to find an iconv function. See INSTALL for help
 
 but configure doesn't fail as it used to.
 
 Here too. That's stupid. Even more weired is this:
 
 ,-
|| pdmef@klaus:/tmp/mutt-1.4$ ./prepare --with-libiconv-prefix=/usr/local 
|--with-iconv=/usr/local
|| 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
|| [...]
|| The mutt source code was successfully prepared.
|| Type make  make install to build and install mutt.
 `-
 
 ...which then runs into the same trouble. And /usr/local is
 correct:
 
 ,-
|| pdmef@klaus:~$ pkg_info -L iconv-2.0_1
|| Information for iconv-2.0_1:
|| /usr/local/include/iconv.h
|| /usr/local/lib/libiconv.so
|| /usr/local/lib/libiconv.so.2
 `-
 

The iconv port is now at 2.0_3 and no longer installs a libiconv.so,
instead it is called libbiconv.so. This library is a way not standard and did
not work for mutt-1.3.x.

 or...
 
 ,-
|| pdmef@klaus:~$ pkg_info -L libiconv-1.7_1
|| Information for libiconv-1.7_1:
|| /usr/local/include/giconv.h
|| /usr/local/lib/libgiconv.so
|| /usr/local/lib/libgiconv.so.2
 `-

This library is not used by mutt, since it is called libgiconv.so and not
libiconv.so. Also the libiconv port is at version 1.7.0.1 which fixes
that. 

Please update both ports and try again.

Best regards

--
Udo Schweigert, Siemens AG   | Voice  : +49 89 636 42170
CT IC 3, Siemens CERT| Fax: +49 89 636 41166
D-81730 Muenchen / Germany   | email  : [EMAIL PROTECTED]



Re: FreeBSD compile errors

2002-06-02 Thread Rocco Rutte

Hi,

* Will Yardley [2002-06-02 10:45:01 CEST] wrote:
 i don't know if this is worth moving over to the dev list, but i will
 bring it up there if people don't think these questions are totally
 dumb.

You should have a look over there, just a few hours ago I
saw a mail from somebody complaining the same as we did and
who also sent a patch along the mail.

If I recall it correctly, the problem resides in some m4
file which doesn't set 'use_iconv=yes' although it was
found.

I'll check that too, if I have some time left...

Cheers, Rocco



Re: FreeBSD compile errors

2002-06-01 Thread Steve Kennedy

On Sat, Jun 01, 2002 at 03:39:46AM -0700, Will Yardley wrote:

 error on FreeBSD 4.5... 1.3.27 built ok on this system.
 no patches or anything... anyone else see an error like this, or should
 i send a message to mutt-dev?
 roland% ./configure --sysconfdir=/etc --enable-exact-address
 [configure works OK]
 ./patchlist.sh  ./PATCHES  patchlist.c
 cd .   CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
 creating Makefile
 gcc -DPKGDATADIR=\/usr/local/share/mutt\ -DSYSCONFDIR=\/etc\
 -DBINDIR=\/usr/local/bin\ -DMUTTLOCALEDIR=\/usr/local/share/locale\
 -DHAVE_CONFIG_H=1 -I. -I.  -Iintl  -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: syntax error before `ICONV_CONST'
 *** Error code 1

Make clean, then edit config.h and ensure
#define HAVE_ICONV_H 1
#define HAVE_ICONV 1
#define HAVE_ICONV_T_DEF 1

are set, and all should work (assuming you do have libiconv installed)
for some reason not picked up automagically

Steve

-- 
NetTek Ltd Flat 2, 43 Howitt Road, Belsize Park, London NW3 4LU, UK
tel +44-(0)20 7483 1169  fax +44-(0)20 7483 2455   mob 07775 755503
SMS steve-pager (at) gbnet.net [body] gpg 1024D/468952DB 2001-09-19



Re: FreeBSD compile errors

2002-06-01 Thread Martin Karlsson

* Will Yardley [EMAIL PROTECTED] [2002-06-01 03.39 -0700]:
 error on FreeBSD 4.5... 1.3.27 built ok on this system.
 
 no patches or anything... anyone else see an error like this, or should
 i send a message to mutt-dev?
 
 roland% ./configure --sysconfdir=/etc --enable-exact-address
 [configure works OK]
 
 roland% make
[...snip...]

I take it you're not using the port; is this CVS-mutt you're
fighting with? If so, try with gmake (GNU make) instead of make.

HTH
-- 
Martin Karlsson   _
GPG/PGP public key: 0x9C924660 ASCII ribbon campaign ( )
 -Respect for open standards  X
-No HTML, RTF, or M$ Word docs in e-mail / \



msg28458/pgp0.pgp
Description: PGP signature


Re: FreeBSD compile errors

2002-06-01 Thread Rocco Rutte

Hi,

* Will Yardley [06/01/02 12:39:46 CEST] wrote:
 error on FreeBSD 4.5... 1.3.27 built ok on this system.

 no patches or anything... anyone else see an error like this, or should
 i send a message to mutt-dev?

 roland% ./configure --sysconfdir=/etc --enable-exact-address
 [configure works OK]

--enable-exact-address is broken and should not be used. See
INSTALL -- although it doesn't make any real difference to
me.

 roland% make
 [...]
 charset.h:39: syntax error before `ICONV_CONST'
 *** Error code 1

--with-libiconv-prefix=/usr/local. See the Makefile for any
FreeBSD port of mutt.

Cheers, Rocco



Re: FreeBSD compile errors

2002-06-01 Thread Rocco Rutte

Hi,

* Udo Schweigert [06/01/02 18:01:20 CEST] wrote:
 On Sat, Jun 01, 2002 at 13:05:44 +0200, Martin Karlsson wrote:

  I take it you're not using the port; is this CVS-mutt
  you're fighting with? If so, try with gmake (GNU make)
  instead of make.

 Nope, that's not needed. cvs-mutt builds here flawlessly
 with BSD-make (after changing the prepare-script to use
 autoconf213 and automake14, but that's a different story).

And that story reads? What did/do you have to change?

Never any problems here using:

,-
| pdmef@klaus:~$ automake --version
| automake (GNU automake) 1.4
`-
,-
| pdmef@klaus:~$ autoconf --version
| Autoconf version 2.13
`-
,-
| pdmef@klaus:~$ uname -rms
| FreeBSD 4.5-RELEASE-p5 i386
`-

Cheers, Rocco



Re: FreeBSD compile errors

2002-06-01 Thread Will Yardley

Udo Schweigert wrote:
 On Sat, Jun 01, 2002 at 03:39:46 -0700, Will Yardley wrote:
[ thanks also to steve for his message ]

  error on FreeBSD 4.5... 1.3.27 built ok on this system.
  
  no patches or anything... anyone else see an error like this, or should
  i send a message to mutt-dev?
  
  roland% ./configure --sysconfdir=/etc --enable-exact-address
  [configure works OK]
 
 iconv is not part of the base system and wont be found. I wonder why your
 configure didn't complain about a missing iconv. I always need 
 --with-libiconv-prefix=/usr/local on FreeBSD.
 
 Which version are you talking about here? 1.4, 1.5.1, or cvs?

sorry - thought i wrote that.  it was 1.4

i believe libiconv is installed, and i did a second install with
some of the arguments that the port uses:

CC=cc -I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
--enable-exact-address --enable-flock --disable-fcntl
--with-libiconv-prefix=/usr/local

and got the same error.

i do get:
checking for iconv... no, consider installing GNU libiconv
configure: warning: Unable to find an iconv function. See INSTALL for help

but configure doesn't fail as it used to.

i just assumed that configure would whine if it couldn't find libiconv
(it usually has) -- shouldn't a lack of libiconv be noticed in the
configure process? 

i believe that GNU libiconv was installed from ports (and FreeBSD
renames the lib and include files to make them start with a 'g' (ie
giconv.h)).  there's also  i'm pretty sure i've just installed libiconv
from source on some of my other FreeBSD machines - i can do that if it's
easier.

looking at the port, i'm pretty sure that it makes changes to deal with
the weird naming of iconv:
roland% grep giconv config.status   
s%@LIBICONV%-lgiconv%g
s%@INTLLIBS%-lintl -lgiconv%g

-- 
Will Yardley
input: william   hq . newdream . net . 




Re: FreeBSD compile errors

2002-06-01 Thread Will Yardley

Rocco Rutte wrote:
 
  roland% ./configure --sysconfdir=/etc --enable-exact-address
  [configure works OK]
 
 --enable-exact-address is broken and should not be used. See
 INSTALL -- although it doesn't make any real difference to
 me.

i've seen that, but no one has yet mentioned *why* it's supposedly
broken (even when i specifically asked on the list).  Works For Me (TM),
and i prefer having my address like foo@bar (My Name) than the other way
around.

it supposedly takes up more memory but i haven't noticed much of an
increase in system resources either.

  roland% make
  [...]
  charset.h:39: syntax error before `ICONV_CONST'
  *** Error code 1
 
 --with-libiconv-prefix=/usr/local. See the Makefile for any
 FreeBSD port of mutt.

yeah tried that too see my other message.

-- 
Will Yardley
input: william   hq . newdream . net . 




Re: FreeBSD compile errors

2002-06-01 Thread Rocco Rutte

Hi,

* Will Yardley [06/01/02 20:27:28 CEST] wrote:

[ errors building 1.4 on FreeBSD ]

 sorry - thought i wrote that.  it was 1.4

 i believe libiconv is installed, and i did a second install with
 some of the arguments that the port uses:

 CC=cc -I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
 --enable-exact-address --enable-flock --disable-fcntl
 --with-libiconv-prefix=/usr/local

 and got the same error.

1.5 builds fine here, but 1.4 makes problems.

 i do get:
 checking for iconv... no, consider installing GNU libiconv
 configure: warning: Unable to find an iconv function. See INSTALL for help

 but configure doesn't fail as it used to.

Here too. That's stupid. Even more weired is this:

,-
| pdmef@klaus:/tmp/mutt-1.4$ ./prepare --with-libiconv-prefix=/usr/local 
|--with-iconv=/usr/local
| 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
| [...]
| The mutt source code was successfully prepared.
| Type make  make install to build and install mutt.
`-

...which then runs into the same trouble. And /usr/local is
correct:

,-
| pdmef@klaus:~$ pkg_info -L iconv-2.0_1
| Information for iconv-2.0_1:
| /usr/local/include/iconv.h
| /usr/local/lib/libiconv.so
| /usr/local/lib/libiconv.so.2
`-

or...

,-
| pdmef@klaus:~$ pkg_info -L libiconv-1.7_1
| Information for libiconv-1.7_1:
| /usr/local/include/giconv.h
| /usr/local/lib/libgiconv.so
| /usr/local/lib/libgiconv.so.2
`-

Cheers, Rocco