[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Problem compiling on Windows (ITS#1352)
Full_Name: Sukhwinder Singh
Version: 2.0.14
OS: Windows 95, NT
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.90.75.139)
Hello,
I have downloaded openldap-2.0.14. When compiling on my windows 95 machine using
Visual C++ 6.0. I am getting following errors. Firstly project libunicode isnt
there so ufn.c isn't there...
I have also downloaded cyrus-sasl-1.5.24 and compiled it but it produces
libsasl.lib but not sasl.lib.
In project settings in link option sasl.lib is included along with libsasl.lib.
Please tell me from where I can get sasl.lib
when compiling it produces this error
--------------------Configuration: apitest - Win32 Release--------------------
Compiling...
apitest.c
Linking...
LINK : fatal error LNK1181: cannot open input file "sasl.lib"
Error executing link.exe.
Others are syntax errors which are produced when compiling libslapd - Win32
Release: in header files ldif.h and prota-slap.h
--------------------Configuration: libslapd - Win32 Release--------------------
Compiling...
mods.c
..\..\include\ldif.h(74) : error C2143: syntax error : missing ')' before '*'
..\..\include\ldif.h(74) : error C2143: syntax error : missing '{' before '*'
..\..\include\ldif.h(74) : error C2059: syntax error : 'type'
..\..\include\ldif.h(74) : error C2059: syntax error : ')'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(391) : error C2143: syntax error :
missing '{' before '*'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(391) : error C2143: syntax error :
missing ')' before '*'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(391) : error C2081: 'FILE' : name
in formal parameter list illegal
E:\openldap-2.0.14\servers\slapd\proto-slap.h(391) : error C2143: syntax error :
missing '{' before '*'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(391) : error C2059: syntax error :
')'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(392) : error C2143: syntax error :
missing ')' before '*'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(392) : error C2143: syntax error :
missing '{' before '*'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(392) : error C2143: syntax error :
missing ';' before '*'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(392) : error C2059: syntax error :
')'
E:\openldap-2.0.14\servers\slapd\proto-slap.h(392) : error C2040: 'lfp' : 'int
*' differs in levels of indirection from 'int ** '
It compiles and works fine in RedHatLinux 7.1. So u should at least check the
win32 projects so that atleast they compile.
I got answers to some questions from
http://www.fivesight.com/downloads/openldap.asp. But still there are some
problems.
Then I downloaded openldap-2.0.11 and tried to compile. Even though there were
no syntax errors and file ufn.c file was present. While linking sasl.lib was
still missing. I don't know it is created by openldap or cyrus sasl (which
creates libsasl.lib). So I copied libsasl.lib as sasl.lib. It compiled
successfully. Then I tried running these on Windows NT4.0. When I try to run
slapcat.exe a message appears "instruction at address xxx tried to access xxx
which was blank". It was referencing its own memory address (both addresses were
same).
All configuration files are for UNIX and paths etc given are in UNIX format.
Even in admin guide there are no instruction about how to compile and configure
on Windows NT Server. No information is available about where POSIX regex is
available. I made search on major search engines and was only able to find
gnu_regex. So I changed references in Visual C++ project from hs_regexp to
gnu_regex. Build just produces exe files and some libs etc. No NT specific
config files or documentation is there.
I read in mailing list archive that NT support is experimental. So is there any
Server ldap server available for Windows.