Re: [exim] exim build errors - exim-4.80.1

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Phil Pennock
Dátum:  
Címzett: Prashanth Katuri
CC: exim-users@exim.org
Tárgy: Re: [exim] exim build errors - exim-4.80.1
On 2013-06-06 at 16:23 +0000, Prashanth Katuri wrote:
> Thank you for the reply. I am still getting the same error when added the below line into ldap.c as suggested.
>
> #ifdef LDAP_OPT_X_TLS
> if defined(LDAP_OPT_X_TLS) && !defined(LDAP_LIB_SOLARIS)


That is two lines.

> gcc ldap.c
> ldap.c: In function `perform_ldap_search':
> ldap.c:523: error: syntax error before "defined"


That is the C compiler complaining because you have CPP macro directives
not on a #<macro> line.

I wrote:
} The change supplied was in the form of a "unified diff"; the lines
} starting "-" are to be removed, the lines starting "+" are to be
} added.
}
} The required change is to be made to one line, _replacing_ the #ifdef
} with the slightly more complicated "#if defined(...) && !defined(...)"
} logic.

You *REPLACE* the line:
#ifdef LDAP_OPT_X_TLS
with this new line, which *MUST* start with a "#":
#if defined(LDAP_OPT_X_TLS) && !defined(LDAP_LIB_SOLARIS)

Regards,
-Phil