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

(ITS#4245) Problem with DEBUG disabled in 2.3.13



Full_Name: Nicola Canepa
Version: 2.3.13
OS: Linux (RedHat AS3)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.227.215.155)


I tried to compile openldap 2.3.13 disabling debug (configure
--enable-debug=no), but I get the following error while compiling (make, after
make depend):

gcc -I /usr/kerberos/include -I/opt/sysnet/db-4.2/include
-L/opt/sysnet/db-4.2/lib -I../../include -I. -I./slapi -I. -I../../include  
-I/opt/sysnet/db-4.2/include   -I/opt/sysnet/db-4.2/include  -c -o main.o
main.c
main.c: In function `main':
main.c:419: `level' undeclared (first use in this function)
main.c:419: (Each undeclared identifier is reported only once
main.c:419: for each function it appears in.)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/usr/src/openldap-2.3.13/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/openldap-2.3.13/servers'
make: *** [all-common] Error 1

I commented out the "if ( lutil_atoi( &level, optarg ) != 0 || level != 0 )"
line in main.c, and the compilation goes on until:

gcc -I /usr/kerberos/include -I/opt/sysnet/db-4.2/include
-L/opt/sysnet/db-4.2/lib -I../../include -I. -I./slapi -I. -I../../include  
-I/opt/sysnet/db-4.2/include   -I/opt/sysnet/db-4.2/include  -c -o slapcommon.o
slapcommon.c
slapcommon.c: In function `slap_tool_init':
slapcommon.c:293: `level' undeclared (first use in this function)
slapcommon.c:293: (Each undeclared identifier is reported only once
slapcommon.c:293: for each function it appears in.)
make[2]: *** [slapcommon.o] Error 1
make[2]: Leaving directory `/usr/src/openldap-2.3.13/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/openldap-2.3.13/servers'


(same "if ( lutil_atoi( &level, optarg ) != 0 || level != 0 )" line commented
out in slapcommon.c)