RE: [Exim] Exim 4.21 released

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Griffiths M (ISeLS)
Data:  
Para: 'exim-users@exim.org'
Assunto: RE: [Exim] Exim 4.21 released
The OS is a fairly standard FreeBSD 5.1 build with standard
compiler.

I'm not using the ports for Exim, building straight from
the source distributions.

Version 4.20 builds with no problems. But not 4.21.

Do I need to add the path to iconv.h (i.e. /usr/local/sys) into
any of the Exim INLCUDE parameters.

regards
Martyn

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: 14 August 2003 11:03
To: Griffiths M (ISeLS)
Cc: 'exim-users@???'
Subject: RE: [Exim] Exim 4.21 released


On Thu, 14 Aug 2003, Griffiths M (ISeLS) wrote:

> It looks like "iconv.h" is now included in both exim.h and sieve.c
> that wasn't in version 4.20.


In both cases, the code reads

#if HAVE_ICONV             /* Not all OS have this */
#include <iconv.h>
#endif


The HAVE_ICONV macro is defined in config.h. I have screwed up by
forgetting to include config.h in exim_dbmbuild.c.

However, with HAVE_ICONV not defined, it should be treated as "false",
so that include shouldn't have happend. Which OS are you using? Which
compiler? I've just tried this program

#include <stdio.h>
int main(void)
{
printf("1\n");
#if HAVE_ICONV
printf("yes\n");
#endif
printf("2\n");
return 0;
}

with gcc and with Sun's compiler, and they both exclude the "yes" print
statement.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book