[exim] Test suite on OSX

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Ian Eiloart
Data:  
Para: exim-users
Asunto: [exim] Test suite on OSX
Hi,

I'm trying to get the Exim test suite running on OSX 10.4 (gcc-Darwin). I'm
presuming that once I'm done, it will be suitable for testing new
configuration even though it's designed for testing builds. Am I barking up
the wrong tree here?

Anyway, it fails to compile, with errors like this:

> gcc -g -O2 -o bin/fakens src/fakens.c
> src/fakens.c:118: error: 'T_A' undeclared here (not in a function)
> src/fakens.c:119: error: 'T_NS' undeclared here (not in a function)
> src/fakens.c:120: error: 'T_CNAME' undeclared here (not in a function)


after "make all", unless I comment out a section of src/fakens.c:

/* On some (older?) operating systems, the standard ns_t_xxx definitions are
not available, and only the older T_xxx ones exist in nameser.h. If ns_t_a 
is
not defined, assume we are in this state. A really old system might not even
know about AAAA and SRV at all. */
/*
#ifndef ns_t_a
#define ns_t_a      T_A
#define ns_t_ns     T_NS
#define ns_t_cname  T_CNAME
#define ns_t_soa    T_SOA
#define ns_t_ptr    T_PTR
#define ns_t_mx     T_MX
#define ns_t_txt    T_TXT
#define ns_t_aaaa   T_AAAA
#define ns_t_srv    T_SRV
#ifndef T_AAAA
#define T_AAAA      28
#endif
#ifndef T_SRV
#define T_SRV       33
#endif
#endif
*/



--
Ian Eiloart
IT Services, University of Sussex