[Date Prev][Date Next] [Chronological] [Thread] [Top]

HAVE_TSL define (ITS#1421)

Hi there,

While trying to compile openldap-2.0.9 the following error is raised:

added backend library back-ldbm/libback_ldbm.a
-rw-r--r--    1 root     root      2183592 Nov  2 14:38 libbackends.a
cc -g -O2 -I../../include -I../../include       -c -o config.o config.c
config.c: In function `read_config':
config.c:807: `rc' undeclared (first use in this function)
config.c:807: (Each undeclared identifier is reported only once
config.c:807: for each function it appears in.)
make[2]: *** [config.o] Error 1
make[2]: Leaving directory
make[1]: *** [all-common] Error 1

The problem comes from the fact the rc is defined like this :

#ifdef HAVE_TLS
int rc;

and at line 807 it is used outside #ifdef - #endif statment.