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

(ITS#4351) slapcommon.c compilation error



Full_Name: Karel Benak
Version: 2.3.17
OS: Linux 2.6.15.1
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (213.151.90.37)


Hello,
first, sorry of my English.
When I compile openldap 2.3.7 (gcc 4.0.2) with commands
./configure --disable-debug && make depend && make

I`v got next error during a compilation slapcommon.c

cc -O3 -mtune=pentium-m -I../../include -I. -I./slapi -I. -I../../include -c -o
slapcommon.o slapcommon.c
slapcommon.c: In function ?slap_tool_init?:
slapcommon.c:293: error: ?level? undeclared (first use in this function)
slapcommon.c:293: error: (Each undeclared identifier is reported only once
slapcommon.c:293: error: for each function it appears in.)
make[2]: *** [slapcommon.o] Error 1
make[2]: Leaving directory `/sources/openldap-2.3.17/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/sources/openldap-2.3.17/servers'
make: *** [all-common] Error 1

It looks like that variable "level" is declared only if debug is enable, but is
use while debug is disable. When I compile withouth ./configure --disable-debug,
it`s all right.

Karel Benak