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

ldbm.c compile error under MS VC++ (ITS#2096)



Full_Name: George Krucik
Version: 2.0.25 (20020618)
OS: Win 2000
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (64.165.221.229)


On building 2.0.25 (20020618) ldbm.c fails to compile - with the following
message:

C:\LDAP open build\openldap-2.0.25


--------------------Configuration: setup - Win32 Single
Release--------------------
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
--------------------Configuration: libldbm - Win32 Single
Release--------------------
Compiling...
ldbm.c
C:\LDAP open build\openldap-2.0.25\libraries\libldbm\ldbm.c(331) : warning
C4133: 'function' : incompatible types - from 'char *' to 'struct __db_txn *'
C:\LDAP open build\openldap-2.0.25\libraries\libldbm\ldbm.c(331) : warning
C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\LDAP open build\openldap-2.0.25\libraries\libldbm\ldbm.c(331) : warning
C4024: 'function through pointer' : different types for formal and actual
parameter 4
C:\LDAP open build\openldap-2.0.25\libraries\libldbm\ldbm.c(331) : error C2198:
'function through pointer' : too few actual parameters
Error executing cl.exe.

oldbm32.lib - 1 error(s), 3 warning(s)

___________________________

Code from line (331) of ldbm.c 

	ret->set_pagesize( ret, DEFAULT_DB_PAGE_SIZE );

	/* likely should use ber_mem* routines */

// error references the following line:

	err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);

With that line commented out the ENTIRE openldap-2.0.25 build completes
successfully.

Any ideas on why it chokes on this line ??

Best regards,
George Krucik