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

RE: Win32 compilation problem



Title: RE: Win32 compilation problem

A few things regarding Win32 compilation.

First, make sure that you check out the faq. You'll find a link on the OpenOLAP sight that links off to the wonderful work that's been done by Fivesight (www.fivesight.com).

The Win32 compilation works, but does tend to suffer a bit of the common opensource/Win32 issues - namely, that most opensource work is done for UNIX/Linux, and then is ported to Win32 as virutally an afterthough (much the way that many things that start in Windoze and move to UNIX/Linux are).

If all you're looking for is the executables, and you don't have a desire to custom modify the code, then I would suggest just picking up the compiled binaries from Fivesight. If you really do want to compile everything yourself, then there is a set of instructions on the Fivesight site, but, last I looked, it was still for 2.0.11. I was, however, able to get 2.0.19 to compile with a little tweak here and there (I did have to add a replacement subroutine for creating a temp file since the one used by OpenLDAP wasn't provided in the VC6 libraries, but was reasonably easy - I can dig it up for you if you run into this same problem.

As to the problems you're seeing. I suspect rather strongly that you just have some hidden characters in the files that VC6 is not dealing with well - I can't recall, but I may have seen this myself, though I think it was to a lesser degree than what you appear to be seing. Basically, I would suggest deleting any whitespace between the characters mentioned (more than likely, you'll see a new line between them) and then reinerting the whitespace again - that works 99% of the time (note: I only have a limited set of test cases on this though) for me in these kinds of situations.

Also, you'll probably see some more errors before you're done - it took me about 5-6 hours to get it to compile, but I'm also not the worlds greatest C++ jockey either.

Again, if you're not looking to do your own custom work on it, then look at just downloading the compiled binaries.

HTH,

Rob


-----Original Message-----
From: De Leeuw Guy [mailto:G.De_Leeuw@eurofer.be]
Sent: Monday, January 07, 2002 6:46 AM
To: OpenLdap (E-mail)
Subject: Win32 compilation problem


Hello,

I try to build the 2.0.19 on win32, but I receive this errors :

--------------------Configuration: setup - Win32 Debug--------------------
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.  copy setup.mak setup.txt
        1 fichier(s) copi'(s).
--------------------Configuration: libslapd - Win32
Debug--------------------
Compiling...
mods.c
D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(392) : error C2143: syntax error : missing '{' before '*'

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(392) : error C2143: syntax error : missing ')' before '*'

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(392) : error C2081: 'FILE' : name in formal parameter list illegal

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(392) : error C2143: syntax error : missing '{' before '*'

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(392) : error C2059: syntax error : ')'
D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(393) : error C2143: syntax error : missing ')' before '*'

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(393) : error C2143: syntax error : missing '{' before '*'

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(393) : error C2143: syntax error : missing ';' before '*'

D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(393) : error C2059: syntax error : ')'
D:\Ef\Dev\Shared\OpenLdap\openldap-2.0.19\servers\slapd\proto-slap.h(393) : error C2040: 'lfp' : 'int *' differs in levels of indirection from 'int ** ' Error executing cl.exe.

build.exe - 10 error(s), 0 warning(s)

How can I correct this ?

Thanks in advance,
Guy